joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e50
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404f4a
push 0x80
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00427490
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test edi, edi
je 0x404f46
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404efc
push esi
lea ebx, [esp + 0x1c]
mov ecx, edi
call fcn.00408760
add esp, 4
push ebp
mov ecx, ebx
call fcn.00408520
add esp, 4
test eax, eax
je 0x404eec
mov eax, 1
jmp 0x404f4a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404f46
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], esi
jne 0x404f3f
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425c62
add esp, 0x90
ret

Function at 0x404f70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00427490
add esp, 0xc
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404fc8
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00425c62
add esp, 0x214
ret
push 0x441560
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00411ac3
mov eax, dword [eax + 8]
push 0x441558
push 0x8a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404fb1
lea ecx, [esp]
push ecx
mov ecx, eax
call fcn.00404e50
add esp, 4
test eax, eax
je 0x404fb1
lea ecx, [esp]
call fcn.004010f0
mov ecx, dword [esp + 0x20c]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00425c62
add esp, 0x214
ret
Function at 0x405140
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 0x405159
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405194
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405190
lea ebx, [ebx]
cmp esi, eax
jae 0x405194
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405180
cmp esi, eax
jb 0x40519a
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 0x406320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x44b654]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
cmp edi, 0x469
jne 0x40646a
mov eax, dword [ebp + 0x10]
cmp eax, 0x205
jne 0x406433
xor edi, edi
mov dword [esp + 0xc], vtable.CMenu.0
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
call fcn.00411ac3
mov eax, dword [eax + 0xc]
push 0x89
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [esp + 0x10]
call fcn.004162b2
mov ecx, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push ecx
call edi
push eax
call fcn.0041627d
mov edx, dword [eax + 4]
push 0
push 0x8006
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call edi
push eax
call fcn.0041627d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push esi
push edx
push ecx
push 0xa
mov ecx, eax
call fcn.0040b3ba
mov edx, dword [esi + 0x20]
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0xc]
call fcn.0041630a
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CMenu.0
call fcn.0041630a
mov edi, dword [ebp + 8]
jmp 0x406502
cmp eax, 0x203
jne 0x406502
push 5
mov dword [esi + 0x74], 1
call fcn.0040f6c3
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 0x20]
push 0x2713
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x406502
cmp edi, 0x111
jne 0x406502
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
test ax, ax
jne 0x406502
mov edx, 0x800a
cmp cx, dx
jne 0x4064b7
test esi, esi
jne 0x406495
xor eax, eax
jmp 0x406498
mov eax, dword [esi + 0x20]
push 5
push 0x44123c
push 0x44123c
push str.http:__bizhi.sogou.com_
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x406502
test ax, ax
jne 0x406502
mov edx, 0x8006
cmp cx, dx
jne 0x4064e7
push 5
mov ecx, esi
mov dword [esi + 0x74], 1
call fcn.0040f6c3
mov eax, dword [esi + 0x20]
push 0x2713
push eax
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x406502
test ax, ax
jne 0x406502
mov edx, 0x8008
cmp cx, dx
jne 0x406502
mov eax, dword [esi]
mov edx, dword [eax + 0x15c]
mov ecx, esi
call edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040a908
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4072e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x439ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov eax, dword [0x44b654]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x234]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00427490
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push ebp
push 0x103
lea edx, [esp + 0x20]
push edx
push 0x44123c
push str.Version
push str.sogoubizhi
call ebx
test eax, eax
ja 0x407368
xor eax, eax
jmp 0x4074f4
lea eax, [esp + 0x18]
lea ecx, [edi + 4]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407372
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004013e0
lea esi, [edi + 8]
lea ecx, [esp + 0x18]
call fcn.004076c0
push ebp
push 0x103
lea ecx, [esp + 0x20]
push ecx
push 0x44123c
push 0x441bbc
push str.sogoubizhi
call ebx
test eax, eax
jbe 0x407361
lea eax, [esp + 0x18]
lea esi, [edi + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073c2
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004013e0
mov eax, dword [esi]
push 0x2f
push eax
call fcn.0042672b
add esp, 8
test eax, eax
je 0x4074ad
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x4074ad
inc eax
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004077c0
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x230], 0
call fcn.004050a0
or ebx, 0xffffffff
mov dword [esp + 0x22c], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40744c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x3f
push eax
call fcn.0042672b
add esp, 8
test eax, eax
je 0x4074ba
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x4074ba
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004077f0
push eax
mov ecx, esi
mov dword [esp + 0x230], 1
call fcn.004050a0
mov dword [esp + 0x22c], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x4074ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4074ba
push str.sgwp_fmi.exe
lea ecx, [edi + 0x1c]
call fcn.004014d0
push ebp
push 0x103
lea ecx, [esp + 0x20]
push ecx
push 0x44123c
push 0x441be0
push str.sogoubizhi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x407361
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 0x20]
call fcn.004014d0
mov eax, 1
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00425c62
add esp, 0x220
ret 4
Function at 0x407520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x88], eax
push esi
push 0x80
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
mov dword [esp + 0x14], 0x80
call fcn.00427490
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push str.Version
push str.SoftwareSogouWallPaper
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0xa0], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4075c3
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x407590
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407590
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0x78]
call fcn.004013e0
lea esi, [edi + 0x7c]
lea ecx, [esp + 0xc]
call fcn.004076c0
mov dword [edi + 0xa0], 1
mov ecx, dword [esp + 0x8c]
pop esi
xor ecx, esp
call fcn.00425c62
add esp, 0x8c
ret

Function at 0x4075e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x98], eax
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00427490
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 8]
push ecx
push str.Version
push str.SoftwareSogouWallPaper
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x80
mov dword [esp + 0x18], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40765a
xor eax, eax
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00425c62
add esp, 0x9c
ret
push esi
lea esi, [esp + 0xc]
lea ecx, [esp + 0x1c]
call fcn.004076c0
lea esi, [edi + 8]
lea edx, [esp + 0xc]
xor eax, eax
sub esi, edx
mov ecx, dword [esp + eax*4 + 0xc]
lea edx, [esi + eax*4]
mov edx, dword [esp + edx + 0xc]
cmp ecx, edx
ja 0x4076a5
jb 0x4076a5
inc eax
cmp eax, 4
jl 0x407673
mov eax, 1
pop esi
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00425c62
add esp, 0x9c
ret
mov ecx, dword [esp + 0x9c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00425c62
add esp, 0x9c
ret
Function at 0x4083c0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x818
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x814], eax
lea eax, [esp]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4084ff
mov eax, dword [esp]
push ebx
lea ecx, [esp + 0xc]
push ecx
push 0x800
lea edx, [esp + 0x20]
push edx
push 2
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x408438
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00425c62
add esp, 0x818
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x408420
push ebp
push esi
xor ebp, ebp
xor esi, esi
cmp dword [esp + 0x20], ebx
jle 0x4084da
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [esp + 0x28]
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
push edx
push eax
call ebx
test eax, eax
jne 0x4084d4
inc esi
add edi, 8
cmp esi, dword [esp + 0x24]
jl 0x408496
mov ecx, dword [esp + 0x14]
pop edi
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00425c62
add esp, 0x818
ret
mov ebp, 1
pop edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.00425c62
add esp, 0x818
ret
mov ecx, dword [esp + 0x814]
xor ecx, esp
xor eax, eax
call fcn.00425c62
add esp, 0x818
ret
Function at 0x408520
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0xc98
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0xc94], eax
mov eax, dword [esp + 0xc9c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40856a
xor eax, eax
jmp 0x408744
push 0x7fe
lea eax, [esp + 0x4a6]
xor edx, edx
push ebx
push eax
mov word [esp + 0x4ac], dx
call fcn.00427490
push 0x3ff
lea ecx, [esp + 0xb1]
push ebx
push ecx
mov byte [esp + 0xb8], bl
call fcn.00427490
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
add esp, 0x18
push ebx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov word [esp + 0xa5], ax
mov byte [esp + 0xa7], al
push 0x400
lea eax, [esp + 0xac]
push eax
push ebp
mov byte [esp + 0x94], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 0x67452301
mov dword [esp + 0x38], 0xefcdab89
mov dword [esp + 0x3c], 0x98badcfe
mov dword [esp + 0x40], 0x10325476
call edi
test eax, eax
je 0x40866f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40866f
lea ecx, [esp + 0xa0]
push ecx
lea esi, [esp + 0x1c]
call fcn.004015a0
add esp, 4
push ebx
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0xac]
push eax
push ebp
call edi
test eax, eax
jne 0x408639
lea edi, [esp + 0x80]
lea eax, [esp + 0x18]
call fcn.004016b0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [esp + 0x8f]
movzx edx, byte [esp + 0x8e]
movzx eax, byte [esp + 0x8d]
push ecx
movzx ecx, byte [esp + 0x90]
push edx
movzx edx, byte [esp + 0x93]
push eax
movzx eax, byte [esp + 0x96]
push ecx
movzx ecx, byte [esp + 0x99]
push edx
movzx edx, byte [esp + 0x9c]
push eax
movzx eax, byte [esp + 0x9f]
push ecx
movzx ecx, byte [esp + 0xa2]
push edx
movzx edx, byte [esp + 0xa5]
push eax
movzx eax, byte [esp + 0xa8]
push ecx
movzx ecx, byte [esp + 0xab]
push edx
movzx edx, byte [esp + 0xae]
push eax
movzx eax, byte [esp + 0xb1]
push ecx
movzx ecx, byte [esp + 0xb4]
push edx
push eax
push ecx
lea edx, [esp + 0x4e0]
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x5c]
add esp, 0x48
push eax
lea ecx, [esp + 0x4a4]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0xca4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425c62
add esp, 0xc98
ret
Function at 0x408760
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x90
mov eax, dword [0x44b654]
xor eax, esp
mov dword [esp + 0x8c], eax
xor eax, eax
push esi
push edi
mov byte [esp + 0x74], al
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x9c]
push ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.004015a0
lea edi, [esp + 0x78]
mov eax, esi
call fcn.004016b0
movzx eax, byte [esp + 0x87]
movzx ecx, byte [esp + 0x86]
movzx edx, byte [esp + 0x85]
push eax
movzx eax, byte [esp + 0x88]
push ecx
movzx ecx, byte [esp + 0x8b]
push edx
movzx edx, byte [esp + 0x8e]
push eax
movzx eax, byte [esp + 0x91]
push ecx
movzx ecx, byte [esp + 0x94]
push edx
movzx edx, byte [esp + 0x97]
push eax
movzx eax, byte [esp + 0x9a]
push ecx
movzx ecx, byte [esp + 0x9d]
push edx
movzx edx, byte [esp + 0xa0]
push eax
movzx eax, byte [esp + 0xa3]
push ecx
movzx ecx, byte [esp + 0xa6]
push edx
movzx edx, byte [esp + 0xa9]
push eax
movzx eax, byte [esp + 0xac]
push ecx
push edx
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0xe0]
add esp, 0x4c
pop edi
pop esi
xor ecx, esp
call fcn.00425c62
add esp, 0x90
ret
Function at 0x408db0
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
sub esp, 0x10
push ebx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x408dce
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
push edi
push 0
push SysReAllocStringLen
push 0
push 0
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x408dfb
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebp
mov ebp, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x20000013
mov esi, 4
push edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], esi
call ebp
test eax, eax
je 0x408e60
cmp dword [esp + 0x10], 0xc8
jne 0x408e60
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000005
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
call ebp
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x408e62
xor esi, esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x4092f0
Capabilities:
Create http request

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
jne 0x40930a
pop esi
pop ecx
ret
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [esp + 0xc]
push ecx
push 5
push esi
mov dword [esp + 0x18], 0x1388
call edi
push 4
lea edx, [esp + 0xc]
push edx
push 7
push esi
call edi
push 4
lea eax, [esp + 0xc]
push eax
push 2
push esi
call edi
push 4
lea ecx, [esp + 0xc]
push ecx
push 6
push esi
call edi
push 4
lea edx, [esp + 0xc]
push edx
push 8
push esi
call edi
mov eax, dword [esp + 0x10]
push 0
push 0x84200000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x40937d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4093a0
Capabilities:
Create process on windows
Set file attributes

Disassembly:
sub esp, 0x40
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x38
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00427490
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x441da0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x409427
push 0x493e0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40942e
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x40
ret
mov ecx, dword [esp + 0x40]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x409427
cmp dword [esp + 4], edi
jne 0x409427
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
add esp, 0x40
ret

Function at 0x40f47c
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 0x40f4c3
call fcn.00411ac3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f4c3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f4df
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040eff4
mov esi, eax
test edi, edi
je 0x40f4dd
test ebx, ebx
je 0x40f4dd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4