joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4200d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x130], 0
mov ecx, 0x43c0b4
call fcn.00411b63
mov ecx, 7
mov esi, str.PRO_DIRECTORY
lea edi, [ebp - 0xd0]
rep movsd dword es:[edi], dword [esi]
push 0xac
push 0
lea eax, [ebp - 0xb4]
push eax
call fcn.0041150a
add esp, 0xc
mov dword [ebp - 0xdc], 0x32
push 0x64
call fcn.004114ec
add esp, 4
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0xe8], eax
mov esi, esp
push 0x32
mov eax, dword [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, esp
call fcn.00411848
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x100], 0
call fcn.00411a05
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x4201cc
mov dword [ebp - 0x204], 0
jmp 0x42027c
mov esi, esp
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ucrtbased.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00411848
add eax, 1
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0x3fffffff
jle 0x420206
mov dword [ebp - 0x208], 0
jmp 0x420270
mov edx, dword [ebp - 0x100]
shl edx, 1
add edx, 0x24
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp - 0x20c]
call fcn.0041157d
mov dword [ebp - 0x210], esp
lea eax, [ebp - 0x130]
push eax
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
call fcn.0041194c
add dword [ebp - 0x210], 0x20
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x100]
shl edx, 1
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.00411c12
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x204], edx
mov eax, dword [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041182a
push edx
mov ecx, ebp
push eax
lea edx, [0x4202bc]
push dword [ebp - 0x130]
call fcn.00411b81
pop eax
pop edx
lea esp, [ebp - 0x21c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114f6
mov esp, ebp
pop ebp
ret
Function at 0x420380
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e0ed
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
push ebx
push esi
push edi
lea edi, [ebp - 0x2d8]
mov ecx, 0xb3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 4], 0
mov ecx, 0x43c0b4
call fcn.00411b63
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call fcn.0041149c
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00411a64
test eax, eax
je 0x420596
mov dword [ebp - 0x258], 0
call fcn.00411a05
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x27c], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x420466
mov dword [ebp - 0x44c], 0
jmp 0x420516
mov esi, esp
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.ucrtbased.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00411848
add eax, 1
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0x3fffffff
jle 0x4204a0
mov dword [ebp - 0x450], 0
jmp 0x42050a
mov edx, dword [ebp - 0x258]
shl edx, 1
add edx, 0x24
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x454]
call fcn.0041157d
mov dword [ebp - 0x458], esp
lea eax, [ebp - 0x2ac]
push eax
mov edx, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x458]
call fcn.0041194c
add dword [ebp - 0x458], 0x20
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x258]
shl edx, 1
push edx
mov eax, dword [ebp - 0x270]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.00411c12
mov dword [ebp - 0x450], eax
mov edx, dword [ebp - 0x450]
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00411267
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.00411b31
add esp, 8
movzx edx, al
test edx, edx
je 0x420570
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x438], eax
lea ecx, [ebp - 0x2a0]
call fcn.004116d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004116d1
mov eax, dword [ebp - 0x438]
jmp 0x4205b5
lea ecx, [ebp - 0x2a0]
call fcn.004116d1
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00411537
test eax, eax
jne 0x420419
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004116d1
mov eax, dword [ebp - 0x444]
push edx
mov ecx, ebp
push eax
lea edx, [0x4205f0]
push dword [ebp - 0x2ac]
call fcn.00411b81
pop eax
pop edx
lea esp, [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004114f6
mov esp, ebp
pop ebp
ret
Function at 0x4206f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e13d
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
push ebx
push esi
push edi
lea edi, [ebp - 0x2d8]
mov ecx, 0xb3
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 4], 0
mov ecx, 0x43c0b4
call fcn.00411b63
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call fcn.0041149c
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00411a64
test eax, eax
je 0x4208f1
mov dword [ebp - 0x264], 0
call fcn.00411a05
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
jne 0x4207e0
mov dword [ebp - 0x44c], 0
jmp 0x420890
mov esi, esp
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.ucrtbased.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00411848
add eax, 1
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0x3fffffff
jle 0x42081a
mov dword [ebp - 0x450], 0
jmp 0x420884
mov edx, dword [ebp - 0x264]
shl edx, 1
add edx, 0x24
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x454]
call fcn.0041157d
mov dword [ebp - 0x458], esp
lea eax, [ebp - 0x2b8]
push eax
mov edx, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x458]
call fcn.0041194c
add dword [ebp - 0x458], 0x20
mov ecx, dword [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x264]
shl edx, 1
push edx
mov eax, dword [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.00411c12
mov dword [ebp - 0x450], eax
mov edx, dword [ebp - 0x450]
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00411267
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.00411b31
add esp, 8
movzx edx, al
test edx, edx
je 0x4208cb
mov eax, dword [ebp - 0x258]
add eax, 1
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x2ac]
call fcn.004116d1
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00411537
test eax, eax
jne 0x420793
cmp dword [ebp - 0x258], 1
jle 0x420906
mov dword [ebp - 0x44c], 1
jmp 0x420910
mov dword [ebp - 0x44c], 0
mov al, byte [ebp - 0x44c]
mov byte [ebp - 0x441], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004116d1
mov al, byte [ebp - 0x441]
push edx
mov ecx, ebp
push eax
lea edx, [0x42096c]
push dword [ebp - 0x2b8]
call fcn.00411b81
pop eax
pop edx
lea esp, [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004114f6
mov esp, ebp
pop ebp
ret
Function at 0x420ad0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e195
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
lea edi, [ebp - 0xb0]
mov ecx, 0x29
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x43c0b4
call fcn.00411b63
push str.mcp_applet_async.exe
lea ecx, [ebp - 0x30]
call fcn.00411267
mov dword [ebp - 4], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x144], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00411758
call fcn.00420380
add esp, 0x1c
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x3c], ecx
push str.xtop.exe
lea ecx, [ebp - 0x60]
call fcn.00411267
mov byte [ebp - 4], 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x150], esp
lea eax, [ebp - 0x60]
push eax
call fcn.00411758
call fcn.00420380
add esp, 0x1c
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
je 0x420bc2
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x15c], esp
push str.pro_comm_msg.exe
call fcn.00411267
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00420d50
add esp, 0x28
mov dword [ebp - 0x6c], 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.pfclscom.exe
call fcn.00411267
call fcn.00420380
add esp, 0x1c
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x420c46
mov esi, esp
mov eax, dword [ebp - 0x6c]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.00411848
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x420c46
mov esi, esp
push 1
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.00411848
mov esi, esp
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411848
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004116d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004116d1
push edx
mov ecx, ebp
push eax
lea edx, [0x420c9c]
call fcn.0041170d
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004114f6
add esp, 0x170
cmp ebp, esp
call fcn.00411848
mov esp, ebp
pop ebp
ret
Function at 0x421140
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e22d
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push esi
push edi
lea edi, [ebp - 0xbc]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x436038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x43c0b4
call fcn.00411b63
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x24], 0xffff
lea ecx, [ebp - 0x48]
call fcn.0041167c
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041123a
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0x48]
call fcn.00411609
push eax
push str.PRO_CREO_BAT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, esp
call fcn.00411848
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x421276
push 0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041123a
mov dword [ebp - 0x94], 0x44
push 0x40
push 0
lea eax, [ebp - 0x90]
push eax
call fcn.0041150a
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
push 0x400
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.00411609
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.00411848
mov esi, esp
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411848
mov esi, esp
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00411848
mov byte [ebp - 0x15], 1
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x175], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00411a0f
mov al, byte [ebp - 0x175]
push edx
mov ecx, ebp
push eax
lea edx, [0x4212d0]
call fcn.0041170d
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004114f6
add esp, 0x17c
cmp ebp, esp
call fcn.00411848
mov esp, ebp
pop ebp
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..pdata
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x38682144
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x3dd505b5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401489
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
jne 0x4014ae
mov eax, 1
jmp 0x4014b3
mov eax, 0
leave
ret

