joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10012d70
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10013192
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1004e198]
call dword [ebp - 8]
jmp 0x1001319c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x10030f30
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.100307d0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10030f64
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1004e198]
call dword [ebp - 8]
jmp 0x10030f6a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10030fc0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10030810
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10030ff4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1004e198]
call dword [ebp - 8]
jmp 0x10030ffe
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x10031010
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10030830
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10031048
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x1004e198]
call dword [ebp - 8]
jmp 0x10031056
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x10031060
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.100308b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100310a0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1004e198]
call dword [ebp - 8]
jmp 0x100310be
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.100312b0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10033030
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1004c720
mov eax, dword [0x10069014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1006a988]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x10033208
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x10033157
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x10033157
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x10033135
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x100330b9
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100331c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x10033228
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x10033203
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x10033228
jmp 0x10033092
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d780
mov esp, ebp
pop ebp
ret
Function at 0x10033240
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1004c720
mov eax, dword [0x10069014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x1006a988]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1003342b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x10033376
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x10033376
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x10033352
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x100332c9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100333e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1003344b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x10033426
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1003344b
jmp 0x100332a2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d780
mov esp, ebp
pop ebp
ret
Function at 0x1003fa90
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.10017160
lea ecx, [ebp - 4]
call fcn.1003fa60
movzx eax, al
test eax, eax
jne 0x1003facd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.1003f9a0
mov eax, dword [ebp - 0x18]
jmp 0x1003fbf5
lea ecx, [ebp - 4]
call fcn.10014450
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1003fa20
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.10014450
push eax
push 0
push 0
call fcn.1003d1a0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1003fb33
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.1003f9a0
mov eax, dword [ebp - 0x20]
jmp 0x1003fbf5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10016ce0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.10009be0
lea ecx, [ebp - 8]
call fcn.1000d730
movzx edx, al
test edx, edx
jne 0x1003fb7c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.1000d710
lea ecx, [ebp - 4]
call fcn.1003f9a0
mov eax, dword [ebp - 0x24]
jmp 0x1003fbf5
lea ecx, [ebp - 8]
call fcn.1000d2c0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.10014450
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.1003d1a0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1003fbd7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.1000d710
lea ecx, [ebp - 4]
call fcn.1003f9a0
mov eax, dword [ebp - 0x34]
jmp 0x1003fbf5
lea ecx, [ebp - 8]
call fcn.100171a0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.1000d710
lea ecx, [ebp - 4]
call fcn.1003f9a0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x40130d
Capabilities:
Create thread

Disassembly:
push 8
push 0x43afb8
call fcn.00411e80
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
lea ebx, [edi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push esi
push esi
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
call esi
mov dword [edi + 0x2c], eax
test eax, eax
je 0x401376
push 0
push 1
push 1
push 0
call esi
mov dword [edi + 0x30], eax
test eax, eax
je 0x401376
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x40142c
push eax
push eax
call fcn.00417d9b
add esp, 0x18
mov dword [edi + 0x34], eax
test eax, eax
je 0x401376
mov al, 1
jmp 0x4013ae
push dword [edi + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x30]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x4013ac
xor al, al
call fcn.00411ec6
ret 4

Function at 0x401c79
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xec
mov eax, 0x42b81b
call fcn.00411a0f
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00401bf8
xor ebx, ebx
lea edx, [ebp - 0x2c]
inc ebx
lea ecx, [ebp - 0xf8]
push 0x439514
mov byte [ebp - 4], bl
call fcn.00402898
pop ecx
push 0x439474
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe0]
call fcn.00402910
pop ecx
push 0x43950c
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call fcn.00402910
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00402946
pop ecx
push 0x439508
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00402910
pop ecx
push edi
push ebx
lea ecx, [ebp - 0xb0]
call fcn.00402111
push edi
push ebx
lea ecx, [ebp - 0xc8]
call fcn.00402111
push edi
push ebx
lea ecx, [ebp - 0xe0]
call fcn.00402111
push edi
push ebx
lea ecx, [ebp - 0xf8]
call fcn.00402111
push 0x40
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], 0x44
push edi
push eax
call fcn.00415940
add esp, 0xc
lea edx, [ebp - 0x98]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push edx
cmovae eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x88]
push edx
push edi
push edi
push edi
push edi
movups xmmword [ebp - 0x98], xmm0
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401dac
push dword [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x98]
call esi
push edi
push ebx
lea ecx, [ebp - 0x44]
call fcn.00402111
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00402111
call fcn.0041195c
ret
Function at 0x401f41
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00415940
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401fa8
push str.DbgHelp.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004183af
add esp, 0xc
lea eax, [ebp - 0x20c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411205
mov esp, ebp
pop ebp
ret

Function at 0x403a93
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x403a9b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403aaf
test al, 0x10
jne 0x403aaf
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x403e98
Capabilities:
Move file

Disassembly:
push 0x2c
mov eax, 0x42bb3f
call fcn.004119a1
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor ecx, ecx
mov dword [ebp - 0x20], 7
xor eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x34], ax
push 0x5c
pop esi
mov dword [ebp - 4], ecx
cmp dword [edi + 0x14], 8
push 0x3f
pop eax
mov word [ebp - 0x18], si
mov word [ebp - 0x16], si
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], si
jb 0x403ee3
mov ecx, dword [edi]
jmp 0x403ee5
mov ecx, edi
push ecx
lea edx, [ebp - 0x18]
call fcn.00408126
pop ecx
test al, al
jne 0x403f01
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402168
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
call fcn.004064ba
cmp dword [edi + 0x14], 8
mov ecx, eax
jb 0x403f1f
mov eax, dword [edi]
jmp 0x403f21
mov eax, edi
lea eax, [eax + ecx*2]
add eax, 2
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x1c], eax
jb 0x403f34
mov esi, dword [edi]
jmp 0x403f36
mov esi, edi
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
lea edx, [eax + edx*2]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x1c]
sub edx, eax
sar edx, 1
cmp esi, ecx
jne 0x403f7a
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
push edx
cmovae ecx, dword [ebp - 0x34]
sub eax, ecx
lea ecx, [ebp - 0x34]
sar eax, 1
push eax
call fcn.004026f9
jmp 0x403f9e
sub ecx, esi
sar ecx, 1
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x34]
push dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x34]
push esi
sub eax, ecx
lea ecx, [ebp - 0x34]
push edx
sar eax, 1
push eax
call fcn.004071be
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
push 0
lea eax, [esi + 0x20]
push eax
call fcn.004065d0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x34]
lea eax, [eax + esi*2]
mov dword [ebp - 0x1c], eax
call fcn.00403e1b
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
cmp dword [edi + 0x14], 8
jb 0x403fdd
mov eax, dword [edi]
jmp 0x403fdf
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40400c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, edi
call fcn.00403979
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x404017
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.004029ae
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402111
mov eax, ebx
call fcn.0041194b
ret
Function at 0x4042c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43e06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404316
push edi
lea eax, [ebp - 8]
push eax
push 0x400000
push dword [0x4420d0]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40430f
cmp dword [ebp - 8], edi
jne 0x4042ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411205
mov esp, ebp
pop ebp
ret

Function at 0x408cb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x408cd3
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov ecx, 0x10000
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
mov dword [esi], 0x40
cmovne ecx, eax
mov eax, 1
mov dword [esi + 0xc], ecx
mov dword [0x4400c0], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408de0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x4400c0]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebx + 4]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x408e19
nop
mov eax, dword [esi + 0xc]
shl eax, 2
cmp eax, 0x6c
ja 0x408f2a
mov dword [ebp - 0xc], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x408e00
xor edx, edx
mov eax, 0x7c
div dword [ebx + 8]
xor ecx, ecx
mov edi, 0x80000000
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [ebx + 0xc]
div dword [ebx + 8]
lea edx, [ecx + 1]
cmp ecx, eax
cmovb edx, eax
mov eax, edi
mov ecx, edx
mov dword [ebp - 0x10], edx
imul ecx, dword [ebx + 8]
mov edx, dword [ebp + 8]
add edx, 0x80000000
sub eax, ecx
mov dword [ebp - 8], ecx
sub edi, ecx
cmp edx, eax
cmovb edi, edx
jmp 0x408e66
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
mov edx, ecx
mov ecx, edi
call fcn.00408d10
mov edi, eax
add esp, 4
test edi, edi
je 0x408f75
push dword [ebx]
push 0x3000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x408e63
cmp dword [ebx + 4], 0
jne 0x408ea7
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebx + 4], esi
jmp 0x408edf
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408f75
lea eax, [ebp - 4]
mov dword [edi + 4], esi
push eax
push 0x20
push dword [ebx + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
test eax, eax
je 0x408f75
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
xor ecx, eax
shr ecx, 8
xor ecx, eax
shl eax, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xff0
lea eax, [ecx + 0x10]
add eax, esi
mov dword [esi + 8], eax
mov eax, edx
sub eax, ecx
sub eax, 0x10
shr eax, 2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20
push edx
push esi
call edi
test eax, eax
je 0x408f75
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebx + 8]
push esi
call edi
test eax, eax
je 0x408f75
mov eax, dword [esi + 8]
add dword [esi + 0xc], 0xffffffe5
mov dword [ebp - 0x10], eax
add eax, 0x6c
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x20
push dword [ebx + 8]
push esi
call edi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x408f6c
lea eax, [ebp - 4]
push eax
push 0x40
push 0x6c
push esi
call edi
test eax, eax
je 0x408f75
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x43e06c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4400b0], 0
push esi
jne 0x4091e8
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], 0
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x409127
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411205
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
mov dword [0x4400ac], eax
cmp eax, 1
je 0x40913c
cmp eax, 2
jne 0x409116
mov eax, dword [0x4400b8]
test eax, eax
jne 0x40915e
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4400b8], eax
test eax, eax
je 0x409116
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [eax], 1
call esi
mov dword [0x43e890], eax
cmp eax, 0xffffffff
je 0x409116
call esi
mov dword [0x43e894], eax
cmp eax, 0xffffffff
je 0x409116
push 0x4422fc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00408cb0
push str.ntdll
mov dword [0x4400b0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4091e8
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4091e8
lea eax, [ebp - 0x9c]
push eax
push 0x18
lea eax, [ebp - 0xb4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov ecx, dword [0x4422f8]
test eax, eax
cmovns ecx, dword [ebp - 0xb0]
mov dword [0x4422f8], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [0x4400b0]
xor ecx, ebp
pop esi
call fcn.00411205
mov esp, ebp
pop ebp
ret

Function at 0x409200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x4422fc
mov dword [ebp - 8], edx
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x409254
mov edi, dword [esi]
mov eax, dword [ebp - 8]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x4422fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret