joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071b20
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10071c3d
push eax
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
je 0x10071c3d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100a4aa1
mov esi, eax
test esi, esi
je 0x10071c3d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.DLL_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x10071c3d
mov ecx, esi
call fcn.10071a90
cmp edi, eax
jge 0x10071c3d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x10071bc3
mov dword [esp + 0x34], 1
jmp 0x10071c1e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x10071c3d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.DLL_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.10071090
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x10077b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b2806
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.100a1f17
mov eax, dword [0x100de16c]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x100c2594
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x10077c04
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call fcn.100a2dcf
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10085630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x100857ed
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x10085766
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x10085766
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x1008574d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x1008574d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.100868a0
mov ebp, eax
test ebp, ebp
je 0x10085745
push ebp
mov ecx, esi
call fcn.10087dc0
test eax, eax
je 0x10085745
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x10085745
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10085706
xor eax, eax
jmp 0x1008570e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.10088760
inc ebx
xor ebp, ebp
jmp 0x10085697
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x10085670
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.10086bb0
test eax, eax
pop ebx
je 0x100857ed
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.100868a0
mov edi, eax
cmp edi, ebp
je 0x100857ed
push edi
mov ecx, esi
call fcn.10087dc0
test eax, eax
je 0x100857ed
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.10086df0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.10086e60
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.10088760
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x1008e450
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b3d71
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x1008e48d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.100aaefb
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.100aa243
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.100871b0
lea ecx, [esp + 8]
call fcn.100ab16a
lea ecx, [esp + 0x30]
call fcn.100aa3a7
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.100aa243
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.10087620
lea ecx, [esp + 0x74]
call fcn.100aa3a7
lea ecx, [esp + 8]
call fcn.100ab16b
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.DLL_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.10084db0
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.100870c0
mov ecx, esi
call fcn.10087d00
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.100870c0
mov ecx, esi
call fcn.10087d00
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.100870c0
mov ecx, esi
call fcn.10087d00
mov ecx, dword [edi + 0x5c]
call fcn.10084590
push eax
mov ecx, esi
call fcn.100845a0
mov ecx, dword [edi + 0x5c]
call fcn.10084b50
push eax
mov ecx, esi
call fcn.10084af0
mov ecx, dword [edi + 0x5c]
call fcn.10084c70
push eax
mov ecx, esi
call fcn.10084c20
mov ecx, dword [edi + 0x5c]
push 0
call fcn.10083e70
push eax
mov ecx, esi
call fcn.10083e80
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.DLL_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.100aa31f
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.100aa31f
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.100aaf84
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x1008fcd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100b3f97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x100c3a44
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.100a1329
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.100a1329
mov edi, dword [sym.imp.USER32.DLL_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x100c3a30
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.DLL_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.DLL_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.100907f0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x10090840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b4070
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.100ad062
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x10090873
xor al, al
jmp 0x1009099f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, ebp
jne 0x10090895
xor al, al
jmp 0x1009099f
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebp
jne 0x100908a8
xor al, al
jmp 0x1009099f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x100908bc
xor al, al
jmp 0x1009099f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.100a13d9
test eax, eax
jne 0x100908f0
xor al, al
jmp 0x1009099f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.DLL_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x100c3a64
mov dword [esp + 0x20], ebp
call fcn.100ad062
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.DLL_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.100a9edf
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.DLL_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.100a9f36
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x10090984
mov ax, word [ebx]
test ax, ax
je 0x10090976
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.100909c0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x1009095a
mov dword [esp + 0x10], 0x100c3a58
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.100a9f36
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x10090f00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.100ab5a8
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x10090f46
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.10092a98
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x100de164
push ecx
call fcn.100940e2
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.DLL_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x100a548b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100a54c3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100a34e9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100a34c1
jmp 0x100a54cf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100a6c89
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100a6ccb
call fcn.100ad062
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x100a6ccb
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x100a6cc2
xor eax, eax
jmp 0x100a6cd3
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100a6cd9
pop edi
pop esi
pop ebx
ret 4

Function at 0x1012971c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.1012979b
jae 0x10129728
xor ecx, ecx
call fcn.1012979b
jae 0x10129752
xor eax, eax
call fcn.1012979b
jae 0x10129763
mov al, 0x10
call fcn.1012979b
adc al, al
jae 0x10129744
jne 0x10129790
stosb byte es:[edi], al
jmp 0x10129729
call fcn.101297a7
dec ecx
loop 0x1012976f
mov eax, ebp
call fcn.101297a5
jmp 0x10129791
lodsb al, byte [esi]
shr eax, 1
je 0x101297b7
adc ecx, 2
mov ebp, eax
jmp 0x10129791
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.101297a5
cmp eax, 0x7d00
jae 0x1012978f
cmp eax, 0x500
jae 0x10129790
cmp eax, 0x7f
ja 0x10129791
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10129729
pop ebp
ret 8
Function at 0x401134
Capabilities:
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
nop
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
cmp ecx, 0
je 0x401152
jmp 0x40115c
mov eax, str.Hello_Windows_
jmp 0x40115f
mov eax, dword [ebp + 0x10]
mov dword [0x402514], eax
mov eax, 0x28
push eax
mov eax, 0
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, section..data
mov dword [ebp - 0x20], eax
mov eax, section..text
mov dword [ebp - 0x40], eax
mov eax, 0xb
mov dword [ebp - 0x44], eax
mov eax, 4
push eax
call sub.gdi32.dll_GetStockObject
mov dword [ebp - 0x28], eax
mov eax, 0x7f00
push eax
mov eax, 0
push eax
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x30], eax
mov eax, 0x7f00
push eax
mov eax, 0
push eax
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_RegisterClassA
movzx eax, ax
mov ecx, 0
cmp ecx, eax
jne 0x4011f4
mov eax, 0
jmp 0x401361
mov eax, 0
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0xf0
push eax
mov eax, 0x168
push eax
mov eax, 0x80000000
push eax
mov eax, 0x80000000
push eax
mov eax, 0x10cf0000
push eax
mov eax, str.HELLO_WIN
push eax
mov eax, section..data
push eax
mov eax, 0
push eax
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x40125c
mov eax, 0
jmp 0x401361
mov eax, 0
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.user32.dll_ShowWindow
mov eax, 0
push eax
mov eax, pe_nt_image_headers32
push eax
mov eax, 2
push eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0xc0000000
push eax
mov eax, 0x402023
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x5c], eax
mov eax, 0x17d78720
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, 4
push eax
mov eax, 0xff
push eax
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0
mov dword [ebp - 0x64], eax
mov eax, 0
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, 4
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x58]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0x50]
cmp eax, 4
jne 0x401321
call fcn.0040141f
mov eax, dword [ebp - 0x48]
push eax
call sub.user32.dll_DestroyWindow
jmp 0x40126b
leave
ret 0x10
Function at 0x4014ec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
nop
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [ebp - 0x18]
and eax, 1
cmp eax, 0
je 0x40151a
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x401522
mov eax, 0xa
mov dword [ebp - 0x50], eax
mov eax, 0
mov dword [ebp - 0x48], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x401551
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.msvcrt.dll_strstr
add esp, 8
mov dword [ebp - 0x48], eax
mov eax, 0
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
jne 0x401577
mov eax, 0x402054
push eax
call sub.msvcrt.dll__strdup
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x4015a0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4015a0
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4015a0
mov eax, dword [ebp - 0x48]
add eax, 0xffffffff
mov dword [ebp - 0x48], eax
mov eax, 0x30000
push eax
mov eax, 0x10000
push eax
call sub.msvcrt.dll__controlfp
add esp, 8
mov eax, 0
push eax
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
mov ecx, 0
push ecx
push eax
call fcn.00401134
leave
ret
Function at 0x402cfe
Capabilities:
Delete directory
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.004094b0
cmp dword [0x2a9c018], 0x594
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
push edi
mov dword [ebp - 8], eax
jne 0x402d3b
push 0x402510
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x402564
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x427c78]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x427c7c]
xor esi, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402cf7
mov eax, dword [0x427c80]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x427c84]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2a9c018], 0xc
mov dword [ebp - 4], eax
jne 0x402dc0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2a9c018]
cmp eax, 0xfa9
jne 0x402ddc
mov dword [0x2a9b5b4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x402de9
mov dword [0x2a9af68], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x2a9b5b0], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a9c018], 0x213
mov dword [ebp - 0x14], edx
jne 0x402e32
push esi
push 0x402570
push esi
push 0x402620
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2a9c018], 0xc
jne 0x402e6f
push esi
lea eax, [ebp - 0x82c]
push eax
push 0x4026f8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x102c]
push eax
push 0x402750
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [edi + edx]
xor dword [ebp - 4], eax
mov edi, edx
shr edi, cl
add edi, dword [ebp - 0x24]
cmp dword [0x2a9c018], 0x121
jne 0x402ead
push 0x4026c4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edx, dword [ebp - 8]
xor dword [ebp - 4], edi
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.00402cf0
dec dword [ebp - 0x18]
jne 0x402d76
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
leave
ret 4
Function at 0x402ed3
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004094b0
mov eax, dword [0x2a9c018]
mov ecx, dword [0x2a9af6c]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402fc8
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a9c018], 0x959
jne 0x402fb6
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402778
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
push 0x402828
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x4028b0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402900
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x402804
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x402968
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00402cfe
add edi, 8
dec ebx
jne 0x402eff
pop edi
pop ebx
pop esi
leave
ret