joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cf8
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x404cfb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
pushal
pushal
jmp 0x404d19
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404d77
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404d5e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x404d67
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x404d71
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x404d53
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
js 0x404d7d
invalid
jmp dword [esi - 0x75]
dec ebp
or al, 0x66
cmp ecx, dword [eax + 6]
jbe 0x404cdd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x404dc4
dec eax
je 0x404dbb
sub eax, 3
je 0x404db2
mov dword [ebp - 4], 0x40
jmp 0x404de1
mov dword [ebp - 4], 4
jmp 0x404dc7
mov dword [ebp - 4], 0x20
jmp 0x404dc7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x404e13
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x404d93
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00404624
invalid

Function at 0x404f44
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [edx]
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
invalid
invalid
dec esp

Function at 0x405510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x654], 0
push 0x40
inc eax
pop ecx
xor eax, eax
invalid
invalid
lodsd eax, dword [esi]
stc

Function at 0x405538
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404602
dec dword [eax]
mov al, byte [0x2ff845c6]
das
mov byte [ebp - 0x24], 0x34
invalid
movsd dword es:[edi], dword [esi]
xchg esp, eax
Function at 0x406320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x7aa5b], al
inc dword [eax]
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
pop eax
clc
invalid
dec dword [esi - 0x3a]
test dword [ecx - 8], ebx
invalid
call dword [ebp - 0x3a]
test dword [edx - 8], ebx
invalid
call dword [esi - 0x3a]
test dword [ebx - 8], ebx
invalid
invalid
jle 0x406319
test dword [eax + edi*8 - 1], ebx
jmp dword [ecx]
mov byte [ebp - 0x7a3], 0x20
invalid
test dword [esi - 8], ebx

Function at 0x40b198
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b1d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404374
jmp 0x40b1da
mov eax, ebx
mov edx, esi
call fcn.004042d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1e4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b205
mov al, byte [esp]
jmp 0x40b207
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c548
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c5ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408da4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5b3
lea eax, [ebp - 0xc]
call fcn.00404284
ret

Function at 0x423110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x486a24
cmp dword [edi], 0
jne 0x42318c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x486a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4845e4
mov ecx, 2
call fcn.004028fc
mov edx, 0x4230e8
lea eax, [esi + 5]
call fcn.00423108
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423108
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x423161
mov dword [0x486a20], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x424688
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42468e
ret
Function at 0x43ca74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x486be0], 0
je 0x43cbc3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x485490]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43cbc3
mov eax, dword [0x486be4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x486be0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43cb92
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x486be0]
call fcn.0041a278
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43cb8a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43cb8a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43cb8a
mov eax, dword [ebp - 0x14]
call fcn.004455d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43cb8a
push ebp
call fcn.0043ca30
pop ecx
test al, al
jne 0x43cb8a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43cb46
mov eax, dword [ebp - 0x14]
call fcn.00444164
dec eax
jle 0x43cb8a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004036f0
cmp byte [ebp - 1], 0
je 0x43cb8a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43cb8a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x486be4]
call fcn.0043c1f8
inc edi
dec ebx
jne 0x43cad9
mov eax, dword [0x486be4]
cmp dword [eax + 8], 0
jle 0x43cbaa
mov eax, dword [0x486be4]
call fcn.0043c288
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43cbc3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c898
pop ecx
test al, al
jne 0x43cbc3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401340
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
lea eax, [ebp - 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
mov dword [ebp - 0x44], 0x41caa0
mov dword [ebp - 0x40], 0x41d0cc
mov dword [ebp - 0x38], 0x4014f2
mov dword [ebp - 0x34], esp
call fcn.00418ac0
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 1
mov dword [ebp - 0x58], 0xffffffff
call fcn.004029a0
lea eax, [ebp - 0x18]
mov dword [esp], eax
mov dword [ebp - 0x58], 3
call fcn.00402410
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp + 0x10], 0x7b
mov dword [esp + 0xc], str.dwnl_tmp_
mov dword [esp + 4], str._s_s_d
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x58], 2
call fcn.00402bd0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4013ef
mov dword [esp], eax
call fcn.0041bd20
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], 3
mov dword [esp], eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4014b3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
test eax, eax
je 0x4014d0
cmp byte [eax], 0
je 0x4014d0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x58], 3
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00402d30
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_MoveFileA
mov eax, dword [ebp - 0xc]
sub esp, 8
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_MoveFileExA
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
je 0x401497
mov dword [esp], eax
call fcn.0041bd20
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4014a6
mov dword [esp], eax
call fcn.0041bd20
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00418a60
leave
ret
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
mov edx, dword [ebp + 8]
sub esp, 4
mov eax, dword [edx + 4]
test eax, eax
jne 0x40141b
nop
lea eax, [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x58], 3
call fcn.00402020
sub esp, 4
jmp 0x40144e
Function at 0x4021c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41caa0
mov dword [ebp - 0x30], 0x41d0fe
mov dword [ebp - 0x28], 0x4022bb
mov dword [ebp - 0x24], esp
call fcn.00418ac0
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x400
mov dword [ebp - 0x48], 0xffffffff
call fcn.004029a0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x48], 1
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
sub esp, 0x10
test eax, eax
jne 0x402290
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 4], 0x422b60
mov dword [esp], eax
call fcn.00402d30
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402277
mov dword [esp], eax
call fcn.0041bd20
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00418a60
mov eax, dword [ebp + 8]
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d30
jmp 0x402268

Function at 0x402410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41caa0
mov dword [ebp - 0x30], 0x41d10c
mov dword [ebp - 0x28], 0x40251e
mov dword [ebp - 0x24], esp
call fcn.00418ac0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x104
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
call fcn.004029a0
jmp 0x402492
cmp eax, 0x103
jbe 0x4024f3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], 1
add eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.004029a0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
test eax, eax
jne 0x402470
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004029a0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4024e1
mov dword [esp], eax
call fcn.0041bd20
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00418a60
mov eax, dword [ebp + 8]
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d30
jmp 0x4024d2
Function at 0x40b4f0
Capabilities:
Create http request
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41caa0
mov dword [ebp - 0x30], 0x41d258
mov dword [ebp - 0x28], 0x40b72a
mov dword [ebp - 0x24], esp
call fcn.00418ac0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
add edx, 0x10
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 0
mov dword [ebp - 0x50], edx
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [ebp - 0x48], 4
call fcn.004029a0
mov edx, dword [ebp + 8]
mov eax, edx
mov dword [edx + 0x18], 1
add eax, 0x18
mov dword [edx + 0x1c], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x48], 1
call fcn.004029a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], 3
add edx, 0x28
mov dword [ebp - 0x54], edx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040ae70
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.tiny_dl_nix
mov dword [ebp - 0x48], 2
call sub.WININET.DLL_InternetOpenA
mov edx, dword [ebp + 8]
sub esp, 0x14
test eax, eax
mov dword [edx], eax
je 0x40b6cc
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xbb8
mov dword [esp + 0xc], 4
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b707
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [edx]
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b6e7
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 6
mov eax, dword [edx]
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b6e0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov eax, dword [edx]
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b6f5
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00418a60
leave
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x40b693
call sub.KERNEL32.dll_GetLastError
lea esi, [esi]
jmp 0x40b661
call sub.KERNEL32.dll_GetLastError
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00418a60
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
nop
je 0x40b62b
mov dword [esp], 0x422d2f
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
jmp 0x40b62b
Function at 0x40f570
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
movzx esi, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, esi
cmp al, 1
sbb eax, eax
not eax
and eax, 5
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
cmp byte [ebx + 0x8d], 0
je 0x40f650
mov ecx, esi
test cl, cl
je 0x40f692
mov dword [esp + 4], 5
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 0xc]
sub esp, 8
mov eax, 0x46
mov ecx, dword [ebp - 0x14]
lea eax, [edx + eax]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x14], 1
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_MoveWindow
mov eax, esi
mov byte [ebx + 0x8f], al
sub esp, 0x18
mov dword [esp + 4], 1
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov dword [esp], eax
call sub.USER32.dll_SetFocus
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov ecx, esi
mov edx, dword [ebp - 0xc]
mov eax, 0xffffffba
sub esp, 8
test cl, cl
je 0x40f5e6
jmp 0x40f5e1
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x50]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
lea eax, [ebp - 0x18]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 0xc]
mov eax, 0xffffffba
sub esp, 8
jmp 0x40f5e6
Function at 0x412830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4127c0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebx + 0x2c], eax
sub esp, 0x18
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x417f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x417f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x417f96
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x41803b
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x418010
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004040c0
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x417f89
cmp eax, 0x40
je 0x417f89
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x417fc0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x417fc0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00417f20
lea esi, [esi]
lea edi, [edi]
Function at 0x4182b0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00418290
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4182e6
jmp 0x418336
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x4182e3
cmp dl, 0x20
je 0x4182e3
cmp dl, 0x22
je 0x418380
cmp dl, 9
mov eax, edx
je 0x418324
cmp dl, 0x20
je 0x418328
test dl, dl
jne 0x41831a
lea esi, [esi]
jmp 0x418336
cmp al, 0x20
je 0x418328
test al, al
je 0x418336
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x418312
cmp al, 0x20
jne 0x41839a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x418328
cmp al, 0x20
je 0x418328
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x418345
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404190
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x41838e
cmp al, 0x22
jne 0x418380
cmp al, 0x22
jne 0x418324
add ebx, 1
movzx eax, byte [ebx]
jmp 0x418324
cmp al, 9
je 0x418328
nop
jmp 0x418336

Function at 0x4186f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x418724
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x425064], eax
call fcn.00419630
test eax, eax
sete al
movzx eax, al
mov dword [0x41e04c], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x41e04c], eax
leave
ret
Function at 0x418840
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x41886c
mov dword [0x425060], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x418931
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x418950
cmp edi, 5
je 0x418955
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4188f6
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x418955
cmp eax, 8
jne 0x418950
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x41e04c]
test eax, eax
js 0x418944
test eax, eax
je 0x418860
mov eax, dword [0x425064]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x418866
call sub.KERNEL32.dll_GetLastError
jmp 0x418866
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x418881
call fcn.00418740
mov eax, dword [0x41e04c]
jmp 0x418903
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret