joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432d04
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00433bd3
cmp eax, 0xffffffff
je 0x432d31
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x432d31
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.00433063
test al, al
je 0x432d6a
cmp byte [0x4601b1], 0
jne 0x432d5f
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0043090a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041a301
pop ecx
test esi, esi
je 0x432d6a
mov al, 1
jmp 0x432d6c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x432d59
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432eb6
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44b565
call fcn.00425c48
mov edi, ecx
cmp byte [0x4601b1], 0
jne 0x432ef5
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0043090a
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0041a301
pop ecx
test esi, esi
je 0x432f03
mov al, 1
jmp 0x432f49
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x432eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x432f14
xor al, al
jmp 0x432f49
lea ecx, [ebp - 0x50]
call fcn.004337b4
lea ecx, [ebp - 0x28]
call fcn.0043159f
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004337d5
test al, al
je 0x432f3e
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0041a301
pop ecx
mov al, bl
call fcn.00425c22
ret

Function at 0x432f4f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4601b1], 0
jne 0x432f87
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043090a
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041a301
pop ecx
test esi, esi
pop esi
je 0x432f94
mov al, 1
jmp 0x432f96
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x432f81
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x433003
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4601b1], 0
jne 0x433039
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043090a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041a301
pop ecx
test esi, esi
pop esi
je 0x433044
mov al, 1
jmp 0x433046
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x433033
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x433063
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4601b1], 0
push esi
mov esi, edx
jne 0x43309b
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.0043090a
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041a301
pop ecx
test esi, esi
je 0x4330a7
mov al, 1
jmp 0x4330a9
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x433095
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43310c
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x44b5cb
call fcn.00425c48
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.00401407
cmp byte [0x4601b1], 0
jne 0x4331f8
mov ecx, ebx
call fcn.00401407
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x433150
xor al, al
jmp 0x4332c1
push edi
call fcn.0041a409
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4332b8
cmp edi, dword [ebp - 0x1c]
ja 0x4332b8
lea ecx, [ebp - 0x30]
call fcn.004314a8
mov byte [ebp - 4], 1
test edi, edi
je 0x4331f1
xor eax, eax
mov dword [ebp - 0x18], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x14], eax
cmp byte [esi + eax - 1], 0
jne 0x4331e2
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.004316b6
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.004308ac
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004014b2
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00401473
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0041a301
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x433198
mov edi, dword [ebp - 0x20]
cmp ebx, edi
jmp 0x4332ac
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x433149
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a409
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4332b8
cmp edi, dword [ebp - 0x20]
ja 0x4332b8
lea ecx, [ebp - 0x30]
call fcn.0043159f
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x4332aa
push 2
pop eax
mov dword [ebp - 0x18], eax
cmp word [esi + eax - 2], bx
jne 0x433299
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.004315c3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
call fcn.004014b2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.00401473
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x14]
inc ecx
add eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp ecx, edi
jb 0x433263
mov edx, dword [ebp - 0x1c]
cmp edx, edi
push dword [ebp - 0x30]
sete bl
call fcn.0041a301
pop ecx
push esi
call fcn.0041a301
mov al, bl
pop ecx
call fcn.00425c22
ret
Function at 0x433bd3
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4601b1], 0
jne 0x433c05
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043090a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0041a301
pop ecx
mov eax, esi
pop esi
jmp 0x433c16
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x434065
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43408f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43408f
xor al, al
jmp 0x4340a3
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43738d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
mov eax, ecx
push ebx
push ebp
push esi
push edi
cmp edx, 0xffffffff
je 0x43746f
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
and dword [esp + 0x34], 0
add eax, dword [ecx + edx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + edx*4 + 4]
sub eax, dword [ecx + edx*4]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
call fcn.004398ea
mov ebx, eax
test ebx, ebx
jmp 0x437465
lea ecx, [esp + 0x2c]
call fcn.004398d2
mov esi, dword [esp + 0x34]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x2c]
movzx ebp, al
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov byte [esp + 0x3c], al
lea ecx, [esi + ecx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
and ebp, 0xf
jbe 0x43743a
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
movzx eax, byte [esi + ebx]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or eax, ecx
inc esi
mov ecx, eax
cmp esi, ebp
jb 0x437417
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov al, byte [esp + 0x3c]
add esi, ebp
mov dword [esp + 0x34], esi
cmp ecx, 0x6f10701
jne 0x43744c
test edi, edi
je 0x43747b
test al, 0x20
je 0x437462
lea ecx, [esp + 0x2c]
call fcn.004398ea
and dword [esp + 0x24], 0
add dword [esp + 0x34], eax
sub ebx, 1
mov dword [esp + 0x14], ebx
jne 0x4373d2
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov al, 1
jmp 0x437471
Function at 0x43b9cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x43b9db
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43ba21
push edi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x43ba16
add dword [esi], edx
test eax, eax
jne 0x43ba21
call fcn.0043bee3
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x445620
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
cmp ecx, 8
je 0x445661
cmp ecx, 0x52
je 0x445650
cmp ecx, 0x76
jne 0x44565d
mov ecx, esi
call fcn.00444b85
jmp 0x445668
test al, al
je 0x44565d
mov ecx, esi
call fcn.00444d8b
jmp 0x445668
xor al, al
jmp 0x44566a
mov ecx, esi
call fcn.00444d20
mov al, 1
pop esi
ret 4
Function at 0x446ca7
Capabilities:
Get file system object information

Disassembly:
push 0x1c8
mov eax, 0x44d490
call fcn.00425c7c
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
call fcn.0043159f
and dword [ebp - 4], 0
cmp byte [edi], 0
je 0x446d2a
push dword [edi + 0xc]
lea ecx, [ebp - 0x1b0]
push dword [edi + 8]
call fcn.00446c21
push eax
mov edx, 0xdb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.00446c67
push eax
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 2
call fcn.00431658
push dword [ebp - 0x1bc]
call fcn.0041a301
pop ecx
mov byte [ebp - 4], 0
push dword [ebp - 0x1b0]
call fcn.0041a301
pop ecx
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1a0], eax
call fcn.00430b50
mov esi, eax
lea eax, [ebp - 0x1bc]
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [edi + 0x18]
call fcn.00403442
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b0]
mov eax, dword [edi + 0x18]
add eax, 2
lea eax, [eax + esi*2]
push eax
call fcn.00431706
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00446efa
lea eax, [ebp - 0x1b0]
mov ecx, ebx
push eax
call fcn.00446efa
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043162a
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 5
call fcn.00430cb8
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00430c39
lea ecx, [ebp - 0x19c]
call fcn.00430cb8
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00430c39
lea ecx, [ebp - 0x19c]
call fcn.00430cb8
cmp byte [edi + 1], 0
je 0x446e47
mov edx, 0x3f4
lea ecx, [ebp - 0x1d4]
call fcn.00434dde
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 6
call fcn.00430c39
mov byte [ebp - 4], 5
push dword [ebp - 0x1d4]
call fcn.0041a301
lea ecx, [ebp - 0x19c]
mov dword [esp], 0x454590
call fcn.00430bed
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x10]
call fcn.00434b8b
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00430bed
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
mov edx, dword [ebp - 0x19c]
mov ecx, eax
call fcn.00435560
mov edx, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x1d4]
call fcn.00401a0f
push pe_nt_image_headers32
push 0x160
lea ecx, [ebp - 0x190]
push ecx
push 0x80
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1d4]
mov esi, eax
call fcn.0041a301
pop ecx
test esi, esi
je 0x446ec2
push dword [ebp - 0x1a4]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 0x190]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x19c]
call fcn.0041a301
pop ecx
push dword [ebp - 0x1b0]
call fcn.0041a301
pop ecx
push dword [ebp - 0x1bc]
call fcn.0041a301
pop ecx
push dword [ebp - 0x1c8]
call fcn.0041a301
pop ecx
call fcn.00425c37
ret 0xc
Function at 0x447474
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x28
mov eax, dword [edx]
push esi
mov esi, ecx
cmp eax, dword [esi + 0xb4]
jne 0x4474a7
cmp dword [edx + 8], 0xffffff65
jne 0x4474a7
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x4474e3
sub eax, 0x14
je 0x4474b0
dec eax
sub eax, 1
je 0x4474e3
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x4474a7
push 2
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
jmp 0x4474a9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x4474a7
mov ecx, esi
call fcn.00447384
jmp 0x4474df
Function at 0x4496c7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x45e008]
xor eax, esp
mov dword [esp + 0x164], eax
test cl, cl
mov edx, 0x4011
mov eax, 0x4110
cmovne eax, edx
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x90
push 0x453854
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0041a2f0
mov esp, ebp
pop ebp
ret

