joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001665
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x10020b0], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x100167e
call fcn.0100161c
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
push 0x1001248
push edi
call fcn.01001278
push esi
push dword [ebp + 0xc]
push edi
call fcn.01001278
push 0x100202c
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [0x1002028], eax
je 0x10016e5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [0x10020b0], eax
je 0x10016e5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [0x1002028]
mov dword [0x1002020], eax
push dword [0x100202c]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10016ec
xor eax, eax
jmp 0x10017c3
lea eax, [ebp - 4]
push eax
push 0x1002024
push 0x1001214
push dword [0x1002020]
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100172e
shr eax, 2
mov dword [0x10020ac], eax
imul eax, eax, 0x2d
mov dword [0x10020a8], eax
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x10020b4], eax
jmp 0x1001734
mov dword [0x1002024], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
movzx eax, ax
push eax
push 0x10011e0
mov edi, 0x1002030
push edi
call ebx
add esp, 0xc
mov esi, section..data
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
cmp dword [ebp - 4], eax
je 0x100178b
mov eax, dword [0x1002024]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x10011ac
push edi
call ebx
add esp, 0x10
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001178
push edi
call ebx
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
push 0x1001144
push edi
call ebx
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
push 0x1001110
push edi
call ebx
push esi
call fcn.010015d3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4013d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42aff1
push eax
mov eax, 0x188c
mov dword fs:[0], esp
call fcn.0040e710
mov eax, dword [0x438968]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 0x5db
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18b8]
lea edx, [esp + 0x12c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18b4]
push ecx
push 0x1770
push edx
push eax
mov dword [esp + 0x18b4], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor eax, eax
cmp byte [esp + eax + 0x12c], bl
jne 0x40146e
cmp byte [esp + eax + 0x12d], bl
je 0x401476
inc eax
cmp eax, 0x1770
jl 0x40145c
mov esi, dword [esp + 0x18ac]
lea edi, [eax + 1]
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.0041db11
mov ebp, dword [esp + 0x18b0]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0041db11
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x18], eax
jle 0x40158f
mov ecx, dword [esp + 0x14]
mov al, byte [esp + eax + 0x12c]
mov byte [esp + ecx + 0x28], al
inc ecx
cmp al, bl
mov dword [esp + 0x14], ecx
jne 0x40157a
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041facd
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x40157a
push 0x4380c0
lea ecx, [esp + 0x14]
call fcn.0041d335
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0041d29b
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x18ac], 1
call fcn.0041dc5a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18a4], bl
call fcn.0041f944
push 0x4380c0
lea ecx, [esp + 0x14]
call fcn.0041d335
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041d1e2
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x18ac], 2
call fcn.0041dc5a
lea ecx, [esp + 0x24]
mov byte [esp + 0x18a4], bl
call fcn.0041f944
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4014ad
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18a4], 0xffffffff
call fcn.0041f944
mov ecx, dword [esp + 0x189c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1898
ret
Function at 0x4015d0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x42b010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov dword [esp + 0x24], 0
call fcn.00427e63
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40163d
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f944
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40167a
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f944
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
call fcn.0041fe2c
mov edx, dword [esp + 0x34]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0041ff3e
push ebp
push esi
lea ecx, [esp + 0x14]
call fcn.00420095
lea ecx, [esp + 0xc]
call fcn.00420159
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0041fe81
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f944
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4016f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call fcn.00427e63
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40171e
pop edi
pop esi
pop ebp
pop ecx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40173b
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00405f90
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x401940
Capabilities:
Access peb ldr_data
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x42b120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x28]
push 0x100
push 0x100
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.0041fd4d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.0041fd9c
mov eax, dword [0x438968]
mov dword [esp + 4], eax
push 0x100
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.0041fd4d
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0041fd9c
lea ecx, [esp + 4]
push str.wanyx.bat
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0041fbd9
mov eax, dword [eax]
push 0x438130
push eax
call fcn.0040e8bd
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
call fcn.0041f944
test esi, esi
je 0x401b30
push esi
push str._echo_off_n
call fcn.0040e83e
push esi
push str.ping__n_2_127.0.0.1_nul_n
call fcn.0040e83e
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push str.del__f__q
push ecx
call fcn.0041fc4d
push str.wanyxmodule.exe_n
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.0041fbd9
mov eax, dword [eax]
push esi
push eax
call fcn.0040e83e
add esp, 8
lea ecx, [esp + 8]
call fcn.0041f944
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.0041f944
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push str.move
push ecx
call fcn.0041fc4d
push str.wanyxupdate.exe
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x2c], 3
call fcn.0041fbd9
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.0041fb73
push str.wanyxmodule.exe_n
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x28], 5
push eax
call fcn.0041fbd9
mov eax, dword [eax]
push esi
push eax
call fcn.0040e83e
add esp, 8
lea ecx, [esp + 0xc]
call fcn.0041f944
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call fcn.0041f944
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0041f944
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041f944
push esi
push str.del__0
call fcn.0040e83e
push esi
call fcn.0040e7c1
add esp, 0xc
push str.wanyx.bat
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call fcn.0041f944
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404da0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x404def
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xe0], 0xffffffff
push eax
call fcn.00405960
test eax, eax
jne 0x404ddc
push 5
push eax
push eax
mov eax, dword [esi + 0xb8]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x404def
push 0
push 0x438648
push 0x43863c
mov ecx, esi
call fcn.00421ec8
push 0
mov ecx, esi
call fcn.004230e3
push esi
call fcn.00401d50
mov dword [esi + 0x94], 1
pop esi
ret 4
Function at 0x405960
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x42b4f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [esp + 0x140]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.0041f9b2
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], ebx
call fcn.0041fde4
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x128
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x405a8d
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405a86
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc]
push edx
call fcn.0041f9b2
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], 1
call fcn.0041fde4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.0041d335
cmp eax, edi
jne 0x405a5f
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], bl
call fcn.0041f944
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405a86
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc]
push edx
call fcn.0041f9b2
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], 1
call fcn.0041fde4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.0041d335
cmp eax, edi
je 0x405a0f
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], bl
call fcn.0041f944
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], edi
call fcn.0041f944
mov eax, 1
jmp 0x405a9f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], edi
call fcn.0041f944
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4
Function at 0x41cb40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e710
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cc0b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41cc0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41cbbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cbc9
or bh, 8
and edi, 0x8000000
je 0x41cbe4
mov eax, dword [0x4401fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41cc0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cfe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d00b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d02f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d04a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f2db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42b638
call fcn.0040ebec
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00427e63
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41f31a
call fcn.00427e63
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f328
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f336
or eax, 0xffffffff
jmp 0x41f41e
mov ecx, esi
call fcn.0041f251
mov dword [ebp - 0x14], eax
call fcn.00420ea9
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41f36d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f36d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00420e5d
push dword [ebp - 0x14]
call fcn.0042098f
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041efe9
cmp eax, edi
je 0x41f3e0
test byte [esi + 0x24], 0x10
je 0x41f3ae
push 4
mov ecx, esi
pop ebx
call fcn.00422fae
test ah, 1
je 0x41f3a6
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004229e3
cmp dword [esi + 0x1c], edi
je 0x41f3e0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00423094
jmp 0x41f3e0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41f3f4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f40d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f40d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041f28b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x422891
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4228d3
call fcn.00427e63
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4228d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4228ca
xor eax, eax
jmp 0x4228db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004228e1
pop edi
pop esi
pop ebx
ret 4
Function at 0x426674
Capabilities:
Create http request

Disassembly:
mov eax, 0x42bac0
call fcn.0040ebec
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4266ac
call fcn.00427e63
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]
test eax, eax
mov dword [esi + 8], eax
jne 0x4266d1
push eax
push dword [esi + 4]
call fcn.004272f3
jmp 0x4266dd
push esi
push eax
mov ecx, 0x43e578
call fcn.004266ee
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42699f
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42bb1f
call fcn.0040ebec
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00424198
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x438968]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041facd
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041facd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4286bf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4286ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42870b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428625
jmp 0x42870b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42870b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428625
test edi, edi
mov eax, edi
jne 0x4286f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4a65e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ee2
mov eax, dword [0x4e0034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004065af
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6626
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a6782
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040672b
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e3e78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403580
mov ecx, dword [esi*4 + 0x4e3e78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a677b
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a677b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a677b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403580
add esp, 0x14
test edx, edx
jl 0x4a677b
jg 0x4a66f1
test eax, eax
jb 0x4a677b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a677b
jl 0x4a670b
cmp dword [ebp - 0x1008], eax
ja 0x4a677b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6729
test ebx, ebx
je 0x4a6762
cmp ecx, edi
jae 0x4a6762
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a6743
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a674f
cmp byte [ecx + 1], 0xa
jne 0x4a674f
inc ecx
jmp 0x4a674f
movzx eax, al
movsx eax, byte [eax + 0x4e0358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6729
cmp edx, ebx
jne 0x4a6729
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a6780
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040333c
leave
ret