joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec40
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x390], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x18a]
push edi
push eax
mov ebx, ecx
mov word [ebp + 0x188], di
call fcn.0043d050
push esi
lea eax, [ebp - 0x7e]
push edi
push eax
mov word [ebp - 0x80], di
call fcn.0043d050
add esp, 0x18
push edi
push 0x2b
lea eax, [ebp + 0x188]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x188]
push str._shiqiang_
push eax
call fcn.0043d0ca
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
jne 0x40ecd3
push edi
lea eax, [ebp + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x188]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0043d0f4
lea eax, [ebp - 0x80]
push str.wnsoft.ini
push eax
call fcn.0043d0ca
add esp, 0x10
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
je 0x40ed56
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x80]
push eax
push dword [ebx]
mov edi, str.Globals
push str.OnlyIdentifier1
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x208
push eax
push str.OnlyIdentifier2
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x410
push eax
push str.OnlyIdentifier3
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x618
push eax
push str.OnlyIdentifier4
push edi
call esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ca22
add ebp, 0x394
leave
ret

Function at 0x40ed6e
Capabilities:
Set registry value

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov edi, 0xf003f
push edi
xor ebp, ebp
push ebp
push str.software
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ee2e
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push ebp
push ebp
push ebp
push str.ShiQiang
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ee2e
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov ebx, 0x104
push ebx
push dword [esi]
push 1
push ebp
push str.OnlyIdentifier1
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x208
push eax
push 1
push ebp
push str.OnlyIdentifier2
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x410
push eax
push 1
push ebp
push str.OnlyIdentifier3
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x618
push eax
push 1
push ebp
push str.OnlyIdentifier4
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x14]
call esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x4105ff
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x410549
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x410636
cmp eax, 0xffffffff
je 0x410636
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x415d0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 0x10], ecx
jle 0x415da6
lea ecx, [eax + 0x80]
add eax, 0x100
push ebx
dec edi
shr edi, 3
push 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
inc edi
pop ebx
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
mov dword [ebp - 0x18], ebx
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x18]
jne 0x415d57
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0043e9d0
mov ecx, dword [ebp - 0x1c]
push esi
mov eax, esi
call fcn.0041538e
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
xor byte [esi + eax], cl
inc eax
cmp eax, ebx
jl 0x415d7f
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call fcn.0043e9d0
add dword [ebp - 0x10], ebx
add esp, 0xc
add esi, ebx
dec edi
jne 0x415d4d
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043ca22
leave
ret

Function at 0x416b79
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
and dword [ebp - 4], 0
cmp word [eax + 6], 0
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
jbe 0x416c1c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
mov eax, dword [esi]
test eax, eax
jne 0x416bde
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x416c06
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call fcn.0043d050
jmp 0x416c03
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call fcn.0043e9d0
mov eax, dword [ebp - 0xc]
mov dword [esi - 8], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add esi, 0x28
cmp dword [ebp - 4], eax
jl 0x416bae
pop edi
pop ebx
pop esi
leave
ret
Function at 0x416f5f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x416f72
xor eax, eax
leave
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x416f87
xor eax, eax
jmp 0x417078
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov ebx, 0x2000
push ebx
push dword [esi + 0x50]
push dword [esi + 0x34]
call edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x416fba
push 4
push ebx
push dword [esi + 0x50]
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x41706d
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 4]
push 4
xor ecx, ecx
push 0x1000
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], ecx
push dword [esi + 0x50]
push eax
call edi
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call edi
mov ecx, dword [esi + 0x54]
mov edi, dword [ebp + 8]
add ecx, dword [edi + 0x3c]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
call fcn.0043e9d0
mov eax, dword [edi + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push ebx
push esi
mov dword [ebx], eax
push edi
mov dword [eax + 0x34], ecx
call fcn.00416b79
mov edi, dword [ebp - 4]
mov eax, edi
add esp, 0x18
sub eax, dword [esi + 0x34]
je 0x41703c
push eax
mov eax, ebx
call fcn.00416cdd
pop ecx
call fcn.00416d56
test eax, eax
je 0x417066
push ebx
call fcn.00416c1f
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
test eax, eax
pop ecx
je 0x417074
add eax, edi
je 0x417066
push 0
xor esi, esi
inc esi
push esi
push edi
call eax
test eax, eax
jne 0x417071
push ebx
call fcn.00416ee6
pop ecx
xor eax, eax
jmp 0x417076
mov dword [ebx + 0x10], esi
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41745c
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x25c
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x25c], eax
push 0xc
mov eax, 0x529e42
call fcn.0043ca31
mov esi, dword [ebp + 0x268]
mov eax, dword [ebp + 0x26c]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
jne 0x4174bf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x25c]
xor ecx, ebp
call fcn.0043ca22
add ebp, 0x260
leave
ret 8
call fcn.0041707b
push 0x206
mov edi, eax
lea eax, [ebp + 0x56]
push ebx
push eax
mov word [ebp + 0x54], bx
call fcn.0043d050
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push esi
lea eax, [ebp + 0x38]
push eax
call fcn.004171f7
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 4], ebx
jae 0x4174f8
lea eax, [ebp + 0x3c]
push edi
push 0x104
lea ecx, [ebp + 0x54]
push ecx
mov esi, 0x5741b8
push esi
push eax
mov edi, 0x530418
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x54]
push esi
push eax
call fcn.0043f326
test eax, eax
pop ecx
pop ecx
jne 0x41759e
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.004016b0
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
mov byte [ebp - 4], 1
jae 0x417545
lea eax, [ebp + 0x3c]
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
push edi
call fcn.004170dc
test al, al
jne 0x417578
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401330
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.00401330
mov al, byte [ebp - 0xd]
jmp 0x41749a
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x417584
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.0043d0f4
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00401330
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp]
push eax
call fcn.00417333
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
mov byte [ebp - 4], 2
call fcn.004018a0
push ebx
push 1
lea ecx, [ebp]
call fcn.00401330
mov byte [ebp - 0xd], 1
jmp 0x417565

Function at 0x4177a2
Capabilities:
Create thread

Disassembly:
add ecx, 0xe0
jmp 0x4177a2
push esi
mov esi, ecx
lea eax, [esi + 0xd4]
push eax
xor eax, eax
push eax
push esi
push 0x417796
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xd0], eax
pop esi
ret
Function at 0x417d9b
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push 0x20c
mov eax, 0x529fe4
call fcn.0043ca9a
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp dword [ebp + 0x24], 8
mov dword [ebp - 4], edi
jae 0x417dbe
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417ddc
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x417dd5
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.0043d050
push 0x98967f
push 0xf4240
call fcn.0040b745
add esp, 0x14
cmp dword [esi + 0x18], 8
jb 0x417e12
mov esi, dword [esi + 4]
jmp 0x417e15
add esi, 4
push eax
push esi
lea eax, [ebp - 0x218]
push str._s__d
push eax
call fcn.0043d110
mov eax, dword [ebp + 0x10]
add esp, 0x10
cmp dword [ebp + 0x24], 8
jae 0x417e37
lea eax, [ebp + 0x10]
push edi
push edi
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x417e71
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x417e57
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417e71
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00401330
mov al, 1
jmp 0x417e7e
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.00401330
xor al, al
call fcn.0043cb1d
ret 0x20
Function at 0x418125
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0xa4
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push 0x28
mov eax, 0x52a0ba
call fcn.0043ca31
mov eax, dword [ebp + 0xb0]
mov esi, dword [ebp + 0xb4]
xor ebx, ebx
push 0x5741b8
lea ecx, [ebp + 0x88]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
call fcn.00401130
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040d672
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x418185
mov eax, dword [edi]
jmp 0x418187
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418274
cmp dword [esi + 0x18], 8
jb 0x41819e
mov edi, dword [edi]
push ebx
push 0x80
push 4
push ebx
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x4181cf
mov ecx, dword [ebp - 0x10]
push 0x5741b8
call fcn.00401130
jmp 0x418283
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0041c5f7
mov esi, eax
cmp esi, ebx
pop ecx
je 0x4181bd
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.0043d050
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
lea ecx, [ebp]
call fcn.0040deb1
push esi
call fcn.0041c5f2
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.0040dfa4
push eax
lea eax, [ebp + 0x6c]
push eax
mov byte [ebp - 4], 1
call fcn.0040c537
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004012b0
cmp dword [ebp + 0x80], ebx
jbe 0x418266
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x88]
call fcn.004018a0
push ebx
push 1
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], bl
call fcn.00401330
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x88]
push eax
call fcn.00401e50
push ebx
push 1
lea ecx, [ebp + 0x88]
call fcn.00401330
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
call fcn.0043ca22
add ebp, 0xa8
leave
ret 8
Function at 0x4196c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52a2f3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x581de4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x58cc78
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x58cc78
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x5741ab
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00418a80
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x41cd48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41cd85
push 0x5314d8
push 4
push eax
call fcn.004451db
push eax
call fcn.0041c906
add esp, 0x10
jmp 0x41cd97
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ce02
push edi
call fcn.00444e7b
mov edi, dword [eax]
call fcn.00444e7b
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043d1c2
add esp, 0x18
mov ebx, eax
call fcn.00444e7b
cmp dword [eax], 0
je 0x41cde2
call fcn.00444e7b
push dword [eax]
call fcn.0041cafa
pop ecx
jmp 0x41cde9
call fcn.00444e7b
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41ce02
cmp ebx, esi
jae 0x41ce02
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41ce04
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ca22
leave
ret
Function at 0x41ffd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x42001e
call fcn.0041f956
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42001e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x420061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42004a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42004a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42005e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x429099
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 0x4290dc
call fcn.0041f956
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4290dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4290f7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00428c53
test ebx, ebx
mov esi, eax
je 0x4290f5
test edi, edi
je 0x4290f5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42b7c4
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 0x42b7f2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42b810
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b72e
jmp 0x42b810
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42b810
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b72e
test edi, edi
mov eax, edi
jne 0x42b7fa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x58e8d0]
test ecx, ecx
je 0x42b8d3
jmp 0x42b7c3
ret 8

Function at 0x43ca22
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x581de4]
jne 0x43ca2c
repz ret
jmp fcn.00447c2c
Function at 0x444599
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4445d6
cmp dword [ebp + 0x14], edi
je 0x4445d6
cmp ecx, edi
jne 0x4445dd
call fcn.00444e7b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043cc41
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4445f1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x444612
cmp ebx, 0xffffffff
je 0x444601
push ebx
push edi
push ecx
call fcn.0043d050
add esp, 0xc
cmp esi, edi
je 0x4445be
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4445be
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44462e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x444635
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x444726
test word [esi + 0xc], 0x10c
je 0x444689
mov eax, dword [esi + 4]
test eax, eax
je 0x444689
jl 0x444787
cmp ebx, eax
mov edi, ebx
jb 0x44465a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44472e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043c5e0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44471e
cmp ebx, dword [ebp - 0xc]
jb 0x4446f6
cmp dword [ebp - 0xc], 0
je 0x4446b3
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4446a8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4446af
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4446be
mov eax, closesocket
cmp ebx, eax
ja 0x4446be
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44475a
push eax
push dword [ebp - 8]
push esi
call fcn.0044e3bd
pop ecx
push eax
call fcn.004543d2
add esp, 0xc
test eax, eax
je 0x444799
cmp eax, 0xffffffff
je 0x444787
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44471e
push esi
call fcn.0045244c
cmp eax, 0xffffffff
pop ecx
je 0x44478b
cmp dword [ebp - 4], 0
je 0x44475a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44463d
mov eax, dword [ebp + 0x14]
jmp 0x4445d8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x444745
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043d050
add esp, 0xc
call fcn.00444e7b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4445ce
cmp dword [ebp + 0xc], 0xffffffff
je 0x444770
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043d050
add esp, 0xc
call fcn.00444e7b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4445ce
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4445d8
or dword [esi + 0xc], 0x10
jmp 0x44478b
Function at 0x445bd7
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 + 0x581fc0]
je 0x445bf2
inc edi
cmp edi, 0x17
jb 0x445be3
cmp edi, 0x17
jae 0x445d72
push ebp
push 3
call fcn.00454ef7
cmp eax, 1
pop ecx
je 0x445d3e
push 3
call fcn.00454ef7
test eax, eax
pop ecx
jne 0x445c26
cmp dword [0x581dbc], 1
je 0x445d3e
cmp ebx, 0xfc
je 0x445d71
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x58ec20
push ebp
call fcn.00447d38
add esp, 0xc
test eax, eax
je 0x445c5c
push esi
push esi
push esi
push esi
push esi
call fcn.0043cb45
add esp, 0x14
push 0x104
mov esi, 0x58ec39
push esi
push 0
mov byte [0x58ed3d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x445ca0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00447d38
add esp, 0xc
test eax, eax
je 0x445ca0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043cb45
add esp, 0x14
push esi
call fcn.0043cc80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x445ce5
push esi
call fcn.0043cc80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x58ef34
push 0x53522c
sub ecx, eax
push ecx
push eax
call fcn.00450c66
add esp, 0x14
test eax, eax
je 0x445ce5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043cb45
add esp, 0x14
jmp 0x445ce7
xor esi, esi
push 0x535228
push ebx
push ebp
call fcn.00450bf5
add esp, 0xc
test eax, eax
je 0x445d07
push esi
push esi
push esi
push esi
push esi
call fcn.0043cb45
add esp, 0x14
push dword [edi*8 + 0x581fc4]
push ebx
push ebp
call fcn.00450bf5
add esp, 0xc
test eax, eax
je 0x445d29
push esi
push esi
push esi
push esi
push esi
call fcn.0043cb45
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00454d3a
add esp, 0xc
jmp 0x445d71
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x445d71
cmp ebp, 0xffffffff
je 0x445d71
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x581fc4]
push dword [esi]
call fcn.0043cc80
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