Function at 0x4014b5
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], str.C:UsershacksDocumentsGitHubWindowsBuildingBlockDebugBuildingBlock.exe
mov dword [ebp - 0x10], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.BuildingBlock
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret
Function at 0x4015b9
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0x18], eax
mov dword [esp], str.Kernel32
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], str.LoadLibraryA
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._atoi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x43a
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401701
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Error:__d_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x401720
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401793
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.CreateFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x4018bb
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4017d1
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.GetFileSize_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x4018bb
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x401804
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.malloc_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x4018bb
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401854
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.ReadFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x4018bb
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4018a4
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.WriteFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x4018bb
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
leave
ret

Function at 0x401a47
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret
Function at 0x402340
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40238b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402384
test esi, esi
je 0x402384
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402360
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402570
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4025c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402698
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4025fe
cmp eax, 4
jne 0x402620
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40260e
cmp edx, 4
je 0x40260e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402570
Function at 0x100e87fa
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp], edi
lea esp, [esp + 2]
jmp 0x100e87e4

Function at 0x100e8803
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp], dh
push dword [esp]
jl 0x100e8888
jge 0x100e885c
push 0xd9d04
jmp 0x100e891c
pushal
lea esp, [esp + 3]
jmp 0x100e8899
mov byte [esp + 2], cl
mov byte [esp + 3], cl
mov dword [esp + 0x20], ebx
jmp 0x100e8846
mov dword [esp + 0x1c], esp
call fcn.100e88a8
add eax, 0xe0af8334
jmp 0x100e9eaa
mov byte [esp + 2], cl
mov byte [esp + 3], cl
mov dword [esp + 0x20], ebx
pushal
lea esp, [esp + 3]
pop word [esp + 0x15]
lea esp, [esp + 0x18]
lea esp, [esp + 3]
jmp 0x100e886a
add eax, 0x2724412d
jmp 0x100e9fa3
mov edx, dword [esp]
neg al
jmp 0x100e8a87
call fcn.100e8a03
cmp ebp, dword [ecx + reloc.USER32.dll_PeekMessageA]
pop ebx
retf 0x3f58
jb 0x100e8940
jae 0x100e8940
inc dh
jle 0x100e9ed1
mov dl, 0x7b
jmp 0x100e9edd
mov dl, 0x7b
mov dx, word [esp]
jmp 0x100e9f07
mov dx, word [esp]
jmp 0x100e9f07
mov edx, eax
lea edx, reloc.USER32.dll_PeekMessageA
mov eax, dword [edx]
cmp dh, ah
jmp 0x100ea0ef
rcl edx, 0xf
jmp 0x100e88de
lea edx, [ecx + edx]
setnp dh
inc edx
jmp 0x100ea064
mov esp, edi
lea edx, [eax + edi]
rcl dh, cl
je 0x100e9ff7
bsr edx, ebp
jmp 0x100e9fd4
bsr edx, ebp
push eax
ret
jmp 0x100e9fd1
je 0x100e9fb0
jne 0x100e9fb0
jnp 0x100e9f19
rcl edx, 0xf
call fcn.100e9fc6

Function at 0x100e9385
Capabilities:
Execute anti-debugging instructions

Disassembly:
or ah, cl
jns 0x100e93c6
dec edx
bswap eax
jmp 0x100e93a4
lea esp, [esp + 2]
lea esp, [esp + 4]
sub cl, 0x23
jmp 0x100e936f
not cl
mov dl, ch
stc
jmp 0x100e93e1
setb ah
seto dl
jmp 0x100e93cb
dec edx
bswap eax
jmp 0x100e93a4
add cl, 0xe2
not dx
mov ax, di
mov eax, dword [esp]
jmp 0x100e945f
jo 0x100e93af
setb ah
seto dl
jmp 0x100e93cb
rol cl, 0
lea eax, [ecx + edx]
mov eax, ecx
jmp 0x100e9447
lea esp, [esp + 3]
jmp 0x100e9415
and ecx, 0x3c
setbe al
xchg edx, eax
rdtsc
mov dx, bp
call fcn.100e9488
lodsd eax, dword [esi]
xor dword [ecx - reloc.USER32.dll_PeekMessageA], esp
mov edx, 0x8f2a251d
rdtsc
sub esp, 0xf
ja 0x100e942b
lea esp, [esp + 3]
jmp 0x100e9415