joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ad0
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a0148
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.StartInstall
mov ecx, 0x4c5908
call fcn.00472890
mov eax, dword [0x4c57e8]
xor ebx, ebx
add esp, 4
mov dword [0x4c57cc], esi
cmp dword [eax - 0xc], ebx
jne 0x421b51
cmp byte [0x4c5838], bl
je 0x421b33
push str.no_install_path
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
mov dword [0x4c2298], 0x3f2
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
cmp esi, ebx
je 0x421c9b
add eax, 0xfffffff0
call fcn.00404f50
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], ebx
cmp dword [eax - 0xc], ebx
jg 0x421bb3
add eax, 0xfffffff0
mov dword [0x4c2298], 0x3f2
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
mov eax, 3
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
call fcn.00412190
lea edi, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.00404fc0
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0xc]
call fcn.00425550
push ebx
push 0x100000
push edx
push eax
call fcn.00497700
cmp eax, 0x3c
jge 0x421c8a
mov edx, 1
lea ecx, [edx + 0x63]
mov dword [0x4c2298], 0x3f3
call fcn.0041a0d0
push 0x4a5026
lea ecx, [esp + 0x18]
call fcn.004018a0
push ebx
push ebx
push 1
push 0x4c57c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call fcn.00422020
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00401d30
push 0x4a7238
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
lea ecx, [esp + 0xc]
call fcn.00406e10
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00406e10
call fcn.0046b6e0
mov edx, dword [0x4c5868]
mov ecx, dword [0x4c57e8]
push eax
call fcn.0046ace0
cmp dword [0x4c57cc], ebx
je 0x421cc6
mov ecx, 0x4c57c0
call fcn.00423ea0
jmp 0x421ce3
push ebx
push ebx
push 0x4c57c0
push 0x422fd0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c57e4], eax
cmp eax, ebx
je 0x421ce8
mov ebx, 1
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
Function at 0x422b50
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x49f14b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
lea edx, [eax + 2]
jmp 0x422bc0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422bc0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.0040fdc0
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x422c05
push ebx
mov ecx, 0x4a76bc
call fcn.00406d60
cmp dword [esp + 0x28], 8
jb 0x422c7b
mov edx, dword [esp + 0x14]
push edx
jmp 0x422c73
lea esi, [eax - 1]
cmp eax, esi
ja 0x422c11
call fcn.0047c733
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x422c24
lea eax, [esp + 0x14]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x422c44
cmp ax, 0x2f
je 0x422c44
push 1
push 0x4a76c0
lea eax, [esp + 0x18]
call fcn.00412400
push 0x1b
push 0x4a76c4
lea eax, [esp + 0x18]
call fcn.00412400
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x422c62
lea ecx, [esp + 0x14]
push ebx
call fcn.00406d60
cmp dword [esp + 0x28], edi
jb 0x422c7b
mov eax, dword [esp + 0x14]
push eax
call fcn.0047ceda
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0047cee5
add esp, 0x238
ret
Function at 0x422cb0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49f0a6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor esi, esi
push 0x206
lea ecx, [esp + 0x2a]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x24], esi
mov word [esp + 0x30], ax
call fcn.004820f0
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4c45ac
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x24]
push ecx
push 0x104
mov dword [esp + 0x240], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
je 0x422e4d
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x422d53
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
mov eax, 0x4c57ec
call fcn.004076a0
push 7
push 0x4a76fc
push 0x4c57ec
call fcn.00412690
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea edi, [esp + 0x24]
call fcn.004128d0
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp - 0xc]
add esp, 8
push eax
push ebp
push 0x4c57ec
call fcn.00412690
mov edx, dword [0x4c57ec]
push edx
call fcn.00410c40
add esp, 4
test eax, eax
jne 0x422e18
lea ebx, [esp + 0x20]
call fcn.00422b50
mov edi, 0x4c57ec
mov byte [esp + 0x238], 1
call fcn.00404fc0
mov byte [esp + 0x238], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422e05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4c57ec]
push ecx
call fcn.00410c40
add esp, 4
test eax, eax
je 0x422e4d
mov edx, dword [0x4c57ec]
push edx
push str.temp_:__ws
mov ecx, 0x4c5908
call fcn.00472890
add esp, 8
call fcn.0046b6e0
mov edx, dword [0x4c57ec]
mov ecx, eax
call fcn.0046b320
mov dword [esp + 0x18], 1
jmp 0x422e57
mov esi, 0x4c57ec
call fcn.00407520
add ebp, 0xfffffff0
mov dword [esp + 0x238], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422e7f
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0047cee5
add esp, 0x228
ret
Function at 0x422fe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49f300
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x42304f
mov ecx, 0x105
lea eax, [esp + 0x2c]
call fcn.00407630
mov esi, dword [esp + 0x2c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0047e15f
add esp, 8
test eax, eax
jl 0x423181
cmp eax, dword [esi - 8]
jg 0x423181
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [esp + 0x2c]
lea eax, [ecx + 1]
push edx
lea ecx, [esp + 0x1c]
call fcn.00412120
push eax
mov ecx, 0x4a7724
call fcn.004122e0
mov bl, al
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4230c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4230dc
push 1
push 0x4a7728
lea ecx, [esp + 0x34]
push ecx
call fcn.00412690
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x4a772c
call fcn.00412200
add esp, 8
lea edi, [ebp + 0x7c]
mov byte [esp + 0x24], 1
call fcn.00404fc0
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
push 0
call fcn.00411aa0
mov edi, dword [edi]
add esp, 4
push edi
add ebp, 0x34
push ebp
mov ecx, 2
call fcn.00412cc0
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push 0x80070057
call fcn.00402890
int3
Function at 0x424ee0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x49e5f2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x228], 0
mov dword [esp + 0xc], 0
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x4c45ac
mov dword [esp + 0x10], edi
call edx
add eax, 0x10
mov dword [edi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x230], 0
push ecx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], ax
call fcn.004820f0
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x1c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x425008
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x424fa9
jge 0x424fa1
push 0x80070057
call fcn.00402890
mov ax, word [ecx]
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424fb0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
mov eax, edi
call fcn.004076a0
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x424ffb
lea edx, [eax - 1]
test edx, edx
jl 0x424f97
cmp edx, eax
jg 0x424f97
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x424ffb
cmp ax, 0x2f
je 0x424ffb
mov edx, 0x4a9248
call fcn.004120c0
push 7
push 0x4a82b8
push edi
call fcn.00412690
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0047cee5
add esp, 0x220
ret
Function at 0x425550
Capabilities:
Get disk size

Disassembly:
mov eax, dword [eax]
sub esp, 0x1c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x425575
xor edx, edx
add esp, 0x1c
ret
mov ecx, dword [esp + 4]
mov eax, dword [esp]
mov edx, ecx
test ecx, ecx
jg 0x425590
jl 0x425588
test eax, eax
jae 0x425590
or eax, 0xffffffff
mov edx, SysReAllocString
add esp, 0x1c
ret

Function at 0x425ab0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x4c5844]
test eax, eax
je 0x425ae4
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x425ae4
mov eax, dword [0x4c5844]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x4c5844], 0
ret
Function at 0x428c30
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax]
push ebx
xor ebx, ebx
test edx, edx
je 0x428c6f
mov eax, edi
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428c40
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
mov eax, 1
je 0x428c71
mov eax, ebx
pop ebx
ret 4
Function at 0x4307b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4307c0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4307d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x430cf0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x430d6a
xor eax, eax
cmp ecx, ebp
je 0x430d52
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x430d78
cmp ecx, ebp
je 0x430e0b
push ecx
jmp 0x430e05
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x430dda
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00430cf0
mov ebx, eax
cmp ebx, ebp
jne 0x430e28
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x430da0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x430ded
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00430e80
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x430e0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047cee5
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x430e37
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x430e0d
Function at 0x431900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x49c840
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c02a0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x43197f
call fcn.0041db30
mov esi, eax
jmp 0x431a61
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x43199b
call fcn.0041db30
jmp 0x431a58
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4319b4
call fcn.0041db30
jmp 0x431a58
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x4319e8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4319d6
lea eax, [ebp]
call fcn.004300e0
lea esi, [ebp - 0x1c]
call fcn.00430800
mov eax, 0x8007000e
jmp 0x431a73
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00430100
mov dword [ebp - 4], 1
jmp 0x431a11
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x431a1f
mov esi, 0x8007000e
jmp 0x431a5a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x431a3d
call fcn.0041db30
jmp 0x431a58
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004317b0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x431a71
lea eax, [ebp]
call fcn.004300e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0047cee5
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x431d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c80b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
xor ebx, ebx
sub eax, 0x10
mov dword [esp + 0x14], ebx
call fcn.00404f50
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
sub eax, 0x10
lea ebp, [esi + 4]
call fcn.00404f50
add eax, 0x10
mov dword [ebp], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x20], 1
mov eax, dword [edx]
sub eax, 0x10
lea edi, [esi + 8]
call fcn.00404f50
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 2
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x20], 3
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x20], 4
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x20], 5
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x20], 6
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
push eax
mov byte [esp + 0x24], 7
call fcn.004784f0
mov byte [esp + 0x20], 8
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x20], 9
mov ecx, dword [edi]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
cmp dword [ecx - 0xc], ebx
je 0x431ee1
push edi
lea eax, [ebx + 1]
lea ecx, [esp + 0x38]
call fcn.00412120
push eax
mov ecx, str._
mov ebx, 1
call fcn.004122e0
add esp, 4
mov byte [esp + 0x2c], bl
test al, al
jne 0x431ee6
mov byte [esp + 0x2c], 0
test bl, 1
je 0x431f0e
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431f0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2c], 0
je 0x431f22
push 1
push 0x4a616c
push edi
call fcn.00412690
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
je 0x431f54
push ebp
mov eax, 1
lea ecx, [esp + 0x38]
call fcn.00412120
push eax
mov ecx, 0x4a6170
or ebx, 2
call fcn.004122e0
add esp, 4
mov byte [esp + 0x2c], 1
test al, al
jne 0x431f59
mov byte [esp + 0x2c], 0
test bl, 2
je 0x431f7e
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431f7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2c], 0
je 0x431f92
push 1
push 0x4a6174
push ebp
call fcn.00412690
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x433e70
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x68
xor eax, eax
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
xor esi, esi
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x58], 1
jne 0x433eb5
xor eax, eax
pop esi
add esp, 0x68
ret
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call sub.KERNEL32.dll_GetSystemTimes
test eax, eax
je 0x43401e
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0x28]
push ecx
call esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
call sub.KERNEL32.dll_GetSystemTimes
lea edx, [esp + 0x20]
push edx
call esi
fild dword [esp + 0x14]
fld qword [0x4ac8c8]
mov eax, dword [esp + 0x10]
fmul st(1), st(0)
fild dword [esp + 0x10]
test eax, eax
jge 0x433f52
fadd qword [0x4ac8c8]
mov ecx, dword [esp + 0x18]
faddp st(2)
fild dword [esp + 0x1c]
fmul st(1)
fild dword [esp + 0x18]
test ecx, ecx
jge 0x433f6c
fadd qword [0x4ac8c8]
mov edx, dword [esp + 0x20]
faddp st(1)
fsubp st(2)
fild dword [esp + 0x24]
fmul st(1)
fild dword [esp + 0x20]
test edx, edx
jge 0x433f88
fadd qword [0x4ac8c8]
mov eax, dword [esp + 0x28]
faddp st(1)
fild dword [esp + 0x2c]
fmulp st(2)
fild dword [esp + 0x28]
test eax, eax
jge 0x433fa2
fadd qword [0x4ac8c8]
faddp st(2)
mov eax, dword [esp + 0x58]
mov ecx, eax
mov dword [esp + 8], ecx
fsubrp st(1)
fdivp st(1)
fld qword [0x4ac8c0]
fmul st(1), st(0)
fild dword [esp + 8]
test ecx, ecx
jge 0x433fc8
fadd qword [0x4ac8c8]
dec eax
fdivp st(2)
mov dword [esp + 8], eax
fild dword [esp + 8]
test eax, eax
jge 0x433fdd
fadd qword [0x4ac8c8]
fmul st(2)
fdivrp st(1)
call fcn.00497300
fnstcw word [esp + 6]
mov esi, eax
movzx eax, word [esp + 6]
or eax, 0xc00
mov dword [esp + 8], eax
push esi
mov ecx, 0x4c5908
fldcw word [esp + 0xc]
fistp qword [esp + 0xc]
mov edx, dword [esp + 0xc]
push edx
push str.cpu_idle_ration:__d____suitable_thread:__d
fldcw word [esp + 0x12]
call fcn.00472890
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x68
ret