joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x6f77027e
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x57bd4832
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1837058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18371a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x183707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x183706a
add dl, dl
jne 0x1837089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18370dc
xor eax, eax
add dl, dl
jne 0x1837096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x183717d
add dl, dl
jne 0x18370a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18370b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18370bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18370c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x18370d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1837075
mov eax, 1
add dl, dl
jne 0x18370ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18370f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18370e1
sub eax, ebx
mov ebx, 1
jne 0x1837128
mov ecx, 1
add dl, dl
jne 0x183710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1837119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1837105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1837075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x183713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x183714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1837136
cmp eax, 0x7d00
jae 0x183716d
cmp eax, 0x500
jb 0x1837168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1837075
cmp eax, 0x7f
ja 0x1837170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1837075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x183719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1837075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x43c]
push 0x228
push 0
push eax
mov dword [ebp - 0x450], edi
call sub.VCRUNTIME140.dll_memset
push 0xfc
lea eax, [ebp - 0x110]
mov dword [ebp - 0x440], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
xor ebx, ebx
mov dword [ebp - 0x114], esi
lea eax, [ebp - 0x214]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x444], ebx
add esp, 0x24
mov dword [ebp - 0x448], 3
movups xmmword [ebp - 0x14], xmm0
nop
lea eax, [ebp - 0x440]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4011ef
nop word [eax + eax]
mov edi, dword [ebp - 0x438]
mov dword [ebp - 0x44c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x4011d3
mov edx, dword [ebp - 0x428]
xor al, al
xor ecx, ecx
lea edi, [ecx + 1]
nop word [eax + eax]
mov esi, dword [ebp + ecx*4 - 0x114]
cmp esi, edx
jne 0x4010f3
test esi, esi
movzx eax, al
cmovne eax, edi
mov esi, dword [ebp + ecx*4 - 0x110]
cmp esi, edx
jne 0x401106
test esi, esi
movzx eax, al
cmovne eax, edi
mov esi, dword [ebp + ecx*4 - 0x10c]
cmp esi, edx
jne 0x401119
test esi, esi
movzx eax, al
cmovne eax, edi
mov esi, dword [ebp + ecx*4 - 0x108]
cmp esi, edx
jne 0x40112c
test esi, esi
movzx eax, al
cmovne eax, edi
add ecx, 4
cmp ecx, 0x40
jl 0x4010e0
mov edi, dword [ebp - 0x44c]
xor cl, cl
test al, al
je 0x4011d3
xor edx, edx
mov esi, 1
nop dword [eax + eax]
cmp dword [ebp + edx*4 - 0x214], edi
movzx eax, cl
cmove eax, esi
cmp dword [ebp + edx*4 - 0x210], edi
movzx eax, al
cmove eax, esi
cmp dword [ebp + edx*4 - 0x20c], edi
movzx eax, al
cmove eax, esi
cmp dword [ebp + edx*4 - 0x208], edi
movzx ecx, al
cmove ecx, esi
add edx, 4
cmp edx, 0x40
jl 0x401150
test cl, cl
jne 0x4011d3
inc ebx
cmp ebx, 0x40
jge 0x40119d
mov dword [ebp + ebx*4 - 0x114], edi
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x444]
inc esi
mov dword [ebp - 0x444], esi
cmp esi, 0x40
jge 0x4011d3
mov dword [ebp + esi*4 - 0x214], edi
mov edi, dword [ebp - 0x450]
lea eax, [ebp - 0x440]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4010b0
sub dword [ebp - 0x448], 1
jne 0x401090
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040165a
mov esp, ebp
pop ebp
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7ae74e28
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0xc2275f4
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
mov ecx, 0x21241f6b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x5db6c96
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x632038ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x63245d9b
call fcn.632128be
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.6320618e
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x632038f8
call fcn.6320618e
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x63203909
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x63203916
or eax, 0xffffffff
jmp 0x63203a72
mov ecx, esi
call fcn.632033d2
mov dword [ebp - 0x14], eax
call fcn.6320876b
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x63203994
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x63203994
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x63203994
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.63203283
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x63203994
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x63203994
mov ecx, ebx
call fcn.6320bc44
test eax, eax
je 0x63203994
push 0
mov ecx, ebx
call fcn.6320bc5f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.6320a0da
push dword [ebp - 0x14]
call fcn.632086c3
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.632036b5
xor edi, edi
cmp eax, edi
je 0x632039f1
test byte [esi + 0x3c], 0x10
je 0x632039db
push 4
pop edi
mov ecx, esi
call fcn.6320bbef
test ax, 0x100
je 0x632039d1
push 5
pop edi
push edi
mov ecx, esi
call fcn.63208259
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x632039f1
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.6320bca1
or dword [ebp - 4], 0xffffffff
jmp 0x63203a1c
cmp dword [ebp - 0x28], edi
je 0x63203a2a
push 1
mov ecx, ebx
call fcn.6320bc5f
cmp dword [ebp - 0x2c], edi
je 0x63203a3a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x63203a53
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x63203a53
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.6320340c
cmp dword [esi + 0x58], edi
je 0x63203a6f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.6321292a
ret
Function at 0x63203adc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x63203afc
cmp dword [edi + 0x54], 0
jne 0x63203afc
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.6320618e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.63203aa3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x63204071
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x63256ab4]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x63204109
push 0x63248bfc
push 4
push eax
call fcn.63214446
push eax
call fcn.63201320
add esp, 0x10
push ebx
push edi
call fcn.632144e6
mov edi, dword [eax]
call fcn.632144e6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.6320fb54
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.632144e6
cmp dword [eax], ebx
je 0x63204120
call fcn.632144e6
push dword [eax]
call fcn.63203fff
pop ecx
jmp 0x63204127
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x632040bd
jmp 0x63204199
call fcn.632144e6
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x63204195
cmp dword [ebp - 0x3c], esi
jae 0x63204195
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.6320feb0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x63204187
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x63204187
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x63204187
push ebx
push ebx
push esi
jmp 0x6320418d
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x63204197
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.6320fb73
add ebp, 0xe0
leave
ret
Function at 0x6320b1f7
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 0x6320b23a
call fcn.6320618e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x6320b23a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x6320b255
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.6320adae
test ebx, ebx
mov esi, eax
je 0x6320b253
test edi, edi
je 0x6320b253
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x6320bd1e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6324677e
call fcn.6321288b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x6320bd43
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x6320bd8f
call fcn.6320c09c
push eax
lea ecx, [ebp - 0x10]
call fcn.63201e80
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.6320bb5c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.63201b20
mov eax, esi
call fcn.6321292a
ret 8

Function at 0x6320d09c
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 0x6320d0ca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6320d0e8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.6320d006
jmp 0x6320d0e8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6320d0e8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.6320d006
test edi, edi
mov eax, edi
jne 0x6320d0d2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x6325c180]
test ecx, ecx
je 0x6320d1ab
jmp 0x6320d09b
ret 8

Function at 0x6320fb73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x63256ab4]
jne 0x6320fb7d
repz ret
jmp fcn.63215ca8
Function at 0x6321768e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x63256e18]
je 0x632176a9
inc edi
cmp edi, 0x17
jb 0x6321769a
cmp edi, 0x17
jae 0x63217829
push ebp
push 3
call fcn.63220607
cmp eax, 1
pop ecx
je 0x632177f5
push 3
call fcn.63220607
test eax, eax
pop ecx
jne 0x632176dd
cmp dword [0x63256ab0], 1
je 0x632177f5
cmp ebx, 0xfc
je 0x63217828
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6325c6e8
push ebp
call fcn.63214446
add esp, 0xc
test eax, eax
je 0x63217713
push esi
push esi
push esi
push esi
push esi
call fcn.63215b88
add esp, 0x14
push 0x104
mov esi, 0x6325c701
push esi
push 0
mov byte [0x6325c805], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x63217757
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.63214446
add esp, 0xc
test eax, eax
je 0x63217757
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.63215b88
add esp, 0x14
push esi
call fcn.632104e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6321779c
push esi
call fcn.632104e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6325c9fc
push 0x6324a57c
sub ecx, eax
push ecx
push eax
call fcn.63214816
add esp, 0x14
test eax, eax
je 0x6321779c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.63215b88
add esp, 0x14
jmp 0x6321779e
xor esi, esi
push 0x6324a578
push ebx
push ebp
call fcn.632145b1
add esp, 0xc
test eax, eax
je 0x632177be
push esi
push esi
push esi
push esi
push esi
call fcn.63215b88
add esp, 0x14
push dword [edi*8 + 0x63256e1c]
push ebx
push ebp
call fcn.632145b1
add esp, 0xc
test eax, eax
je 0x632177e0
push esi
push esi
push esi
push esi
push esi
call fcn.63215b88
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.6322044a
add esp, 0xc
jmp 0x63217828
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x63217828
cmp ebp, 0xffffffff
je 0x63217828
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x63256e1c]
push dword [esi]
call fcn.632104e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x6322044a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.63215e86
xor ebx, ebx
cmp dword [0x6325cc84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x63220520
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x63220600
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6324aef0
push edi
call esi
cmp eax, ebx
je 0x63220600
push eax
call fcn.63215e18
mov dword [esp], 0x6324aee0
push edi
mov dword [0x6325cc84], eax
call esi
push eax
call fcn.63215e18
mov dword [esp], 0x6324aecc
push edi
mov dword [0x6325cc88], eax
call esi
push eax
call fcn.63215e18
mov dword [0x6325cc8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.632141d3
test eax, eax
pop ecx
pop ecx
je 0x632204ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.63215b88
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x63220520
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.63215e18
cmp eax, ebx
pop ecx
mov dword [0x6325cc94], eax
je 0x63220520
push 0x6324ae98
push edi
call esi
push eax
call fcn.63215e18
pop ecx
mov dword [0x6325cc90], eax
mov eax, dword [0x6325cc90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x632205a5
cmp dword [0x6325cc94], ecx
je 0x632205a5
push eax
call fcn.63215e8f
push dword [0x6325cc94]
mov esi, eax
call fcn.63215e8f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x632205a5
cmp edi, ebx
je 0x632205a5
call esi
cmp eax, ebx
je 0x63220572
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x63220572
test byte [ebp - 0x18], 1
jne 0x632205a5
lea eax, [ebp - 0x10]
push eax
call fcn.6321420a
test eax, eax
pop ecx
je 0x6322058d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.63215b88
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x6322059c
or dword [ebp + 0x10], 0x200000
jmp 0x632205e0
or dword [ebp + 0x10], 0x40000
jmp 0x632205e0
mov eax, dword [0x6325cc88]
cmp eax, dword [ebp - 8]
je 0x632205e0
push eax
call fcn.63215e8f
cmp eax, ebx
pop ecx
je 0x632205e0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x632205e0
mov eax, dword [0x6325cc8c]
cmp eax, dword [ebp - 8]
je 0x632205e0
push eax
call fcn.63215e8f
cmp eax, ebx
pop ecx
je 0x632205e0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6325cc84]
call fcn.63215e8f
cmp eax, ebx
pop ecx
je 0x63220600
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x63220602
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret