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

Disassembly:
push 0xffffffffffffffff
push 0x4ff620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004737d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.004737d0
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.00473840
lea ecx, [esp + 0x10]
call fcn.00473f70
cmp eax, 1
jae 0x4734a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x473513
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x473513
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.00473840
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.00473f70
cmp eax, 1
jb 0x473513
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.004732a0
test eax, eax
je 0x473513
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00473580
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004738a0
push edi
lea ecx, [esp + 0x24]
call fcn.004738c0
push esi
lea ecx, [esp + 0x24]
call fcn.00473960
push str..tmp
lea ecx, [esp + 0x24]
call fcn.004738c0
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00473280
test eax, eax
je 0x473549
inc esi
cmp esi, 0x7a0a1f00
jb 0x4734ca
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004737f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004737f0
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.004738a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004737f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004737f0
mov eax, 1
jmp 0x473534
Function at 0x473cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ff6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004737d0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.00473840
push 0
mov ecx, esi
call fcn.00473c70
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x473e28
lea ecx, [esp + 0xc]
call fcn.00473f70
cmp eax, 1
jae 0x473d77
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004737f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x473dc4
push 0
lea ecx, [esp + 0x10]
call fcn.00473bf0
push eax
push edi
mov ecx, 0x56ccfc
call fcn.00473400
test eax, eax
jne 0x473dcc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004737f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.00473840
push edi
mov ecx, 0x56ccfc
call fcn.00473360
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.00473be0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x473e28
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x473e28
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x473e58
push 1
mov ecx, esi
call fcn.00473c70
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004737f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.004737f0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x4747e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.00473840
pop edi
add esp, 0x104
ret 4
Function at 0x475620
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4756c3
test eax, eax
jbe 0x4756c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4756c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47566e
xor esi, esi
jmp 0x475674
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47569f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041b160
add esi, eax
push esi
mov ebx, esi
call fcn.0041b160
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475680
pop ebp
test edi, edi
pop edi
jne 0x4756c3
test ebx, ebx
je 0x4756c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004dbf70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x475805
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47591d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47591d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004efbe0
mov esi, eax
test esi, esi
je 0x47591d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47591d
mov ecx, esi
call fcn.00475770
cmp edi, eax
jge 0x47591d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4758a3
mov dword [esp + 0x34], 1
jmp 0x4758fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47591d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00474ce0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47d330
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x527d10
push 1
push 0
push 0x527d00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x47d35e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x527db0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x47d392
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8
Function at 0x484320
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x484353
push esi
call fcn.004891f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x48434c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4843d9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4843c2
mov eax, dword [esi + 8]
test eax, eax
je 0x484377
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4843be
cmp eax, 2
je 0x4843c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48436a
cmp eax, 3
je 0x48439d
cmp eax, 1
jne 0x48436a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48436a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48436a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00484410
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4843f9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00484410
add esp, 4
pop esi
ret

Function at 0x4b4f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4b4f4b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4b504e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x513168]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513168]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513168]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513168]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513168]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513168]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513168]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x513168]
xor eax, edx
inc ecx
dec edi
jne 0x4b4f66
pop edi
test esi, esi
je 0x4b5070
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x513168]
xor eax, edx
inc ecx
dec esi
jne 0x4b5052
pop esi
pop ebx
not eax
ret
Function at 0x4f0584
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f05bc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ee629
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ee601
jmp 0x4f05c8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f1c79
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 0x4f1cbb
call fcn.004f7c81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f1cbb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f1cb2
xor eax, eax
jmp 0x4f1cc3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f1cc9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f81b1
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 0x4f81df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f81fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f8117
jmp 0x4f81fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f81fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f8117
test edi, edi
mov eax, edi
jne 0x4f81e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401810
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4290a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x434ca4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x42e5df
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.00402790
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain_
push 0x80000001
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4018af
or edi, 0xffffffff
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4019f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
push 0x50
call fcn.00403923
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
lea edx, [esp + 0x20]
push edx
push 0
push str.Start_Page
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401873
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401e80
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.00402ac0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40192c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.00403918
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push str.baidu.com
push edx
call fcn.00414a20
add esp, 8
test eax, eax
je 0x40198e
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x401977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0xc]
push str.hao123.com
push ecx
call fcn.00414a20
add esp, 8
test eax, eax
je 0x4019b9
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x401969
mov ecx, dword [esp + 0xc]
push str.3567.com
push ecx
call fcn.00414a20
add esp, 8
test eax, eax
je 0x4019da
lea ecx, [esp + 0xc]
call fcn.00402c80
jmp 0x401977
mov edx, dword [esp + 0xc]
push str.2487.com
push edx
call fcn.00414a20
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
jne 0x4019d3
call fcn.00402c80
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x401a10
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push edi
push str..Main_gamex.ini
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00402790
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x100
lea ecx, [esi + 0xd6]
push ecx
push 0
push str.Name
push str.AppName
call edi
test eax, eax
jne 0x401a72
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
push 0x100
lea edx, [esi + 0xa4]
push edx
push 0
push str.Name
push str.Main
call edi
test eax, eax
jne 0x401aab
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x401a60
mov ecx, dword [esp + 8]
push ecx
push 0x100
add esi, 0x108
push esi
push 0
push str.Name
push str.Params
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401aea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x402510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402529
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402564
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402560
lea ebx, [ebx]
cmp esi, eax
jae 0x402564
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402550
cmp esi, eax
jb 0x40256a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4035b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x428ed8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x434ca4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain_
push 0x80000001
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403639
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00402bd0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004036e0
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [ecx - 0xc]
inc eax
movzx eax, ax
movzx edx, ax
mov eax, dword [esp + 8]
push edx
push esi
push 1
push 0
push str.Start_Page
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4035fc
push esi
call fcn.00403918
mov ecx, dword [esp + 0xc]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4036c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4

Function at 0x403840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00406e6b

Function at 0x408235
Capabilities:
Create http request

Disassembly:
mov edi, edi
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 0x408260
call fcn.00405992
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
jne 0x408283
push eax
push dword [esi + 4]
call fcn.004081bb
push esi
push eax
mov ecx, 0x4362e8
call fcn.00407e6f
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x40f6e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f72d
call fcn.00405992
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f72d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f749
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f260
mov esi, eax
test edi, edi
je 0x40f747
test ebx, ebx
je 0x40f747
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41440f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434ca4]
jne 0x414419
repz ret
jmp fcn.00419a8c

Function at 0x414636
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x414667
call fcn.00415981
mov dword [eax], esi
call fcn.0041596e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041a03c
add esp, 0x14
push 0x16
pop eax
jmp 0x4146bc
test dword [ebp + 0xc], 0xfffffff9
jne 0x414643
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415994
pop ecx
call fcn.0041596e
mov eax, dword [eax]
jmp 0x4146bc
test al, 0x10
jne 0x4146ba
test al, 1
je 0x4146ba
test byte [ebp + 0xc], 2
je 0x4146ba
call fcn.00415981
mov dword [eax], 5
call fcn.0041596e
mov dword [eax], 0xd
jmp 0x41468b
xor eax, eax
pop esi
pop ebp
ret