joyce8/EMBER2024-capa huggingface dataset:
Function at 0xead3e9
Capabilities:
Packed with generic packer

Disassembly:
jmp 0xcf78df
call fcn.00cd9378
jmp 0xd238f9
mov byte [esp + 8], ch
lea esi, [esi - 0x40ae934b]
call fcn.00b857fd
call [ecx]
jl 0xcf7923
xor byte [ebx], 0x78
dec ebx
push eax
popal
dec esp
outsd dx, dword [esi]
pop edx
fsubr st(5)
dec edi
inc esi
jno 0xcf7937
ja 0xcf793d
lea ecx, [edx]
mov ebx, 0x11c68911
hlt
rol dword [esi], 2
bound ebp, qword [edx]
jmp 0xcf7922
invalid
xchg esi, eax
jg 0xcf78bc
mov edi, 0xf2eaadf2
adc eax, ecx
mov al, byte [0x3e2920ce]
mov bl, 0xb3
invalid
wait
and ah, bl
jo 0xcf7922
jno 0xcf7996
pop eax
out dx, eax
adc al, 0x2c
nop
adc dword [edi - 0x35], esp
dec byte [ebx]
aas
mov ch, 0x14
mov byte [0x9cc8a68d], al
and edx, esp
pop ebp
jns 0xcf78df
pop edi
jle 0xcf7918
in al, 0xec
outsd dx, dword [esi]
fld xword cs:[esi + 0x303a66a0]
jmp 0xcf795a
and dh, byte [ebp + 0x30b4c276]
wait
mov edi, 0x5cec7071
jbe 0xcf7a1b
loope 0xcf792d
add byte [esi - 0x6f], ch
mov cl, 0xc9
sub dl, byte [ecx]
xor ch, byte [edi]
add dword [eax + 0x3db42325], 0xfffffffb
cmp byte [edi + 0x7cfb55d6], cl
invalid
cmp al, 0xda
inc ebp
xchg edx, eax
wait
sbb byte [ebp - 0x308b8ad0], bl
adc edx, dword [eax + esi*8 - 0x7b5168ad]
xor byte [esi + esi*4], 0x11
pop esi
mov ebx, 0x7cc0c897
xchg esi, eax
sbb ecx, dword [ecx]
push esi
std
out dx, eax
loopne 0xcf7ab9
iretd
sub byte [edx], bl
xchg edx, eax
les ecx, [edx + 0x734a069b]
add byte [ecx + 0x44f22a5], ah
xor al, 0xcd
xor ebx, dword [ecx + 0x19]
invalid
push ecx
pushfd
nop
mov byte [esp], dl
mov dword [esp + 4], ecx
pushal
lea ecx, [esi + 0x62924dc4]
pushal
bswap cx
mov ecx, dword [esp + 0x48]
mov byte [esp + 4], 0x49
mov dword [esp], 0xd64d408a
push ebx
lea ecx, [ecx + 1]
call 0xf983fc
push 0x825715cb
mov eax, dword [eax + 0x193099]
mov word [esp], 0xff25
call fcn.00e51922
lea ebx, [ebx + 0x56b3bb1a]
mov byte [esp], 0x97
call fcn.00eab1a1
xchg dword [esp + 8], ebp
mov word [esp], 0x122a
movzx ebp, bl
not bp
mov ebp, 0x4a4561
jmp 0xcbbd2c
lea eax, [ebx - 0x6367dc6a]
mov eax, 0x4cd76d
lea esp, [esp + 0x18]
js 0xe13e19
pushal
mov eax, dword [eax + 0x193099]
push 0xce77345
call fcn.00d607c8
mov esi, dword [esi + 0x4a8bf1]
jmp 0xbb4ef5

Function at 0xee4fbb
Capabilities:
Encode data using xor

Disassembly:
push 0x6e7dabec
lea edi, [edi + 1]
mov dword [esp + 4], 0x3abf40d5
mov dword [esp], edx
pushal
mov dword [esp + 0x30], edi
call fcn.00da24e9
push ebp
xor dl, byte [ecx + 0x70d1f6a5]
fisub word [eax - 0x25]
push ecx
invalid

Function at 0xef2718
Capabilities:
Packed with generic packer

Disassembly:
call fcn.00df7fae
pushal
movsx ax, bl
nop
call 0xf69865
mov byte [esp], cl
jmp 0xe64ce4

Function at 0xf359b0
Capabilities:
Encode data using xor

Disassembly:
pop edx
push dword [esp]
mov edx, dword [esp + 0x28]
pushal
pushfd
push esi
push dword [esp + 4]
lea edx, [edx + 1]
mov byte [esp], bh
call fcn.00e0b50d
in eax, dx
dec dword [ecx + 0x665c2444]
mov dword [esp + 0x5c], eax
movzx ax, dl
movzx eax, dl
not ah
mov eax, 0x48bcb7
call fcn.00c522d3
pop ebp
sub ch, byte [edx]
xor dword [edi], edx
xor al, 0xa3
cdq
cld
mov ecx, 0xdfd4cdf0
jae 0xf359cb
aad 0xdc
js 0xf359d2
retf 0x51f5
Function at 0xf42807
Capabilities:
Packed with generic packer

Disassembly:
mov byte [esp + 0xc], 0x5e
call fcn.00ec5073

Function at 0xf5084b
Capabilities:
Access peb ldr_data

Disassembly:
bswap cx
movsx cx, cl
pushfd
nop
call fcn.00bda80f

Function at 0xf5e743
Capabilities:
Encode data using xor

Disassembly:
pushfd
pushal
call fcn.00f0f095
pushal
mov edx, dword [edx + 0x23a8b3]
push 0x24598576
call fcn.00c9d6fb
xor al, 0x79
sub cl, byte [ebp + 0x39f991a]
xor esi, ebx
jl 0xf5e77b
enter 0xfffffffffffff4cf, 0x4e
seto byte [ecx]
add ebx, dword [eax + 0x49]
invalid
mov cl, 0x1e
sahf
invalid
Function at 0x40157b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x44f6ed
call fcn.0041db18
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.0041dc40
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.0041dc40
mov ebx, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x70]
push ebx
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0041cfd0
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.0041cfd0
mov eax, dword [ebp + 0x78]
add eax, esi
push esi
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0041cfd0
push esi
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.0041dc40
push esi
lea eax, [ebp + 0x60]
push 0
push eax
call fcn.0041dc40
push esi
lea eax, [ebp + 0x58]
push 0
push eax
call fcn.0041dc40
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.0041cfd0
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.0041cfd0
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.0041cfd0
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.0041cfd0
push esi
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x74]
call fcn.0041cfd0
add esp, 0x44
push 0x80
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0041dc40
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 0x403fc1
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 + 0x2e9a], 1
call fcn.0041dc40
push esi
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.0041dc40
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, 0x4576ff
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.0041dc40
push esi
lea eax, [esp + 0xa0]
push 0
push eax
call fcn.0041dc40
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 0x40419d
Capabilities:
Parse credit card information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xd4
push ebx
push esi
push edi
push 0x10
lea eax, [ebp + 0x40]
mov esi, ecx
push 0x30
push eax
mov dword [ebp + 0x6c], esi
call fcn.0041dc40
push 0x80
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0041dc40
add esp, 0x18
xor eax, eax
cmp byte [esi + eax + 0x2e9e], 0x3d
je 0x4041e2
inc eax
cmp eax, 0x25
jl 0x4041d2
push 0x10
lea ecx, [ebp + 0x4f]
lea eax, [eax + esi + 0x2e9e]
pop edi
dec eax
mov dl, byte [eax]
mov byte [ecx], dl
dec ecx
dec edi
jne 0x4041ef
push 0x10
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041cfd0
push 3
lea eax, [esi + 0x142c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041cfd0
push 0xc
lea eax, [esi + 0x131e]
push eax
lea eax, [ebp - 0x4d]
push eax
call fcn.0041cfd0
mov al, byte [esi + 0x1300]
add esp, 0x24
cmp al, 0x31
mov dword [ebp + 0x70], 0x1f
je 0x404259
cmp al, 0x42
je 0x404250
cmp al, 0x49
jne 0x404273
push 2
push 0x457784
jmp 0x404260
push 2
push 0x457780
jmp 0x404260
push 2
push 0x45777c
lea eax, [ebp - 0x41]
push eax
call fcn.0041cfd0
add esp, 0xc
mov dword [ebp + 0x70], 0x21
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ebx, str.c:_test.ini
push ebx
lea eax, [ebp - 0x60]
push eax
push str.sndmacBuf
mov edi, 0x456010
push edi
call esi
push dword [ebp + 0x70]
lea eax, [ebp + 0x68]
push 0x457734
push eax
call fcn.0041df39
add esp, 0xc
push ebx
lea eax, [ebp + 0x68]
push eax
push str.sndmacLen
push edi
call esi
mov eax, dword [0x470ff4]
test eax, eax
je 0x404331
add eax, 4
push 0x10
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.0041cfd0
push 0x20
lea eax, [ebp + 0x20]
push 0
push eax
call fcn.0041dc40
mov ecx, dword [ebp + 0x6c]
add esp, 0x18
push 0x10
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00403def
push ebx
lea eax, [ebp + 0x20]
push eax
push str.mackeysnd
push edi
call esi
push dword [ebp + 0x70]
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00402b5a
mov ecx, dword [ebp + 0x6c]
add esp, 0x10
push 8
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x7c]
call fcn.00403def
push ebx
push dword [ebp + 0x7c]
push str.macData
push edi
call esi
xor eax, eax
inc eax
jmp 0x404333
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4

Function at 0x404c40
Capabilities:
Get common file path

Disassembly:
mov eax, 0x450025
call fcn.0041db18
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.0040447c
and dword [ebp - 4], 0
push 0x457858
push eax
push dword [ebp + 8]
call fcn.00404b41
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 0x40520c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x450025
call fcn.0041db18
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x14], ecx
call fcn.00404c40
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.00404b41
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x10
push dword [eax]
mov edi, str.PackageNo
push 0
push 0x457980
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2e40], 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.00404b41
add esp, 0xc
push dword [eax]
push 0
push 0x45797c
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2e44], 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 0x4054cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x450025
call fcn.0041db18
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.0041dc40
add esp, 0xc
push str.SYSTEMControlSet001Services_
lea ecx, [ebp - 0x10]
call fcn.00401530
lea eax, [esi + 0x180]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00404c99
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 0x40559f
mov edi, 0x100
push edi
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.0041dc40
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 0x405596
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0041dc40
push dword [ebp - 0x18]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0041cfd0
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.0041cf40
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 0x4055db
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 0x4059bd
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 0x405a5d
push 0x100
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041dc40
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 0x405a57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx esi, byte [ebp - 0x110]
sub esi, 0x30
jmp 0x405a5f
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 0x405a71
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 0x405ae1
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041dc40
push dword [ebp + 0xc]
call fcn.0041cf40
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 0x405b50
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 0x405bc0
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0041dc40
push dword [ebp + 0xc]
call fcn.0041cf40
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 0x405bd2
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 0x405c72
push 0x100
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041dc40
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 0x405c6c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx esi, byte [ebp - 0x110]
sub esi, 0x30
jmp 0x405c74
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 0x41018f
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x450341
call fcn.0041db18
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x18], esi
mov dword [esi], 0x459248
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.0042c5cb
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.00404c40
mov dword [esp], str.atmcnfg.ini
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xc
call fcn.00404b41
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