Function at 0x44971d
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d0
mov eax, dword [0x45e008]
xor eax, esp
mov dword [esp + 0x2cc], eax
cmp byte [0x4601b1], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
jne 0x449780
mov edx, ecx
lea ecx, [esp + 0xc]
call fcn.0043090a
push 0x4010
push 0x160
lea ecx, [esp + 0x20]
or esi, 0x80
push ecx
push esi
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [esp + 0xc]
mov esi, eax
call fcn.0041a301
pop ecx
mov eax, esi
jmp 0x449794
push ecx
push ecx
lea eax, [esp + 0x20]
or esi, 0x80
push eax
mov edx, esi
call fcn.004496a9
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
xor ecx, esp
call fcn.0041a2f0
mov esp, ebp
pop ebp
ret 4

Function at 0x449e75
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x449ea1
xor al, al
jmp 0x449eb2
mov ecx, dword [ebp - 4]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40104c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004018e0
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.004017f0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00401800
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esp, ebp
pop ebp
ret
Function at 0x40162c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401700
add esp, 4
movsx edx, byte [ebp + eax - 0x10d]
cmp edx, 0x5c
jne 0x40167a
lea eax, [ebp - 0x10c]
push eax
call fcn.00401700
add esp, 4
mov byte [ebp + eax - 0x10d], 0
lea ecx, [ebp - 0x10c]
push ecx
push str._sUSER32.DLL
lea edx, [ebp - 0x210]
push edx
call fcn.00401bf0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
push str.GetShellWindow
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4016df
call dword [ebp - 0x214]
test eax, eax
je 0x4016d6
mov dword [ebp - 4], 1
jmp 0x4016dd
mov dword [ebp - 4], 0
jmp 0x4016e6
mov dword [ebp - 4], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403120
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x401aa6
test byte [esp + 8], 2
je 0x401aa6
mov dword [0x409c28], 0xd
mov dword [0x409c2c], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x401c60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4060f8
push 0x403bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x409c40], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x409c3c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x409c38], ecx
shr eax, 0x10
mov dword [0x409c34], eax
call fcn.00403a80
test eax, eax
jne 0x401cca
push 0x1c
call fcn.00401e30
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403880
call fcn.00402f30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40af14], eax
call fcn.00403720
mov dword [0x4099f8], eax
test eax, eax
je 0x401cfd
mov eax, dword [0x40af14]
test eax, eax
jne 0x401d07
push 0xffffffffffffffff
call fcn.00403010
add esp, 4
call fcn.00403470
call fcn.00403380
call fcn.00402fe0
mov esi, dword [0x40af14]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401de6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401d4e
test al, al
je 0x401d4e
and eax, 0xff
push eax
call fcn.00403320
add esp, 4
test eax, eax
je 0x401d28
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401d28
cmp byte [esi], 0x22
jne 0x401d57
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401d67
cmp al, 0x20
ja 0x401d67
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401d57
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401d88
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401d8d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403010
jmp 0x401dcb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401d57
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401de6

Function at 0x401e30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x409a00], 1
jne 0x401e3e
call fcn.00403c90
mov eax, dword [esp + 4]
push eax
call fcn.00403cd0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403050
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x409c70]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40306f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x409c6c], 1
mov byte [0x409c68], bl
jne 0x4030c9
mov ecx, dword [0x40af08]
test ecx, ecx
je 0x4030b7
mov esi, dword [0x40af04]
sub esi, 4
cmp esi, ecx
jb 0x4030b7
mov eax, dword [esi]
test eax, eax
je 0x4030b0
call eax
mov ecx, dword [0x40af08]
sub esi, 4
cmp esi, ecx
jae 0x4030a2
push 0x40701c
push 0x407014
call fcn.00403100
add esp, 8
push 0x407024
push 0x407020
call fcn.00403100
add esp, 8
test ebx, ebx
jne 0x4030f0
push ebp
mov dword [0x409c70], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x403720
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x409d80]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403762
call edi
mov esi, eax
test esi, esi
je 0x40374c
mov eax, 1
jmp 0x40375d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40386f
mov eax, 2
mov dword [0x409d80], eax
cmp eax, 1
jne 0x403802
test esi, esi
jne 0x40377b
call edi
mov esi, eax
test esi, esi
je 0x40386f
cmp word [esi], 0
mov eax, esi
je 0x403795
add eax, 2
cmp word [eax], 0
jne 0x403783
add eax, 2
cmp word [eax], 0
jne 0x403783
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4037f4
push edi
call fcn.00404960
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4037f4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4037e6
push ebx
call fcn.00404910
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40386f
test ebx, ebx
jne 0x403813
call ebp
mov ebx, eax
test ebx, ebx
je 0x40386f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40382b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40381b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40381b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404960
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40384d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret