joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bde2
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x5f4274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x118], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
call fcn.0041938a
mov ecx, eax
test ecx, ecx
je 0x412106
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push edi
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00404610
test al, al
jne 0x412075
test edi, edi
jne 0x41205e
xor ecx, ecx
jmp 0x41206c
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412063
sub ecx, edx
push ecx
push edi
mov ecx, esi
call fcn.00403c60
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push eax
push 0x100
mov dword [ebp - 0x114], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4120a1
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
push edi
call fcn.0056b190
add esp, 0xc
test eax, eax
jne 0x4120e9
push 1
push 0x59db7c
mov ecx, esi
call fcn.00403c60
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4120d6
sub ecx, edx
add ecx, edi
push ecx
mov ecx, esi
call fcn.00404490
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f63b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402850
int3

Function at 0x412120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x5f4274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x514]
push eax
push esi
call fcn.0056b679
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
push str.PATCH
lea eax, [ebp - 0x104]
push eax
push str._s_s_s_s_
push edi
call fcn.00402080
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
pop edi
pop esi
call fcn.0055f63b
mov esp, ebp
pop ebp
ret
Function at 0x413a30
Capabilities:
Create directory

Disassembly:
sub esp, 0x204
mov eax, dword [0x5f4274]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
mov esi, dword [esp + 0x20c]
lea edx, [esp + 4]
push edi
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x413a55
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x413ace
lea ecx, [esp + 8]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413a80
sub ecx, edx
mov al, byte [esp + ecx + 7]
cmp al, 0x2f
je 0x413a95
cmp al, 0x5c
jne 0x413a9a
mov byte [esp + ecx + 7], 0
lea ecx, [esp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413aa1
sub ecx, edx
js 0x413ac9
nop dword [eax]
mov al, byte [esp + ecx + 7]
cmp al, 0x2f
je 0x413bc1
cmp al, 0x5c
je 0x413bc1
sub ecx, 1
jns 0x413ab0
mov byte [esp + 8], 0
lea ecx, [esp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413ad5
sub ecx, edx
je 0x413bee
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x413bd5
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x413bd5
lea ecx, [esp + 0x108]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x413b12
lea ecx, [esp + 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413b30
sub ecx, edx
mov al, byte [esp + ecx + 0x107]
cmp al, 0x2f
je 0x413b48
cmp al, 0x5c
jne 0x413b50
mov byte [esp + ecx + 0x107], 0
lea ecx, [esp + 0x108]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413b60
sub ecx, edx
js 0x413b84
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x107]
cmp al, 0x2f
je 0x413bcb
cmp al, 0x5c
je 0x413bcb
sub ecx, 1
jns 0x413b70
mov byte [esp + 0x108], 0
lea eax, [esp + 0x108]
push eax
call fcn.00413a30
add esp, 4
lea eax, [esp + 8]
push 0
push eax
call edi
test eax, eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0055f63b
add esp, 0x204
ret
mov byte [esp + ecx + 7], 0
jmp 0x413ace
mov byte [esp + ecx + 0x107], 0
jmp 0x413b8c
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0055f63b
add esp, 0x204
ret
mov ecx, dword [esp + 0x208]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0055f63b
add esp, 0x204
ret
Function at 0x4150a0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x45c
mov eax, dword [0x5f4274]
xor eax, esp
mov dword [esp + 0x458], eax
mov eax, dword [esp + 0x460]
push ebx
mov ebx, dword [esp + 0x468]
push esi
push edi
push 0x5a0260
push eax
mov edi, ecx
call fcn.0056a614
mov esi, eax
add esp, 8
test esi, esi
jne 0x4150e3
lea eax, [esi + 1]
jmp 0x415173
push esi
push 0x400
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], 0
push 1
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.0056ba67
add esp, 0x10
test eax, eax
je 0x41515b
nop dword [eax]
push eax
lea eax, [esp + 0x68]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00415b10
push esi
push 0x400
lea eax, [esp + 0x6c]
push 1
push eax
call fcn.0056ba67
add esp, 0x10
test eax, eax
jne 0x415130
push ebx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00415190
push esi
call fcn.0056b85e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055f63b
add esp, 0x45c
ret 8
Function at 0x418db7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418e10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418e10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x418e01
cmp esi, ecx
jae 0x418e10
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x418def
cmp esi, ecx
jae 0x418e10
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x418e12
xor eax, eax
pop esi
pop ebp
ret

Function at 0x419ee3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x419f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419f13
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00417f05
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00419a03
int3

Function at 0x41a26f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x41a280
xor eax, eax
jmp 0x41a29c
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a2a1
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00417f05
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00419a03
int3

Function at 0x41a36b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x59ca78]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41a39e
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00417f05
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00419a03
int3

Function at 0x41a472
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x41a49d
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a4a3
cmp dword [ebp - 4], esi
jne 0x41a4ba
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00417f05
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00419a03
lea ecx, [edi + 0xc]
call fcn.00417f05
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00419659
int3
Function at 0x41d5c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x41d605
call fcn.0042a962
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d605
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d60d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00429ccb
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41e060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41e0ec
cmp dword [esi + 0x20], 0
je 0x41e0ec
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41e0ec
cmp dword [ebp + 8], 0
je 0x41e0ec
xor edi, edi
mov ebx, edi
call fcn.0042a962
push 0x5a1320
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x41e0d0
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41e0ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00433886
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41e0e8
mov ecx, esi
call fcn.0041ddfd
mov eax, edi
jmp 0x41e0ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42435f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x58b4cd
call fcn.0055fe2d
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x424385
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4243df
lea ecx, [ebp - 0x10]
call fcn.004023f0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x59ca78]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00571f4f
push eax
call fcn.00417a71
add esp, 0x14
test esi, esi
je 0x4243d2
push esi
call fcn.00571fd0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00418937
mov eax, ebx
call fcn.0055fdfb
ret 8
Function at 0x424d05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x424d4d
call fcn.0042a962
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x424d4d
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x424d5a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x424d96
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x424d79
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x424d82
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x424d94
test di, di
jne 0x424d94
test dx, dx
je 0x424d96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424dff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0042a962
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x424e3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424e3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00424e48
jmp 0x424e41
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x425133
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x58ca50
call fcn.0055fe96
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0042a962
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x425192
call fcn.0042a962
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4251a6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x4251a2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x4251ae
or eax, 0xffffffff
jmp 0x425300
mov ecx, edi
call fcn.0042573d
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0041c25a
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x42523a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x42523a
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42523a
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0041be9f
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x425237
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x59ca78]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x425237
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042449f
test eax, eax
je 0x425237
push 0
mov ecx, esi
call fcn.00423ddc
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0041bf0b
push ebx
call fcn.0041d633
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004250d6
test eax, eax
jne 0x425283
cmp dword [edi + 0x9c], eax
jne 0x425283
call fcn.0042a962
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0041d633
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004250d6
and dword [edi + 0x9c], 0
jmp 0x4252ae
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x4252c2
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.00423ddc
test esi, esi
je 0x4252cf
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x4252e5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x4252e5
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x59ca78]
mov ecx, edi
call esi
mov ecx, edi
call fcn.004256f4
mov eax, dword [edi + 0x68]
call fcn.0055fdfb
ret
Function at 0x4279e9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x58cc19
call fcn.0055fe2d
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x427a91
push dword [ebp + 8]
call fcn.00427d12
mov dword [ebp - 0x10], eax
test eax, eax
je 0x427b24
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x427a7a
push ecx
call fcn.00417a16
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x427a7a
xor edi, edi
inc edi
jmp 0x427a84
push dword [ebx]
call fcn.00417a1f
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.004278b0
jmp 0x427b22
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x59ca78]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x427b1a
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.00417a16
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x427b14
mov esi, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.0042788d
lea ecx, [edi + edi]
push ecx
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.0042788d
mov ecx, dword [esi]
add al, bl
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax]
jb 0x427ade
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00418937
mov eax, edi
call fcn.0055fdfb
ret 0x10

Function at 0x427b2c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x427b7f
push esi
push dword [ebp + 8]
call fcn.00427d12
mov edi, eax
test edi, edi
je 0x427b7a
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x427b7a
mov eax, dword [ebp - 8]
jmp 0x427b91
mov eax, dword [ebp + 0x10]
jmp 0x427b91
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x427b97
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cc46
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0055fad0
mov eax, dword [0x5f4274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x427cc5
push ebx
push edx
call fcn.00427d12
mov ebx, eax
test ebx, ebx
jne 0x427bff
push esi
jmp 0x427ced
lea ecx, [ebp - 0x1014]
call fcn.004023f0
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x427c84
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.0041882f
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.0041a2b9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x427cb2
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00404740
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00418937
jmp 0x427cf4
push esi
mov ecx, edi
call fcn.00403e40
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x427cab
test esi, esi
jne 0x427cce
mov esi, 0x59d4f9
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.00403e40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f63b
leave
ret 0x10
Function at 0x429498
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x4294dd
call fcn.0042a962
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4294da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429524
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x429500
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x59ca78]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x429521
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x59ca78]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x42d373
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x58d037
call fcn.0055fe2d
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.0042d45d
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004023f0
mov byte [ebp - 4], 1
test edi, edi
jne 0x42d3b5
xor eax, eax
jmp 0x42d3bc
push edi
call fcn.00571fd0
pop ecx
push eax
push edi
lea ecx, [esi + 0x18]
call fcn.00403c60
push dword [esi + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
je 0x42d3ff
push dword [esi + 0xc]
mov ecx, 0x5fb2d0
push eax
call fcn.0042e546
mov eax, esi
call fcn.0055fdfb
ret 0x18
push 0
push dword [esi + 8]
call fcn.0042db79
int3

Function at 0x42d576
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42d59f
call fcn.0042a962
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
je 0x42d5cc
push esi
push eax
mov ecx, 0x5fb2d0
call fcn.0042e546
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0042db79
int3