joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439398
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44a6a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.004114d6
mov esi, dword [eax + 0xc]
mov eax, dword [ebp + 8]
push 0x440760
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40195f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401949
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401949
lea ecx, [ebp - 0x24]
call fcn.0041202b
mov ecx, dword [ebp + 0xc]
push 0
push 0x1001
push ecx
mov dword [ebp - 4], 0
mov ebx, 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004124a9
test eax, eax
jne 0x4019c2
push 0x445f78
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ebx
call fcn.00426a99
mov eax, dword [ebp + 8]
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00411d79
lea ecx, [ebp - 0x24]
call fcn.00411fc9
jmp 0x4019e6
lea ecx, [ebp - 0x24]
movzx esi, bl
mov dword [ebp - 4], 0xffffffff
call fcn.00412127
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402ff0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x94
mov eax, dword [0x44a6a0]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
xor ebx, ebx
push 0x7f
lea eax, [esp + 0x19]
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.00424f30
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallWinPcapInst
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403091
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.DisplayVersion
push edx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403086
mov al, byte [esp + 0x14]
lea ecx, [esp + 4]
push ecx
mov byte [esp + 9], bl
mov byte [esp + 8], al
call fcn.00422e8d
add esp, 4
cmp eax, 4
jl 0x403086
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x94]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00422bc2
add esp, 0x94
ret
Function at 0x4030b0
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43956b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x44a6a0]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
push edi
mov eax, dword [0x44a6a0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [0x44b9c4]
mov edi, 0x10
cmp dword [0x44b9d8], edi
jae 0x403101
mov eax, 0x44b9c4
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x103
lea eax, [esp + 0x69]
push ebx
push eax
mov byte [esp + 0x70], bl
call fcn.00424f30
push 0x103
lea ecx, [esp + 0x179]
push ebx
push ecx
mov byte [esp + 0x180], bl
call fcn.00424f30
push str.PcManager.config
lea edx, [esp + 0x80]
push 0x44095c
push edx
call fcn.00423026
mov eax, dword [0x44b9c4]
add esp, 0x24
cmp dword [0x44b9d8], edi
jae 0x403165
mov eax, 0x44b9c4
push str.PcManager.config
push eax
lea eax, [esp + 0x170]
push str._s_s
push eax
call fcn.00423026
add esp, 0x10
lea ecx, [esp + 0x168]
lea eax, [esp + 0x64]
jmp 0x403190
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4031b0
cmp dl, bl
je 0x4031ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4031b0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x403190
xor eax, eax
jmp 0x4031b5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4032b8
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4031d4
sub eax, edx
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404b60
lea eax, [esp + 0x10]
call fcn.00406ac0
cmp dword [esp + 0x28], edi
mov esi, eax
jb 0x40320c
mov edx, dword [esp + 0x14]
push edx
call fcn.004072b4
add esp, 4
cmp esi, ebx
je 0x4032b8
push edi
push str.PcManager.config
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00404b60
lea eax, [esp + 0x2c]
push eax
push 0x44b9c0
lea edi, [esp + 0x50]
mov dword [esp + 0x280], ebx
call fcn.00403a70
add esp, 8
call fcn.00406ac0
mov edi, 0x10
cmp dword [esp + 0x60], edi
mov esi, eax
jb 0x40326f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004072b4
add esp, 4
cmp dword [esp + 0x44], edi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x403292
mov edx, dword [esp + 0x30]
push edx
call fcn.004072b4
add esp, 4
cmp esi, ebx
je 0x4032a4
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00422bc2
add esp, 0x26c
ret
Function at 0x4049f0
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 0x404a09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404a44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404a40
lea ebx, [ebx]
cmp esi, eax
jae 0x404a44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404a30
cmp esi, eax
jb 0x404a4a
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 0x404e00
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x20006
xor esi, esi
push esi
push str.SOFTWAREMicrosoftRegMsParaSet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404e53
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftRegMsParaSet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404e53
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push 0x1e
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404e75
lea esi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x404e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftRegMsParaSet
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404eef
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404ee4
lea esi, [eax + 1]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x404f00
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x20006
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404f54
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404f54
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
push eax
push ecx
push 1
push 0
push str.Userinit
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404f79
lea esi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x404f90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x44a6a0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 0x440c94
mov esi, ecx
push 0x1e
push esi
mov dword [esp + 0x1c], esi
call fcn.00404e90
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40504f
mov edi, str.Unstop_right_now
mov ecx, 0x11
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40504d
mov dword [esp + 0x14], eax
push 0x1fa3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
push 2
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40504d
push 0x10
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x405046
mov edx, dword [esp + 0x10]
push str.stop_right_now
push 0x44095c
push edx
call fcn.00423026
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422bc2
mov esp, ebp
pop ebp
ret
Function at 0x406020
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4060f5
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea edx, [esp + 0x24]
push edx
push 0
push esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4060f5
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push eax
push 0x400
call edi
mov esi, eax
test esi, esi
jne 0x4060b2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4060f2
push esi
call ebp
push ebx
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x4060a9
mov ecx, dword [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4060f2
mov dword [esp + 0x14], 1
push esi
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406100
push eax
call ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x406920
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406954
cmp dword [esp + 0x3c], 0x10
jb 0x40694d
mov eax, dword [esp + 0x28]
push eax
call fcn.004072b4
add esp, 4
xor al, al
pop edi
add esp, 0x1c
ret
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x406963
lea eax, [esp + 0x28]
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40699a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x40], 0x10
jb 0x406992
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004072b4
add esp, 4
pop esi
xor al, al
pop edi
add esp, 0x1c
ret
push ebx
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
setne bl
call esi
push edi
call esi
cmp dword [esp + 0x44], 0x10
jb 0x4069ce
mov eax, dword [esp + 0x30]
push eax
call fcn.004072b4
add esp, 4
mov al, bl
pop ebx
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x4069e0
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406a0e
cmp dword [esp + 0x20], 0x10
jb 0x406a0a
mov eax, dword [esp + 0xc]
push eax
call fcn.004072b4
add esp, 4
xor al, al
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
mov ebx, 0x10
cmp dword [esp + 0x24], ebx
jae 0x406a22
lea eax, [esp + 0x10]
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x406a56
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x28], ebx
jb 0x406a92
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004072b4
add esp, 4
pop esi
pop ebx
xor al, al
pop edi
ret
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x406a98
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x28], ebx
jb 0x406a92
mov eax, dword [esp + 0x14]
push eax
call fcn.004072b4
add esp, 4
pop esi
pop ebx
xor al, al
pop edi
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [esp + 0x28], ebx
jb 0x406ab7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004072b4
add esp, 4
pop esi
pop ebx
mov al, 1
pop edi
ret
Function at 0x406e70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4396d3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x44a6a0]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a6a0]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
xor ebx, ebx
push 0x44
lea eax, [esp + 0x44]
push ebx
push eax
mov dword [esp + 0xb8], ebx
xor esi, esi
call fcn.00424f30
mov cx, word [esp + 0xdc]
add esp, 0xc
xor eax, eax
push 7
mov word [esp + 0x74], cx
push str.cmd__c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404b60
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x8c]
mov byte [esp + 0xb4], 1
call fcn.00403a70
mov ebp, 0x10
add esp, 8
cmp dword [esp + 0x3c], ebp
jb 0x406f51
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004072b4
add esp, 4
cmp dword [esp + 0x9c], ebp
mov eax, dword [esp + 0x88]
jae 0x406f68
lea eax, [esp + 0x88]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406fb3
cmp dword [esp + 0xd4], ebx
je 0x406f9a
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov esi, 1
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
cmp dword [esp + 0x9c], ebp
jb 0x406fcc
mov edx, dword [esp + 0x88]
push edx
call fcn.004072b4
add esp, 4
cmp dword [esp + 0xcc], ebp
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x406ffe
mov eax, dword [esp + 0xb8]
push eax
call fcn.004072b4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00422bc2
add esp, 0x9c
ret
Function at 0x407130
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4071fa
push 0x94
mov edi, 1
call fcn.004236b4
mov esi, eax
add esp, 4
test esi, esi
je 0x40726d
push 0x94
push 0
push esi
call fcn.00424f30
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x407195
push esi
lea edi, [eax + 1]
call fcn.00423777
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4071da
cmp dword [esi + 8], 0
jne 0x4071b1
push esi
lea edi, [eax + 1]
call fcn.00423777
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4071da
cmp dword [esi + 8], edi
jne 0x4071cc
push esi
lea edi, [eax + 2]
call fcn.00423777
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4071da
cmp dword [esi + 8], 2
jne 0x4071da
lea edi, [eax + 3]
cmp eax, 6
jne 0x407264
cmp dword [esi + 8], 0
jne 0x407264
push esi
lea edi, [eax + 3]
call fcn.00423777
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x407203
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.004236b4
mov esi, eax
add esp, 4
test esi, esi
je 0x40726d
push 0x94
push 0
push esi
call fcn.00424f30
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x407264
cmp dword [esi + 8], 0xa
jne 0x407257
push esi
lea edi, [eax - 1]
call fcn.00423777
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x407264
cmp dword [esi + 8], 0x5a
jne 0x407264
mov edi, eax
push esi
call fcn.00423777
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x4077f5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44a6a0]
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 - 0x11c]
jne 0x407835
push 0x43b8d8
push 4
push eax
call fcn.00424dbb
push eax
call fcn.00404c60
add esp, 0x10
jmp 0x407847
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4078b5
push edi
call fcn.00424ee6
mov edi, dword [eax]
call fcn.00424ee6
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004230bd
add esp, 0x18
mov ebx, eax
call fcn.00424ee6
cmp dword [eax], 0
je 0x407895
call fcn.00424ee6
push dword [eax]
call fcn.00407770
pop ecx
jmp 0x40789c
call fcn.00424ee6
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4078b5
cmp ebx, esi
jae 0x4078b5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4078b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00422bc2
leave
ret
Function at 0x40866c
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 0x4086b2
call fcn.004114d6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4086b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4086f5
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 0x4086de
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 0x4086de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4086f2
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 0x4101d2
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 0x410215
call fcn.004114d6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410215
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410230
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040fd89
test ebx, ebx
mov esi, eax
je 0x41022e
test edi, edi
je 0x41022e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4142ac
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 0x4142da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4142f8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414216
jmp 0x4142f8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4142f8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00414216
test edi, edi
mov eax, edi
jne 0x4142e2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44d568]
test ecx, ecx
je 0x4143bb
jmp 0x4142ab
ret 8

Function at 0x422bc2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a6a0]
jne 0x422bcc
repz ret
jmp fcn.00428478
Function at 0x42b6be
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 + 0x44ae18]
je 0x42b6d9
inc edi
cmp edi, 0x17
jb 0x42b6ca
cmp edi, 0x17
jae 0x42b859
push ebp
push 3
call fcn.0043380d
cmp eax, 1
pop ecx
je 0x42b825
push 3
call fcn.0043380d
test eax, eax
pop ecx
jne 0x42b70d
cmp dword [0x44a520], 1
je 0x42b825
cmp ebx, 0xfc
je 0x42b858
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44ddb0
push ebp
call fcn.00424dbb
add esp, 0xc
test eax, eax
je 0x42b743
push esi
push esi
push esi
push esi
push esi
call fcn.00422bdb
add esp, 0x14
push 0x104
mov esi, 0x44ddc9
push esi
push 0
mov byte [0x44decd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b787
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00424dbb
add esp, 0xc
test eax, eax
je 0x42b787
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00422bdb
add esp, 0x14
push esi
call fcn.00424e20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42b7cc
push esi
call fcn.00424e20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44e0c4
push 0x43eab4
sub ecx, eax
push ecx
push eax
call fcn.004269e6
add esp, 0x14
test eax, eax
je 0x42b7cc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00422bdb
add esp, 0x14
jmp 0x42b7ce
xor esi, esi
push 0x43eab0
push ebx
push ebp
call fcn.00425031
add esp, 0xc
test eax, eax
je 0x42b7ee
push esi
push esi
push esi
push esi
push esi
call fcn.00422bdb
add esp, 0x14
push dword [edi*8 + 0x44ae1c]
push ebx
push ebp
call fcn.00425031
add esp, 0xc
test eax, eax
je 0x42b810
push esi
push esi
push esi
push esi
push esi
call fcn.00422bdb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00433650
add esp, 0xc
jmp 0x42b858
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42b858
cmp ebp, 0xffffffff
je 0x42b858
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ae1c]
push dword [esi]
call fcn.00424e20
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