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

Disassembly:
sub esp, 0x208
mov eax, dword [0x440de4]
xor eax, esp
mov dword [esp + 0x204], eax
push edi
push 0x433652
push 0
call fcn.00418efb
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00419080
push 0x2800
call fcn.00409924
push 0x2800
mov edi, eax
push 0
push edi
call fcn.00419080
add esp, 0x24
lea ecx, [esp + 0x104]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x104]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401076
mov edx, dword [str.HiSuiteDownLoader.log]
mov ecx, dword [0x433640]
mov dword [eax], edx
mov edx, dword [0x433644]
mov dword [eax + 4], ecx
mov ecx, dword [0x433648]
mov dword [eax + 8], edx
mov edx, dword [0x43364c]
mov dword [eax + 0xc], ecx
mov cx, word [0x433650]
mov dword [eax + 0x10], edx
push esi
lea edx, [esp + 0x218]
mov word [eax + 0x14], cx
mov eax, dword [esp + 0x214]
push edx
push eax
push edi
call fcn.0041811f
push 0x7f
lea ecx, [esp + 0x99]
push 0
push ecx
mov byte [esp + 0xa0], 0
call fcn.00419080
push 0x7f
lea edx, [esp + 0x25]
push 0
push edx
mov byte [esp + 0x2c], 0x20
call fcn.00419080
call fcn.0041802a
lea eax, [esp + 0xac]
push eax
call fcn.004178e1
lea ecx, [esp + 0x31]
push ecx
call fcn.0041781f
lea edx, [esp + 0x134]
push 0x433638
push edx
call fcn.0041776b
mov esi, eax
add esp, 0x34
test esi, esi
je 0x401170
lea eax, [esp + 0x88]
push eax
push esi
call fcn.00417558
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00417558
push 0x433634
push esi
call fcn.00417558
push edi
push esi
call fcn.00417558
push 0x433630
push esi
call fcn.00417558
push esi
call fcn.004174dc
add esp, 0x2c
test edi, edi
pop esi
je 0x40117e
push edi
call fcn.00409929
add esp, 4
mov ecx, dword [esp + 0x208]
pop edi
xor ecx, esp
call fcn.0041906b
add esp, 0x208
ret

Function at 0x401200
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40121b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
pop esi
ret

Function at 0x4012e0
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 0x4012f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401334
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401330
lea ebx, [ebx]
cmp esi, eax
jae 0x401334
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401320
cmp esi, eax
jb 0x40133a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402470
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42fd40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x440de4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0040a5ca
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4024b0
push 0x80004005
call fcn.004012c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x2800
mov dword [esp + 0x24], 0
call fcn.00409924
push 0x2800
mov esi, eax
push 0
push esi
call fcn.00419080
mov ecx, dword [esp + 0x48]
add esp, 0x10
test ecx, ecx
je 0x4025e8
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4024f5
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004019f0
mov ebx, dword [esp + 0x28]
test ebx, ebx
mov edi, dword [esp + 0x14]
je 0x4025e8
cmp dword [edi - 0xc], 0
je 0x4025e8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4025e8
mov ecx, dword [esp + 0x2c]
push edi
push 0x2800
push esi
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea ecx, [esp + 0x14]
call fcn.004023b0
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x20], 1
jne 0x40259d
cmp dword [eax - 0xc], 0
jne 0x4025a3
test esi, esi
je 0x402576
push esi
call fcn.00409929
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004016b0
lea ecx, [esp + 0x14]
call fcn.004016b0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
cmp dword [eax - 0xc], 0
je 0x4025b1
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
call fcn.00401db0
test esi, esi
je 0x4025be
push esi
call fcn.00409929
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004016b0
lea ecx, [esp + 0x14]
call fcn.004016b0
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
test esi, esi
je 0x4025f5
push esi
call fcn.00409929
add esp, 4
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x20], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x403410
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push str.CDownLoadManager::LanchInstallPakage
push str._s_enter
mov esi, ecx
call section..text
mov eax, dword [esi + 0x30]
add esp, 8
cmp dword [eax - 0xc], 0
jne 0x40344c
push str.CDownLoadManager::LanchInstallPakage
push str._s_leave
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x3c
ret 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403431
mov eax, dword [esi + 0x30]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x403431
cmp dword [esp + 0x44], 0
je 0x4034c9
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CDownLoadManager::LanchInstallPakage
push str._s_leave
call section..text
add esp, 8
pop esi
add esp, 0x3c
ret 4
Function at 0x404c10
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4301c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x440de4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.CDownLoadManager::ClearCache
push str._s_enter
call section..text
mov esi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
add esp, 8
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00409924
add esp, 4
lea edx, [ebp - 0x14]
push edx
mov edi, eax
push edi
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x404d5e
mov eax, dword [edi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.004023b0
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp ecx, ebx
setne al
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x404cab
push 0x80004005
call fcn.004012c0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ecx
push eax
call fcn.0041a6d4
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
jne 0x404cea
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
je 0x404d05
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], ebx
jl 0x404d05
push eax
push ecx
call fcn.0041a46b
add esp, 8
cmp eax, ebx
je 0x404d05
sub eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x404d05
mov ecx, dword [ebp - 0x18]
push ecx
push str.DeleteUrlCacheEntry:__s_
call section..text
mov edx, dword [ebp - 0x18]
add esp, 8
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push edi
call fcn.00409929
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00409924
mov edi, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
push edi
push esi
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x404c83
push str.CDownLoadManager::ClearCache
push str._s_leave_ok_
call section..text
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
push edi
je 0x406a47
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi + 4], ebx
je 0x406a65
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x406b53
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x406b53
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
xor ebp, ebp
cmp edi, ebp
je 0x406b53
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi + 8], eax
je 0x406b53
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x406b46
push ebx
push edi
push eax
call fcn.0041a880
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x406b3c
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.004068e0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x406b3c
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x406b2a
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x406b39
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
Function at 0x406b60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4303d3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x440de4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00409e58
xor edi, edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x30], edi
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x38]
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
mov byte [esp + 0x30], 1
sete al
cmp eax, edi
mov dword [esi + 0x30], eax
je 0x406cac
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0040a1cf
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
lea edi, [esi + 0x20]
je 0x406c12
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x406c2d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [edi], ecx
mov ecx, dword [esp + 0x48]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0040a3f1
test ebp, ebp
je 0x406c53
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0040a476
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00409f6c
cmp dword [esp + 0x4c], 0
je 0x406cbe
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov ebp, dword [esi + 0x1c]
sub eax, dword [edi + 4]
mov edx, dword [esi + 0x24]
sub ecx, ebx
test ebp, ebp
je 0x406c94
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x406cbe
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18
Function at 0x408830
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x430919
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x440de4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CHiSuiteDownLoaderDlg.0
push str.CHiSuiteDownLoaderDlg::CHiSuiteDownLoaderDlg
push str._s_enter
mov dword [esp + 0x1c], 0x16
call section..text
mov eax, dword [esi + 0x7cc]
add esp, 8
test eax, eax
je 0x4088a2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x7cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x7cc], 0
mov ecx, dword [esi + 0x7d4]
test ecx, ecx
je 0x4088be
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x7d4], 0
push str.CHiSuiteDownLoaderDlg::CHiSuiteDownLoaderDlg
push str._s_leave
call section..text
lea ecx, [esi + 0x7c0]
add esp, 8
mov byte [esp + 0x14], 0x15
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x7b8]
mov byte [esp + 0x14], 0x14
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x7b0]
mov byte [esp + 0x14], 0x13
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x7a8]
mov byte [esp + 0x14], 0x12
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x7a0]
mov byte [esp + 0x14], 0x11
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x798]
mov byte [esp + 0x14], 0x10
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x790]
mov byte [esp + 0x14], 0xf
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x788]
mov byte [esp + 0x14], 0xe
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x780]
mov byte [esp + 0x14], 0xd
mov dword [ecx], vtable.CGdiObject.0
call fcn.0040a444
lea ecx, [esi + 0x72c]
mov byte [esp + 0x14], 0xc
call fcn.004103a6
lea ecx, [esi + 0x6d8]
mov byte [esp + 0x14], 0xb
call fcn.004103a6
lea ecx, [esi + 0x684]
mov byte [esp + 0x14], 0xa
call fcn.004103a6
lea ecx, [esi + 0x630]
mov byte [esp + 0x14], 9
call fcn.004103a6
lea ecx, [esi + 0x5dc]
mov byte [esp + 0x14], 8
call fcn.004103a6
lea ecx, [esi + 0x588]
mov byte [esp + 0x14], 7
call fcn.004103a6
lea ecx, [esi + 0x534]
mov byte [esp + 0x14], 6
call fcn.004103a6
lea ecx, [esi + 0x4e0]
mov byte [esp + 0x14], 5
call fcn.004103a6
lea ecx, [esi + 0x48c]
mov byte [esp + 0x14], 4
call fcn.00413bd8
lea ecx, [esi + 0x380]
mov byte [esp + 0x14], 3
call fcn.00407f50
lea ecx, [esi + 0x27c]
mov byte [esp + 0x14], 2
call fcn.00407f50
lea ecx, [esi + 0x178]
mov byte [esp + 0x14], 1
call fcn.00407f50
lea ecx, [esi + 0x74]
mov byte [esp + 0x14], 0
call fcn.00407f50
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.004128cf
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x41031f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x410362
call fcn.00413af7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410362
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41037d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040fed6
test ebx, ebx
mov esi, eax
je 0x41037b
test edi, edi
je 0x41037b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4142d4
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 0x414302
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414320
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041423e
jmp 0x414320
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414320
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041423e
test edi, edi
mov eax, edi
jne 0x41430a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x443e84]
test ecx, ecx
je 0x4143e3
jmp 0x4142d3
ret 8

Function at 0x41906b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440de4]
jne 0x419075
repz ret
jmp fcn.00422920
Function at 0x42bf18
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00421313
xor ebx, ebx
cmp dword [0x444bf4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42bfed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42bf58
xor eax, eax
jmp 0x42c0b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438a78
push edi
call esi
cmp eax, ebx
je 0x42bf51
push eax
call fcn.004212b0
mov dword [esp], 0x438a68
push edi
mov dword [0x444bf4], eax
call esi
push eax
call fcn.004212b0
mov dword [esp], 0x438a54
push edi
mov dword [0x444bf8], eax
call esi
push eax
call fcn.004212b0
mov dword [0x444bfc], eax
lea eax, [ebp - 8]
push eax
call fcn.0041dbb9
test eax, eax
pop ecx
pop ecx
je 0x42bfbb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a488
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42bfed
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004212b0
cmp eax, ebx
pop ecx
mov dword [0x444c04], eax
je 0x42bfed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004212b0
pop ecx
mov dword [0x444c00], eax
mov eax, dword [0x444c00]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42c066
cmp dword [0x444c04], esi
je 0x42c066
push eax
call fcn.0042131c
pop ecx
call eax
cmp eax, ebx
je 0x42c033
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x444c04]
call fcn.0042131c
pop ecx
call eax
test eax, eax
je 0x42c033
test byte [ebp - 0x18], 1
jne 0x42c066
lea eax, [ebp - 0xc]
push eax
call fcn.0041dbf0
test eax, eax
pop ecx
je 0x42c04e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041a488
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42c05d
or dword [ebp + 0x10], 0x200000
jmp 0x42c097
or dword [ebp + 0x10], 0x40000
jmp 0x42c097
mov eax, dword [0x444bf8]
cmp eax, esi
je 0x42c097
push eax
call fcn.0042131c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42c097
mov eax, dword [0x444bfc]
cmp eax, esi
je 0x42c097
push dword [ebp - 4]
push eax
call fcn.0042131c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x444bf4]
call fcn.0042131c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f835
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x440de4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042f7ca
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00419080
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42f884
cmp dword [ebp - 0x1c], 5
jb 0x42f89c
jmp 0x42f898
cmp dword [ebp - 0x10], 1
jne 0x42f89c
cmp dword [ebp - 0x1c], 4
ja 0x42f898
jne 0x42f89c
cmp dword [ebp - 0x18], 0
jbe 0x42f89c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x438b1c
call fcn.0042f69e
test eax, eax
jge 0x42f8bd
mov byte [0x442320], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041906b
add ebp, 0x78
leave
ret