joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57bcaa
Capabilities:
Create process on windows

Disassembly:
push 0x68
mov eax, 0x58f645
call fcn.00532159
mov bl, dl
mov esi, ecx
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0054b330
add esp, 0xc
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
push eax
lea eax, [ebp - 0x58]
push eax
push ecx
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], esp
push str.visible
call fcn.004036e4
and dword [ebp - 4], 0
xor ecx, ecx
call fcn.00579897
or edi, 0xffffffff
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00579726
dec eax
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
xor eax, eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x57bd96
test bl, bl
je 0x57bd9f
push edi
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x57bd48
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x57bd9f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x5cb254
call fcn.004036e4
mov ecx, dword [ebp - 0x14]
xor dl, dl
mov dword [ebp - 4], edi
call fcn.00572271
add esp, 0x48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x68]
call esi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov dword [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.runExecutable
call fcn.004036e4
mov ecx, dword [ebp - 0x14]
xor dl, dl
mov dword [ebp - 4], edi
call fcn.00572271
mov eax, dword [ebp - 0x14]
add esp, 0x48
call fcn.00532103
ret
Function at 0x57bf3b
Capabilities:
Get file version info

Disassembly:
push 0x24c
mov eax, 0x58f6b3
call fcn.00532159
mov esi, ecx
mov dword [ebp - 0x220], esi
xor edi, edi
lea eax, [ebp - 0x21c]
push 0x20a
push edi
push eax
mov dword [ebp - 0x258], edi
call fcn.0054b330
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x57bf93
push edi
mov ecx, esi
call fcn.004035e2
jmp 0x57c085
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x57bf86
xor eax, eax
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x22c]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004054e1
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push dword [ebp - 0x22c]
push ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x57c072
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], ebx
push eax
push str.StringFileInfo040904b0ProductName
push dword [ebp - 0x22c]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x220], ebx
call edi
test eax, eax
je 0x57c072
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x250]
push eax
push str.StringFileInfo040904b0ProductVersion
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x57c072
push dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
call fcn.004035e2
lea eax, [ebp - 0x24c]
mov ecx, esi
push eax
call fcn.00403ebc
push ebx
push 1
lea ecx, [ebp - 0x24c]
call fcn.00403a36
jmp 0x57c07a
push ebx
mov ecx, esi
call fcn.004035e2
lea ecx, [ebp - 0x22c]
call fcn.004068cd
mov eax, esi
call fcn.00532103
ret
Function at 0x57c08d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x828
mov eax, 0x58f6e6
call fcn.00532159
mov esi, ecx
mov dword [ebp - 0x814], esi
xor edi, edi
lea ecx, [ebp - 0x82c]
push str.SOFTWAREClientsStartMenuInternet
mov dword [ebp - 0x834], edi
call fcn.004035e2
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.0054b330
add esp, 0xc
mov dword [ebp - 0x814], 0x400
cmp dword [ebp - 0x818], 8
lea ecx, [ebp - 0x830]
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x57c14a
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push edi
push edi
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57c14a
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004035e2
push edi
jmp 0x57c1cd
push dword [ebp - 0x830]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp - 0x818], 8
lea ecx, [ebp - 0x830]
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x57c1b7
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57c1b7
push dword [ebp - 0x830]
call edi
lea eax, [ebp - 0x810]
push eax
jmp 0x57c1c4
push dword [ebp - 0x830]
call edi
push 0x5c5ffc
mov ecx, esi
call fcn.004035e2
push 0
push 1
lea ecx, [ebp - 0x82c]
call fcn.00403a36
mov eax, esi
call fcn.00532103
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3
Function at 0x10001820
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
lea ebp, [esi + 0x400]
push ebp
call fcn.10003792
push ebp
mov ebx, eax
push 0
push ebx
call fcn.10009a30
push ebx
push edi
mov ecx, esi
call fcn.10001710
push esi
push ebx
push edi
call fcn.1000a460
push ebx
call fcn.100037f7
add esp, 0x28
xor ecx, ecx
pop ebp
mov byte [esp + 4], 0x29
mov byte [esp + 5], 0x44
mov byte [esp + 6], 0x2f
pop ebx
test esi, esi
jle 0x1000188b
jmp 0x10001870
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ecx
sub edx, eax
mov al, byte [esp + edx]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x10001870
pop ecx
ret

Function at 0x10001890
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push esi
push str.uxtuneup_x86.dll
call dword [0x10018b90]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100018a9
pop esi
pop ecx
ret
push str.qUsegkvofF
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100018bf
mov dword [esp + 4], eax
jmp 0x100018d9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0x5e3a1
push ecx
call eax
mov dword [esp + 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x18]
push 0x10013e80
push edx
call fcn.100038c8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10001994
push ebp
push edi
push 2
push 0
push ebx
call fcn.10003969
push ebx
call fcn.10003b8b
mov esi, eax
lea ebp, [esi + 0x400]
push ebp
call fcn.10003792
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10001992
push ebp
push 0
push edi
call fcn.10009a30
push 0
push 0
push ebx
call fcn.10003969
push ebx
push 1
push esi
push edi
call fcn.10003e99
push ebx
call fcn.10003f2d
call fcn.10001820
mov eax, dword [esp + 0x4c]
push 0x10013e88
push eax
call fcn.100038c8
mov ebx, eax
add esp, 0x34
test ebx, ebx
jne 0x10001979
push edi
call fcn.100037f7
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
push ebx
push 1
push esi
push edi
call fcn.1000410b
push ebx
call fcn.10003f2d
push edi
call fcn.100037f7
add esp, 0x18
pop edi
pop ebp
mov eax, dword [esp + 8]
pop ebx
pop esi
pop ecx
ret
Function at 0x10001f10
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
mov edi, eax
push 0
push edi
call fcn.10003969
push edi
call fcn.10003b8b
mov ebx, eax
lea ebp, [ebx + 0x400]
push ebp
mov dword [0x10018cfc], 2
call fcn.10003792
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10001f58
push edi
call fcn.10003f2d
add esp, 4
pop edi
lea eax, [esi + 2]
pop esi
pop ebp
pop ebx
ret
cmp ebx, 4
jge 0x10001f76
push edi
call fcn.10003f2d
push esi
call fcn.100037f7
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
ret
push ebp
push 0
push esi
call fcn.10009a30
push 0
push 0
push edi
call fcn.10003969
push edi
push 1
push ebx
push esi
call fcn.10003e99
push edi
call fcn.10003f2d
push ebx
push esi
call fcn.10002040
add esp, 0x34
lea edi, [eax + 4]
test eax, eax
jg 0x10001fac
mov edi, eax
push ebx
push 0
push esi
call fcn.10009a30
push esi
call fcn.100037f7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10002470
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x10014018
push eax
call fcn.100038c8
push 2
mov esi, eax
push 0
push esi
call fcn.10003969
push esi
call fcn.10003b8b
mov edi, eax
lea ebp, [edi + 0x400]
push ebp
call fcn.10003792
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x100024b0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push ebp
push 0
push ebx
call fcn.10009a30
push 0
push 0
push esi
call fcn.10003969
push esi
push 1
push edi
push ebx
call fcn.10003e99
push esi
call fcn.10003f2d
push ebx
call fcn.10001fd0
push ebx
mov esi, eax
call fcn.100037f7
add esp, 0x34
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x100024f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x404
mov eax, dword [0x1001603c]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push 0x200
lea eax, [esp + 0x208]
push 0
push eax
mov ebx, ecx
call fcn.10009a30
push 0x200
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.10009a30
add esp, 0x18
push ebx
lea edx, [esp + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [esp + 4]
lea eax, [esp + 0x204]
call fcn.10001470
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov ecx, ebx
push ecx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x404]
pop ebx
xor ecx, esp
call fcn.10003569
add esp, 0x404
ret
Function at 0x10002580
Capabilities:
Set registry value

Disassembly:
push esi
call fcn.10001050
mov esi, eax
test esi, esi
jne 0x10002591
lea eax, [esi + 1]
pop esi
ret
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.Value7
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x100025ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
pop esi
ret
mov ecx, dword [esp + 0xc]
push edi
mov edi, str.Value8
call fcn.100024f0
test eax, eax
je 0x100025dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 3
pop esi
ret
mov ecx, dword [esp + 0x14]
mov edi, str.Value9
call fcn.100024f0
push esi
test eax, eax
je 0x100025fd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 4
pop esi
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
ret
Function at 0x10002610
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x7d8
mov eax, dword [0x1001603c]
xor eax, esp
mov dword [esp + 0x7d4], eax
mov eax, dword [esp + 0x7e0]
push ebp
mov ebp, dword [esp + 0x7e0]
push edi
mov edi, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7f8]
mov dword [0x10018cfc], 5
test edi, edi
jle 0x10002670
cmp edi, dword [0x10017aa8]
jg 0x10002684
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x7d4]
xor ecx, esp
call fcn.10003569
add esp, 0x7d8
ret
je 0x10002657
cmp edi, 0xffffffff
mov edi, 1
je 0x10002684
cmp dword [0x10017aa8], edi
jle 0x10002657
cmp dword [esp + 0x7f0], 4
jne 0x100026c1
push ecx
mov ecx, dword [esp + 0x7f8]
push eax
push ecx
call fcn.10002580
add esp, 0xc
test eax, eax
jne 0x10002659
mov dword [0x10017aa8], edi
pop edi
pop ebp
mov ecx, dword [esp + 0x7d4]
xor ecx, esp
call fcn.10003569
add esp, 0x7d8
ret
push ebx
xor edx, edx
push 0x7ce
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.10009a30
add esp, 0xc
push 0x10018d08
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
lea edx, [esp + 0x10]
test eax, eax
jne 0x10002721
push edx
call ebx
lea eax, [esp + eax*2 + 0x10]
push eax
mov eax, 0xa
lea ebx, [eax - 4]
call fcn.10001600
add esp, 4
push str..msi
lea ecx, [esp + 0x14]
push ecx
jmp 0x10002723
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x10]
push eax
push str.Mozilla_5.0__Linux__U__Android_2.3.3__en_us__HTC_DesireS_S510e_Build_GRI40__AppleWebKit_533.1__KHTML__like_Gecko__Version_4.0_Mobile
push ebp
mov dword [0x10018cfc], 6
call fcn.10001890
add esp, 0xc
pop ebx
test eax, eax
je 0x10002767
pop edi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x7d4]
xor ecx, esp
call fcn.10003569
add esp, 0x7d8
ret
lea eax, [esp + 0xc]
mov dword [0x10018cfc], 7
call fcn.10002470
test eax, eax
jge 0x1000279a
pop edi
mov eax, 3
pop ebp
mov ecx, dword [esp + 0x7d4]
xor ecx, esp
call fcn.10003569
add esp, 0x7d8
ret
mov ecx, dword [esp + 0x7ec]
mov dword [0x10018cfc], 8
test ecx, ecx
jl 0x100027cf
cmp ecx, eax
je 0x100027cf
pop edi
mov eax, 4
pop ebp
mov ecx, dword [esp + 0x7d4]
xor ecx, esp
call fcn.10003569
add esp, 0x7d8
ret
mov ecx, dword [esp + 0x7f0]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
call fcn.10002970
test eax, eax
jle 0x100027ec
add eax, 5
test eax, eax
jne 0x10002659
mov ecx, dword [esp + 0x7dc]
inc dword [0x10018cf8]
mov dword [0x10017aa8], edi
pop edi
pop ebp
xor ecx, esp
call fcn.10003569
add esp, 0x7d8
ret
Function at 0x10002820
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x858
mov eax, dword [0x1001603c]
xor eax, esp
mov dword [esp + 0x854], eax
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call fcn.10009a30
xor eax, eax
xor edx, edx
push 0x7fe
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x6e]
xor ecx, ecx
push eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 1
mov word [esp + 0x5c], cx
mov word [esp + 0x70], dx
call fcn.10009a30
add esp, 0x18
push 0x3e8
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100028e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10018d00], eax
mov eax, 1
pop esi
mov ecx, dword [esp + 0x854]
xor ecx, esp
call fcn.10003569
add esp, 0x858
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100028f5
mov edx, dword [esp + 4]
mov dword [ebx], edx
jmp 0x100028fc
mov eax, dword [esp + 4]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x858]
pop esi
xor ecx, esp
xor eax, eax
call fcn.10003569
add esp, 0x858
ret
Function at 0x10003569
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001603c]
jne 0x10003573
repz ret
jmp fcn.100046f3

Function at 0x1001014f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10007a68
and dword [ebp - 4], 0
cmp dword [0x10018460], 0
mov ebx, eax
jne 0x10010200
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100102b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100102b1
push eax
call fcn.100079f6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10018460], eax
call esi
push eax
call fcn.100079f6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10018464], eax
call esi
push eax
call fcn.100079f6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10018468], eax
call esi
push eax
call fcn.100079f6
pop ecx
mov dword [0x10018470], eax
test eax, eax
je 0x10010200
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100079f6
pop ecx
mov dword [0x1001846c], eax
mov eax, dword [0x1001846c]
cmp eax, ebx
je 0x10010258
cmp dword [0x10018470], ebx
je 0x10010258
push eax
call fcn.10007a71
push dword [0x10018470]
mov esi, eax
call fcn.10007a71
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10010258
test edi, edi
je 0x10010258
call esi
test eax, eax
je 0x1001024f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001024f
test byte [ebp - 0xc], 1
jne 0x10010258
or dword [ebp + 0x10], 0x200000
jmp 0x10010291
mov eax, dword [0x10018464]
cmp eax, ebx
je 0x10010291
push eax
call fcn.10007a71
pop ecx
test eax, eax
je 0x10010291
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10010291
mov eax, dword [0x10018468]
cmp eax, ebx
je 0x10010291
push eax
call fcn.10007a71
pop ecx
test eax, eax
je 0x10010291
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10018460]
call fcn.10007a71
pop ecx
test eax, eax
je 0x100102b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100102b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402230
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402290
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d3bc]
test esi, esi
jle 0x402390
mov eax, dword [0x40d3c0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4022c0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40233f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4022b0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4023b7
mov eax, dword [0x40d3c0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d3c0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402397
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402338
sub eax, 4
and eax, 0xfffffffb
jne 0x402346
add dword [0x40d3bc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x40d3c0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402338
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x4022ca
mov eax, dword [0x40d3c0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402870
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d3d0]
sub esp, 4
test ebx, ebx
je 0x4028c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4028be
test esi, esi
je 0x4028be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4028a0
mov dword [esp], 0x40d3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret