joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ec0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x42b180
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45c7ab
push eax
mov eax, 0x2014
mov dword fs:[0], esp
call fcn.0043ae00
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov eax, dword [ebx + 0x78]
push 0
push 0
push 0x14b
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x42b278
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax], 0
je 0x42b278
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x14]
call fcn.00450f01
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x78]
push eax
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
mov esi, 0x502118
cmp dword [esi], 0
je 0x42b235
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esi], eax
je 0x42b230
add esi, 4
cmp esi, 0x502140
jl 0x42b20f
jmp 0x42b235
mov ebp, 1
mov eax, dword [ebx + 0x78]
push ebp
push edi
push 0x151
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
mov dword [esp + 0x202c], 0xffffffff
cmp edi, 0xa
lea ecx, [esp + 0x10]
jge 0x42b273
call fcn.00450e93
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
cmp dword [eax + edi*4], 0
jne 0x42b1dc
jmp 0x42b278
call fcn.00450e93
push 0x46fe28
push 0x501d14
lea ecx, [esp + 0x20]
call fcn.0042c2f0
lea ecx, [esp + 0x18]
call fcn.0042c350
mov edx, dword [ebx + 0x78]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x14c
push edx
call esi
push 0
push eax
mov eax, dword [ebx + 0x78]
push 0x14e
push eax
call esi
mov ecx, ebx
call fcn.0042b430
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2020
ret
Function at 0x42b760
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x4715f0]
push esi
mov word [0x51f7b4], ax
inc eax
mov dword [0x4715f0], eax
mov eax, dword [0x4715f4]
mov word [0x51f7b6], ax
inc eax
push edi
mov dword [0x4715f4], eax
mov edi, ecx
mov byte [0x51f7b0], 8
mov byte [0x51f7b1], 0
mov word [0x51f7b2], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x51f7bd], cl
inc eax
cmp eax, 0x20
jl 0x42b79f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2d
push 0x51f7b0
mov ecx, edi
mov dword [0x51f7b9], eax
call fcn.0042b980
mov edx, dword [esp + 0x10]
push 0x10
push edx
mov word [0x51f7b2], ax
mov eax, dword [esp + 0x14]
push 0
push 0x2d
push 0x51f7b0
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b7fd
push str.sendto__
mov ecx, edi
call fcn.0042b8e0
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x42b810
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x148
push esi
mov esi, ecx
mov ecx, dword [esp + 0x154]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x154]
push ecx
push 0
lea edx, [esp + 0x14]
push 0x141
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x42b874
push str.recvfrom__
mov ecx, esi
call fcn.0042b8e0
mov ecx, dword [esp + 0x158]
mov dl, byte [esp + 0x10]
mov eax, dword [esp + 0x25]
pop esi
mov byte [ecx], dl
add esp, 0x148
ret 0xc
mov eax, dword [esp + 0x158]
mov cl, byte [esp + 0x10]
pop esi
mov byte [eax], cl
mov eax, dword [esp + 0x21]
add esp, 0x148
ret 0xc

Function at 0x42b890
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret 4

Function at 0x42b8e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x404
mov al, byte [0x473aa0]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x10], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x418]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s___WSAError:__ld_r_n
push edx
call fcn.0043afc4
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 8]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 4
Function at 0x42ba80
Capabilities:
Create service
Persist via windows service

Disassembly:
mov eax, 0x1000
call fcn.0043ae00
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042bb70
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42babe
pop edi
pop esi
pop ebx
add esp, 0x1000
ret
lea eax, [esp + 0xc]
push 0x7d0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42bade
pop edi
pop esi
pop ebx
add esp, 0x1000
ret
lea ecx, [esp + 0xc]
push str._service
push ecx
lea edx, [esp + 0x814]
push str.__s___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x80c]
lea ebx, [esi + 0x8c]
add esi, 0x28
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x110
push 0xf01ff
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x42bb47
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1000
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
push ebx
call fcn.0042e250
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1000
ret

Function at 0x42bb70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
mov esi, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x42bc11
add esi, 0x8c
push 0xf01ff
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x42bbff
lea eax, [esp + 8]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42bbf0
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
test eax, eax
je 0x42bbf0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 3
jne 0x42bbef
push 0x3e8
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x42bbd5
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
Function at 0x42e250
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x42e272
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push 0x14
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42e295
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x42e2d4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 2
jne 0x42e2d4
push 0x3e8
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x42e2ba
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 4
pop ebx
pop esi
pop ebp
sete al
add esp, 0x1c
ret

Function at 0x42e300
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x42e322
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push 0x24
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42e345
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
lea ecx, [esp + 8]
push edi
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0xc]
push edx
push esi
call edi
test eax, eax
je 0x42e388
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 3
jne 0x42e387
push 0x3e8
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x42e36d
pop ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
pop edi
cmp eax, 1
pop esi
sete al
pop ebp
add esp, 0x1c
ret
Function at 0x42e3b0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x328
lea eax, [esp + 0x220]
push ebp
push edi
mov edi, dword [esp + 0x334]
push edi
push str._s.
push eax
call fcn.0043afc4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x234]
push ecx
push edx
call fcn.0043ccf6
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
je 0x42e4c2
push esi
mov esi, 0x46efe8
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42e420
test cl, cl
je 0x42e41c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42e420
add eax, 2
add esi, 2
test cl, cl
jne 0x42e3fc
xor eax, eax
jmp 0x42e425
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e4a2
mov esi, 0x471724
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42e456
test cl, cl
je 0x42e452
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42e456
add eax, 2
add esi, 2
test cl, cl
jne 0x42e432
xor eax, eax
jmp 0x42e45b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e4a2
lea eax, [esp + 0x20]
lea ecx, [esp + 0x124]
push eax
push edi
push str._s_s
push ecx
call fcn.0043afc4
mov al, byte [esp + 0x1c]
add esp, 0x10
test al, 0x10
je 0x42e494
lea edx, [esp + 0x124]
push edx
call fcn.0042e3b0
add esp, 4
jmp 0x42e4a2
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push ecx
push ebp
call fcn.0043cdc3
add esp, 8
test eax, eax
je 0x42e3f3
push ebp
call fcn.0043ce8b
add esp, 4
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop ebp
add esp, 0x328
ret

Function at 0x42e4e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42e518
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x42e518
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x18]
test edx, edx
je 0x42e543
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x42e553
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret
Function at 0x42e570
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42e61d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
push eax
push esi
push esi
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42e60c
mov edx, dword [esp + 0x1c]
push ebx
push edx
call fcn.00451344
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42e602
mov eax, dword [esp + 0x20]
mov esi, ebx
mov ecx, eax
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
mov esi, 1
push ebx
call fcn.0045136d
add esp, 4
pop ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret

Function at 0x42e630
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45cac5
push eax
mov eax, 0x1110
mov dword fs:[0], esp
call fcn.0043ae00
mov al, byte [0x473aa0]
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x11]
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0042f4c0
mov edx, dword [0x471a34]
add esp, 4
mov dword [esp + 8], edx
mov eax, dword [esp + 0x112c]
mov edi, 1
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1124], edi
call fcn.00451d63
push 0x47173c
push 0x46f79c
lea ecx, [esp + 0x10]
call fcn.0044aa26
push 0x471738
push 0x46f7a0
lea ecx, [esp + 0x10]
call fcn.0044aa26
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push 0x1000
push edx
push eax
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x118]
test al, al
je 0x42e708
lea eax, [esp + 0x118]
lea ecx, [esp + 8]
push eax
call fcn.0045101c
push 0x46f79c
push 0x47173c
lea ecx, [esp + 0x10]
call fcn.0044aa26
push 0x46f7a0
push 0x471738
lea ecx, [esp + 0x10]
call fcn.0044aa26
mov esi, dword [esp + 0x1128]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00450c08
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x1120], 0
call fcn.00450e93
mov ecx, dword [esp + 0x1118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x111c
ret
Function at 0x42e890
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2110
call fcn.0043ae00
mov al, byte [0x473aa0]
push esi
push edi
mov byte [esp + 8], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
call fcn.0042f4c0
mov dl, byte [0x473aa0]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
add esp, 4
rep stosd dword es:[edi], eax
call fcn.00457b46
mov edx, dword [esp + 0x211c]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x110]
push 0x1000
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x47173c
lea eax, [esp + 0x114]
push 0x46f79c
push eax
call fcn.0042e770
push 0x471738
lea ecx, [esp + 0x120]
push 0x46f7a0
push ecx
call fcn.0042e770
mov dl, byte [0x473aa0]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x112d]
mov byte [esp + 0x112c], dl
add esp, 0x18
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x1114]
push eax
push 0x1000
lea edx, [esp + 0x118]
push ecx
lea eax, [esp + 0x11c]
push edx
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1114]
test al, al
je 0x42e9b1
lea edi, [esp + 0x1114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x46f79c
lea ecx, [esp + 0x114]
push 0x47173c
push ecx
call fcn.0042e770
push 0x46f7a0
lea edx, [esp + 0x120]
push 0x471738
push edx
call fcn.0042e770
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x2110
ret
Function at 0x42ea20
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2110
call fcn.0043ae00
mov al, byte [0x473aa0]
push esi
push edi
mov byte [esp + 8], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
call fcn.0042f4c0
mov dl, byte [0x473aa0]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
lea edx, [esp + 0x114]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x47173c
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x46f79c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.0042e770
push 0x471738
lea edx, [esp + 0x124]
push 0x46f7a0
push edx
call fcn.0042e770
mov al, byte [0x473aa0]
mov ecx, 0x400
mov byte [esp + 0x1130], al
xor eax, eax
lea edi, [esp + 0x1131]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x1114]
push ecx
push 0x1000
lea eax, [esp + 0x118]
push edx
lea ecx, [esp + 0x11c]
push eax
push ecx
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1114]
test al, al
je 0x42eb42
lea edi, [esp + 0x1114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x46f79c
lea ecx, [esp + 0x114]
push 0x47173c
push ecx
call fcn.0042e770
push 0x46f7a0
lea edx, [esp + 0x120]
push 0x471738
push edx
call fcn.0042e770
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x2120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x2110
ret
Function at 0x42f350
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45cafb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50c
mov al, byte [0x473aa0]
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0042f4c0
mov edx, dword [0x471a34]
add esp, 4
mov dword [esp + 8], edx
mov edi, dword [esp + 0x524]
xor esi, esi
mov dword [esp + 0x51c], esi
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, esi
jbe 0x42f48a
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMenuStringA]
push 0x400
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
call fcn.0045125d
mov ecx, dword [edi + 4]
push eax
push esi
push ecx
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004512ac
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42f475
lea edx, [esp + 0x14]
lea ecx, [esp + 0x11c]
push edx
push 0x400
push ecx
push eax
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x11c]
test al, al
je 0x42f44e
mov edx, dword [edi + 4]
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x11c]
push ecx
push eax
push 0x400
push esi
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [edi + 4]
push esi
push eax
call ebx
push eax
call fcn.00451b89
test eax, eax
je 0x42f475
mov ecx, dword [edi + 4]
push esi
push ecx
call ebx
push eax
call fcn.00451b89
push eax
call fcn.0042f350
add esp, 4
mov edx, dword [edi + 4]
inc esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jb 0x42f3ca
pop ebp
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x51c], 0xffffffff
call fcn.00450e93
mov ecx, dword [esp + 0x514]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x518
ret

Function at 0x42f4c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
lea eax, [esp]
push 0x473bd8
push 0x400
push eax
push str.English
push 0x46f18c
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x404]
lea ecx, [esp]
push ecx
push 0x473ce0
push str._sLanguage_s.ini
push edx
call fcn.0043afc4
add esp, 0x410
ret
Function at 0x443ec5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x473468
cmp edx, dword [eax]
je 0x443ee7
add eax, 8
inc ecx
cmp eax, 0x4734f8
jl 0x443ed8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x473468]
jne 0x444015
mov eax, dword [0x521ca0]
cmp eax, 1
je 0x443fef
test eax, eax
jne 0x443f18
cmp dword [0x4729d4], 1
je 0x443fef
cmp edx, 0xfc
je 0x444015
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x443f4f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00440460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00440550
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x443f92
lea eax, [ebp - 0x1a4]
push eax
call fcn.00440550
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x464558
push edi
call fcn.0043c150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00440460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00440470
lea eax, [ebp - 0xa0]
push 0x464538
push eax
call fcn.00440470
push dword [esi + 0x47346c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00440470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00445933
add esp, 0x2c
pop edi
jmp 0x444015
lea eax, [ebp + 8]
lea esi, [esi + 0x47346c]
push 0
push eax
push dword [esi]
call fcn.00440550
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret