joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d76ff
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ea6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004cc6c7
mov eax, dword [0x4faa50]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004cc5f9
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004d818f
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4d77a6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d779d
cmp al, 0xff
je 0x4d779d
dec al
mov byte [ecx], al
jmp 0x4d77a6
push ecx
call fcn.004e0b95
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4d77d7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d77ce
cmp al, 0xff
je 0x4d77ce
dec al
mov byte [ecx], al
jmp 0x4d77d7
push ecx
call fcn.004e0b95
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x401000
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401032
or eax, 0xffffffff
jmp 0x401083
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x10], esi
push esi
jmp 0x401066
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
je 0x40104e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x401143
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401158
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40116a
xor eax, eax
jmp 0x40119c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40118e
cmp esi, eax
jae 0x401166
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401180
cmp esi, eax
jae 0x401166
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40157b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x45008d
call fcn.0041e4b8
sub esp, 0x110
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [ebp - 0x18]
call fcn.00401530
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040150b
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40167a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.IPAddress
push dword [ebp - 0x14]
mov edi, 0x100
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x401606
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
call fcn.004014e6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.SubnetMask
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x401639
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
add ecx, 4
call fcn.004014e6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.DefaultGateway
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
pop edi
pop esi
jne 0x40166e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
add ecx, 8
call fcn.004014e6
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401694
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 1
call edi
test eax, eax
je 0x4016cf
xor eax, eax
jmp 0x4017c1
push esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
mov esi, 0x100
push dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4017b5
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x4017b5
push esi
lea eax, [ebp - 0x118]
push ebx
push eax
mov dword [ebp - 8], esi
call fcn.0041e5e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.Description
push dword [ebp - 4]
call edi
test eax, eax
jne 0x401760
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.004014e6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.ServiceName
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
mov esi, dword [ebp + 0xc]
jne 0x401793
lea eax, [ebp - 0x118]
push eax
lea ecx, [esi + 4]
call fcn.004014e6
mov eax, dword [esi + 4]
add esi, 8
push esi
push eax
call fcn.0040157b
test eax, eax
pop ecx
pop ecx
jne 0x4017a9
mov dword [ebp - 0x10], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x402b5a
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa8
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0041e5e0
mov ebx, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x70]
push ebx
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0041d970
add esp, 0x18
push str.c:_test6.ini
lea eax, [ebp - 0x40]
push eax
push 0x456014
push 0x456010
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 8
pop esi
push esi
push dword [ebp + 0x78]
lea eax, [ebp + 0x50]
push eax
call fcn.0041d970
mov eax, dword [ebp + 0x78]
add eax, esi
push esi
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0041d970
push esi
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.0041e5e0
push esi
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.0041e5e0
push esi
lea eax, [ebp + 0x58]
push 0
push eax
call fcn.0041e5e0
mov eax, ebx
cdq
mov ecx, esi
idiv ecx
add esp, 0x3c
test edx, edx
mov dword [ebp + 0x78], edx
je 0x402c15
sub ecx, edx
test ecx, ecx
jle 0x402c15
mov edx, ecx
add edi, ebx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x70]
sub ebx, dword [ebp + 0x78]
push esi
lea eax, [ebp + 0x48]
push edi
add ebx, esi
push eax
mov dword [ebp + 0x78], ebx
call fcn.0041d970
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00401d40
mov eax, dword [ebp + 0x78]
cdq
mov ecx, esi
idiv ecx
add esp, 0x1c
cmp eax, ebx
jle 0x402c8b
add edi, 8
dec eax
mov dword [ebp + 0x78], eax
xor eax, eax
mov cl, byte [edi + eax]
xor byte [ebp + eax + 0x60], cl
inc eax
cmp eax, esi
jl 0x402c55
push ebx
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.00401d40
push esi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0041d970
add esp, 0x1c
add edi, esi
dec dword [ebp + 0x78]
jne 0x402c53
push 0
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.00401d40
push esi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0041d970
push ebx
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.00401d40
push esi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0041d970
push esi
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x74]
call fcn.0041d970
add esp, 0x44
push 0x80
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0041e5e0
push esi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402b29
add esp, 0x18
push str.c:_test6.ini
lea eax, [ebp - 0x40]
push eax
push str.mackey
push 0x456010
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov al, bl
pop ebx
add ebp, 0x68
leave
ret
Function at 0x40412c
Capabilities:
Copy file
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
mov esi, 0x80
push esi
lea eax, [esp + 0x14]
push 0
push eax
mov dword [ecx + 0x2eae], 1
call fcn.0041e5e0
push esi
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.0041e5e0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x18
mov ebp, str.C:_fephost.ini
push ebp
push esi
lea eax, [esp + 0x18]
push eax
mov ebx, 0x4577a3
push ebx
push str.SourceFile
push str.Rzflag
call edi
push ebp
push esi
lea eax, [esp + 0x98]
push eax
push ebx
push str.DestFile
push str.Rzflag
call edi
push 0
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041e5e0
push esi
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.0041e5e0
add esp, 0x18
push ebp
push esi
lea eax, [esp + 0x18]
push eax
push ebx
push str.SourceFile
push str.xmlflag
call edi
push ebp
push esi
lea eax, [esp + 0x98]
push eax
push ebx
push str.DestFile
push str.xmlflag
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x405193
Capabilities:
Get common file path

Disassembly:
mov eax, 0x450a19
call fcn.0041e4b8
sub esp, 0x68
and dword [ebp - 0x10], 0
push 0x64
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x10]
call fcn.004049a4
and dword [ebp - 4], 0
push 0x457928
push eax
push dword [ebp + 8]
call fcn.00405094
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret
Function at 0x40575f
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x450a19
call fcn.0041e4b8
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x14], ecx
call fcn.00405193
and dword [ebp - 4], 0
mov ebx, str.ATMCNFG.ini
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405094
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x10
push dword [eax]
mov edi, str.PackageNo
push 0
push 0x457a50
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2e50], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004011ce
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405094
add esp, 0xc
push dword [eax]
push 0
push 0x457a4c
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2e54], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405a1e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x450a19
call fcn.0041e4b8
sub esp, 0x150
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
mov esi, ecx
call fcn.0041e5e0
add esp, 0xc
push str.SYSTEMControlSet001Services_
lea ecx, [ebp - 0x10]
call fcn.00401530
lea eax, [esi + 0x18c]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004051ec
push str.ParametersTcpip
lea ecx, [ebp - 0x10]
call fcn.0040150b
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405af2
mov edi, 0x100
push edi
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.0041e5e0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.IPAddress
push dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ae9
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0041e5e0
push dword [ebp - 0x18]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0041d970
add esp, 0x18
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x5c]
lea edi, [esi + 0x8c]
push eax
mov ecx, edi
call fcn.004014e6
lea eax, [ebp - 0x5c]
push eax
call fcn.0041d8e0
pop ecx
lea eax, [ebp + eax - 0x5b]
add esi, 0x80
push eax
mov ecx, esi
call fcn.004014e6
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x405b2e
push edi
mov ecx, esi
call fcn.00401c11
push edi
mov ecx, esi
call fcn.00401c11
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push str.SoftwareATMagentHostCmd
lea ecx, [ebp - 8]
call fcn.00401530
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp - 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fb0
push 0x100
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041e5e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
push dword [ebp - 4]
jne 0x405faa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx esi, byte [ebp - 0x110]
sub esi, 0x30
jmp 0x405fb2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004011ce
mov eax, esi
pop esi
leave
ret 4

Function at 0x405fc4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push str.SoftwareATMagentHostCmd
lea ecx, [ebp - 4]
call fcn.00401530
lea eax, [ebp - 8]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406034
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041e5e0
push dword [ebp + 0xc]
call fcn.0041d8e0
add esp, 0x10
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004011ce
mov eax, esi
pop esi
leave
ret 8

Function at 0x4060a3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push str.SoftwareATMagentStatus
lea ecx, [ebp - 4]
call fcn.00401530
lea eax, [ebp - 8]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406113
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041e5e0
push dword [ebp + 0xc]
call fcn.0041d8e0
add esp, 0x10
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004011ce
mov eax, esi
pop esi
leave
ret 8
Function at 0x406125
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push str.SoftwareATMagentStatus
lea ecx, [ebp - 8]
call fcn.00401530
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp - 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4061c5
push 0x100
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041e5e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
push dword [ebp - 4]
jne 0x4061bf
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx esi, byte [ebp - 0x110]
sub esi, 0x30
jmp 0x4061c7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004011ce
mov eax, esi
pop esi
leave
ret 4
Function at 0x410b57
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x450d35
call fcn.0041e4b8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x18], esi
mov dword [esi], 0x459358
call fcn.00401909
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00401909
lea ecx, [esi + 0x10]
call fcn.00401909
lea ecx, [esi + 0x14]
call fcn.00401909
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00401909
lea ecx, [esi + 0x1c]
call fcn.00401909
lea ecx, [esi + 0x20]
call fcn.00401909
push 0xa
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 6
call fcn.0042cf6b
lea ecx, [esi + 0x40]
call fcn.00401909
lea ecx, [esi + 0x44]
call fcn.00401909
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.00401909
and dword [esi + 0x4c], 0
and dword [esi + 0x50], 0
lea ecx, [esi + 0x54]
call fcn.00401909
push str.Reserve_Time
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 0xb
call fcn.004014e6
push str.Expire
lea ecx, [esi + 0x1c]
call fcn.004014e6
lea eax, [ebp - 0x14]
push eax
call fcn.00405193
mov dword [esp], str.atmcnfg.ini
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xc
call fcn.00405094
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00401c11
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xb
call fcn.004011ce
push str.ATM_FEP
lea ecx, [esi + 0x14]
call fcn.004014e6
push str.FEP_HOST
lea ecx, [esi + 0x10]
call fcn.004014e6
push str.HOST_FEP
lea ecx, [esi + 0xc]
call fcn.004014e6
push str.FEP_ATM
lea ecx, [esi + 8]
call fcn.004014e6
push str.C:Fep_bhh_trace_
lea ecx, [esi + 0x40]
call fcn.004014e6
push str.C:Fep_bhh_feplog_
lea ecx, [esi + 0x44]
call fcn.004014e6
push str.POWER
mov ecx, ebx
call fcn.004014e6
push str.ScreenOutput
lea ecx, [esi + 0x54]
call fcn.004014e6
mov eax, dword [edi]
mov ebx, dword [ebx]
mov ecx, dword [esi + 0x20]
push eax
push 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
call ebx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
push eax
push 5
push ecx
push edx
call ebx
push dword [edi]
mov dword [esi + 0x5c], eax
push 5
push str.SAVETIME
push str.Parameter
call ebx
mov edi, dword [edi]
mov ecx, dword [esi + 0x20]
push edi
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x54]
push 1
push eax
push ecx
call ebx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x58], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4148da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x41492d
call fcn.00447c0a
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41492d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x414923
xor eax, eax
jmp 0x414a46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x41495d
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x41495d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x414a43
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41498a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004106f7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x414a43
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4149d3
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4149d3
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4149cd
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004106f7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x414a33
and dword [ebp + 0xc], 0
jmp 0x414a33
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x414a33
push 0xc
call fcn.0042de6a
mov esi, eax
test esi, esi
pop ecx
je 0x414a15
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x414a17
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x414a2e
push dword [ebp - 8]
call fcn.0042d373
jmp 0x414a33
call fcn.0042cf99
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x414998
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc