joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018b6
Capabilities:
Create pipe

Disassembly:
jmp 0x4416c0
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
xor eax, eax
or edi, 0xffffffff
cmp dword [eax*8 + 0x4a94c0], edi
je 0x44174a
add eax, 1
cmp eax, 0x40
jl 0x4416f3
call fcn.0044baf1
mov dword [eax], 0x18
mov eax, edi
mov esi, dword [esp + 0x24]
mov dword [esi], eax
xor eax, eax
lea esp, [esp]
cmp dword [eax*8 + 0x4a94c0], edi
je 0x44175e
add eax, 1
cmp eax, 0x40
jl 0x441720
call fcn.0044baf1
mov dword [eax], 0x18
mov eax, edi
pop edi
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
mov dword [eax*8 + 0x4a94c0], ecx
mov dword [eax*8 + 0x4a94c4], ebx
jmp 0x441711
mov edx, dword [esp + 0x10]
mov dword [eax*8 + 0x4a94c4], ebx
mov dword [eax*8 + 0x4a94c0], edx
pop edi
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x40196a
Capabilities:
Check if file exists

Disassembly:
jmp 0x441210
sub esp, 0x20c
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
jne 0x441254
call fcn.0044baf1
mov dword [eax], 2
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044c66d
add esp, 0x20c
ret
push ebx
push ebp
push edi
push esi
push 0x47cde4
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.0046fe5d
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], 1
jne 0x441313
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne case.default.0x4412ab
test byte [esp + 0x224], 1
je case.default.0x4412ab
cmp edi, 3
ja case.default.0x4412ab
jmp dword [edi*4 + 0x44137c]
push esi
push str._s.exe
jmp 0x4412e4
push esi
push str._s.cmd
push 0x200
lea eax, [esp + 0x24]
push eax
jmp 0x4412ee
push esi
push str._s.bat
push 0x200
lea ecx, [esp + 0x24]
push ecx
jmp 0x4412ee
push esi
push str._s.com
push 0x200
lea edx, [esp + 0x24]
push edx
call fcn.0046fe5d
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call ebp
add dword [esp + 0x10], 1
mov ebx, eax
add edi, 1
cmp ebx, 0xffffffff
je 0x441291
jmp 0x441313
cmp ebx, 0xffffffff
je 0x441330
mov al, byte [esp + 0x224]
test al, 2
je 0x441323
test bl, 1
jne 0x441330
test al, 1
je 0x441360
test al, 9
je 0x441340
test bl, 0x10
je 0x441345
call fcn.0044baf1
mov dword [eax], 0xd
or eax, 0xffffffff
jmp 0x441362
test bl, 0x10
jne 0x441360
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x441360
cmp dword [esp + 0x10], 4
jg 0x441330
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0044c66d
add esp, 0x20c
ret
Function at 0x4019fb
Capabilities:
Terminate process

Disassembly:
jmp 0x443230
mov eax, dword [esp + 4]
test eax, eax
je 0x443260
cmp eax, 1
je 0x443260
cmp eax, 2
jne 0x443254
mov eax, dword [0x4a94b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
ret
add eax, 1
mov dword [esp + 4], eax
jmp fcn.0040143d
mov ecx, dword [0x4a94b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
ret

Function at 0x401a05
Capabilities:
Get common file path

Disassembly:
jmp 0x443580
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x443592
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x44359c
mov esi, 0x489fb8
mov edi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, edi
jbe 0x4435b8
call fcn.0044baf1
pop edi
mov dword [eax], 0x22
xor eax, eax
pop esi
ret
push 0x4a60ec
push 0x4aa0a8
call fcn.00401311
add esp, 8
cmp eax, 0x4a82cc
je 0x4435da
push esi
call fcn.004017d0
add esp, 4
push esi
call fcn.00401a64
add esp, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x401a6e
Capabilities:
Terminate process

Disassembly:
jmp 0x445280
jmp 0x44b1a0
sub esp, 0x1c
push esi
mov esi, dword [0x48b11c]
cmp esi, 0xffffffff
jne 0x44529a
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4452e1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
push 0x800
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x4452e1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push ecx
push 0x800
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
xor eax, eax
pop esi
add esp, 0x1c
ret
cmp dword [esp + 4], 0
jle 0x44b1ac
jmp 0x4012a8
ret
Function at 0x401a73
Capabilities:
Read file on windows

Disassembly:
jmp 0x440b60
push ecx
mov eax, dword [esp + 8]
push edi
push eax
mov dword [esp + 8], 0
call fcn.00401a41
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x440b83
xor eax, eax
pop edi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x440ba5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
call fcn.00401db6
add esp, 0xc
pop edi
pop ecx
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x440bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jbe 0x440bf8
cmp eax, 0x3e5
jne 0x440c09
mov eax, dword [esp + 0x10]
test eax, eax
je 0x440c16
cmp byte [eax + esi - 1], 0xd
jne 0x440bee
sub eax, 1
mov dword [esp + 0x10], eax
test eax, eax
je 0x440bb6
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
je 0x440c30
cmp eax, 5
jb 0x440c09
cmp eax, 6
jbe 0x440c1c
cmp eax, 0x26
je 0x440c30
call fcn.0044baf1
mov dword [eax], 9
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
call fcn.0044baf1
pop esi
pop ebp
pop ebx
mov dword [eax], 9
or eax, 0xffffffff
pop edi
pop ecx
ret
call fcn.0044baf1
pop esi
pop ebp
pop ebx
mov dword [eax], 0
xor eax, eax
pop edi
pop ecx
ret

Function at 0x401ac8
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x445d20
sub esp, 0x18
push edi
mov edi, dword [0x48b11c]
cmp edi, 0xffffffff
je 0x445dba
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x445dba
cmp dword [esp + 0x24], 0
push esi
mov esi, dword [esp + 0x24]
je 0x445d7c
movsx ecx, word [esp + 0xe]
movsx edx, word [esp + 0x18]
add ecx, esi
sub edx, 1
cmp ecx, edx
jle 0x445d75
test esi, esi
jle 0x445d75
push esi
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00401b22
add esp, 0xc
add word [esp + 0xe], si
jmp 0x445d9d
movsx ecx, word [esp + 0x16]
cmp esi, ecx
jle 0x445d98
test esi, esi
jle 0x445d98
push esi
lea edx, [esp + 0xc]
push edx
push edi
call fcn.00401b3b
add esp, 0xc
mov word [esp + 0xc], si
cmp word [esp + 0xc], 0
pop esi
jl 0x445dba
cmp word [esp + 0xa], 0
jl 0x445dba
mov eax, dword [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
add esp, 0x18
ret

Function at 0x401ae6
Capabilities:
Get common file path

Disassembly:
jmp 0x447630
sub esp, 0x108
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push esi
mov byte [esp + 0xe], 0x2f
call fcn.00451b20
mov ecx, dword [esp + 0x110]
add esp, 8
neg eax
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.0044c66d
add esp, 0x108
ret
Function at 0x401be5
Capabilities:
Create pipe
Create thread

Disassembly:
jmp 0x44a6b0
sub esp, 0x18
cmp dword [0x4aa00c], 0
je 0x44a6c3
or eax, 0xffffffff
add esp, 0x18
ret
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x44a6fb
call fcn.0044d22b
mov ecx, dword [esp]
mov edx, dword [0x4a9a9c]
lea eax, [esp + 8]
push eax
push 0
push ecx
push 0x4013a7
push edx
push 0
mov dword [0x4aa00c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48b0d8], eax
mov eax, dword [esp + 4]
add esp, 0x18
ret

Function at 0x401c5d
Capabilities:
Terminate process

Disassembly:
jmp 0x442e30
push esi
xor esi, esi
call fcn.0044baf1
mov dword [eax], 1
cmp dword [0x48b140], 1
mov eax, dword [esp + 8]
je 0x442e54
test eax, eax
jge 0x442e64
cmp eax, 0xffffffff
jmp 0x442e5b
test eax, eax
jle 0x442e64
cmp eax, 1
jne 0x442e62
or eax, 0xffffffff
pop esi
ret
neg eax
push ebx
mov ebx, dword [esp + 0x10]
cmp ebx, 7
ja case.0x442e72.4
jmp dword [ebx*4 + 0x442f0c]
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x442e9c
call fcn.0044baf1
mov dword [eax], 3
or esi, 0xffffffff
cmp ebx, 7
jne 0x442eb4
push 0xc000013a
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x442eb4
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, esi
pop esi
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne case.0x442e72.4
or esi, 0xffffffff
pop ebx
mov eax, esi
pop esi
ret
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne case.0x442e72.4
or esi, 0xffffffff
pop ebx
mov eax, esi
pop esi
ret
push eax
call fcn.0040132a
add esp, 4
test eax, eax
jge case.0x442e72.4
call fcn.0044baf1
mov dword [eax], 3
or esi, 0xffffffff
pop ebx
mov eax, esi
pop esi
ret
Function at 0x401d89
Capabilities:
Terminate process

Disassembly:
jmp 0x403be0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [0x4a600c]
test edi, edi
mov ebx, eax
je 0x403c46
push ebp
push esi
mov ebp, 0x20000
jmp 0x403c00
mov esi, edi
test dword [esi + 0xc], ebp
je 0x403c27
mov eax, dword [esi + 0x20]
cmp eax, dword [0x49a378]
je 0x403c27
cmp dword [esi + 0x18], ebx
jne 0x403c27
push 3
push eax
call fcn.00401c5d
add esp, 8
cmp eax, 0xffffffff
jne 0x403c30
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x403c02
jmp 0x403c3e
mov eax, dword [esi + 0x20]
push 0x10
push eax
call fcn.00401c5d
add esp, 8
mov edi, dword [edi]
test edi, edi
jne 0x403c00
pop esi
pop ebp
call fcn.004018bb
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401dd4
Capabilities:
Create thread

Disassembly:
jmp 0x44aab0
push ecx
mov ecx, dword [0x4a9a9c]
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x4014dd
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x44aada
call fcn.0044d22b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x40d980
Capabilities:
Parse credit card information

Disassembly:
test edx, edx
jne 0x40d98b
shr eax, 4
and eax, 1
ret
push esi
movzx esi, word [edx]
test si, si
je 0x40da81
movzx ecx, word [edx + 2]
test cx, cx
jne 0x40d9fa
test al, 1
je 0x40d9b1
cmp si, 0x2b
je 0x40d9f3
cmp si, 0x2d
je 0x40d9f3
test al, 2
je 0x40d9c7
cmp si, 0x2a
je 0x40d9f3
cmp si, 0x2f
je 0x40d9f3
cmp si, 0x25
je 0x40d9f3
test al, 0x10
je 0x40da63
cmp si, 0x28
je 0x40d9f3
cmp si, 0x29
je 0x40d9f3
cmp si, 0x21
je 0x40d9f3
cmp si, 0x7e
je 0x40d9f3
cmp si, 0x5e
je 0x40d9f3
cmp si, 0x22
jne 0x40da63
mov eax, 1
pop esi
ret
cmp word [edx + 4], 0
jne 0x40da63
test al, 0x10
je 0x40da27
cmp si, 0x7c
jne 0x40da11
cmp cx, 0x26
je 0x40d9f3
cmp si, 0x3c
jne 0x40da1c
cmp cx, si
je 0x40d9f3
cmp si, 0x3e
jne 0x40da27
cmp cx, si
je 0x40d9f3
test al, 4
je 0x40da63
cmp si, 0x3d
jne 0x40da43
cmp cx, si
je 0x40d9f3
cmp cx, 0x7e
jne 0x40da63
mov eax, 7
pop esi
ret
cmp si, 0x21
jne 0x40da63
cmp cx, 0x3d
jne 0x40da56
mov eax, 6
pop esi
ret
cmp cx, 0x7e
jne 0x40da63
mov eax, 8
pop esi
ret
test al, 8
je 0x40da81
cmp si, 0x3c
jne 0x40da74
mov eax, 4
pop esi
ret
cmp si, 0x3e
jne 0x40da81
mov eax, 2
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x426610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esp + 0x14], 1
push esi
mov dword [esp + 8], ebx
jne 0x42663d
mov esi, dword [esp + 0x10]
push eax
push esi
mov dword [esi + 4], ebx
call fcn.0040156e
push esi
call fcn.00401d75
add esp, 0xc
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], ebx
push edi
jne 0x426688
cmp dword [esp + 0x24], ebx
jne 0x426688
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
mov edi, eax
movzx eax, word [esi]
test ax, ax
je 0x4267b2
mov edi, edi
mov dx, word [edi]
xor dx, ax
test dx, 0x77ff
jne 0x4267b2
movzx eax, word [esi + 2]
add esi, 2
add ebx, 1
add edi, 2
test ax, ax
jne 0x426660
jmp 0x4267b2
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
cmp word [esi], bx
mov edi, eax
je 0x4267b2
push ebp
lea ebx, [ebx]
mov dx, word [esi]
mov ax, word [edi]
and dx, 0x77ff
movzx ebx, dx
and ax, 0x77ff
mov ecx, ebx
movzx eax, ax
and ecx, 0xffff8000
test cx, cx
mov dword [esp + 0x20], eax
jne 0x426714
test bl, bl
jns 0x4266e4
push 0x4a60ec
push 0x4a8544
call fcn.00401320
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x426714
movzx edx, bl
movzx ecx, word [edx*2 + 0x4a6590]
and ecx, 0x400
je 0x426714
test bl, bl
jns 0x426704
cmp dword [0x49a370], 0
jne 0x426714
movsx ecx, bx
movzx dx, byte [ecx + 0x4a7390]
movzx ebp, dx
jmp 0x426717
movzx ebp, bx
mov ecx, eax
and ecx, 0xffff8000
test cx, cx
jne 0x426772
test al, al
jns 0x426742
push 0x4a60ec
push 0x4a8544
call fcn.00401320
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
jne 0x426772
movzx edx, al
movzx ecx, word [edx*2 + 0x4a6590]
and ecx, 0x400
je 0x426772
test al, al
jns 0x426762
cmp dword [0x49a370], 0
jne 0x426772
movsx ecx, ax
movzx dx, byte [ecx + 0x4a7390]
movzx ecx, dx
jmp 0x426775
movzx ecx, ax
cmp bx, ax
je 0x426798
cmp bp, ax
je 0x426792
cmp bx, 0x5f
jne 0x42678b
cmp ax, 0x2d
je 0x426792
cmp bp, cx
jne 0x4267ad
jmp 0x426798
mov ax, word [edi]
mov word [esi], ax
add dword [esp + 0x10], 1
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x4266a0
mov ebx, dword [esp + 0x10]
pop ebp
mov eax, dword [esp + 0x14]
mov word [esi], 0
sub esi, dword [eax]
sar esi, 1
mov dword [eax + 4], esi
cmp dword [0x4a7b78], 0
jne 0x4267fa
push 0x4a60ec
push 0x4a8ba8
call fcn.00401320
add esp, 8
test eax, eax
jne 0x4267fa
cmp dword [esp + 0x20], eax
je 0x4267ec
cmp word [edi], ax
jne 0x4267fa
cmp ebx, dword [esp + 0x18]
jne 0x4267fa
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x441210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x441210
sub esp, 0x20c
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
jne 0x441254
call fcn.0044baf1
mov dword [eax], 2
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044c66d
add esp, 0x20c
ret
push ebx
push ebp
push edi
push esi
push 0x47cde4
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.0046fe5d
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], 1
jne 0x441313
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne case.default.0x4412ab
test byte [esp + 0x224], 1
je case.default.0x4412ab
cmp edi, 3
ja case.default.0x4412ab
jmp dword [edi*4 + 0x44137c]
push esi
push str._s.exe
jmp 0x4412e4
push esi
push str._s.cmd
push 0x200
lea eax, [esp + 0x24]
push eax
jmp 0x4412ee
push esi
push str._s.bat
push 0x200
lea ecx, [esp + 0x24]
push ecx
jmp 0x4412ee
push esi
push str._s.com
push 0x200
lea edx, [esp + 0x24]
push edx
call fcn.0046fe5d
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call ebp
add dword [esp + 0x10], 1
mov ebx, eax
add edi, 1
cmp ebx, 0xffffffff
je 0x441291
jmp 0x441313
cmp ebx, 0xffffffff
je 0x441330
mov al, byte [esp + 0x224]
test al, 2
je 0x441323
test bl, 1
jne 0x441330
test al, 1
je 0x441360
test al, 9
je 0x441340
test bl, 0x10
je 0x441345
call fcn.0044baf1
mov dword [eax], 0xd
or eax, 0xffffffff
jmp 0x441362
test bl, 0x10
jne 0x441360
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x441360
cmp dword [esp + 0x10], 4
jg 0x441330
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0044c66d
add esp, 0x20c
ret
Function at 0x4424d0
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x4424d0
sub esp, 0x144
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
xor ebx, ebx
push 0x13c
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.0044c680
add esp, 0xc
cmp ebp, ebx
jne 0x442523
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044c66d
add esp, 0x144
ret
mov eax, dword [ebp + 0xc]
test al, 2
push esi
push edi
je 0x44253e
mov edi, ebp
call fcn.00441f20
test eax, eax
jge 0x4425a9
xor eax, eax
jmp 0x44260e
test al, 1
je 0x4425a9
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x118]
mov eax, dword [section..data]
mov dword [ebp + 8], ecx
mov dword [ebp], esi
mov dword [edx], eax
add eax, 1
mov dword [section..data], eax
mov eax, dword [ebp + 0x118]
mov dword [eax + 4], ebx
mov ecx, dword [ebp + 0x118]
mov word [ecx + 8], bx
mov edi, dword [ebp + 0x118]
add edi, 0xa
mov ecx, 0x41
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp + 0xc], 0xfffffffe
jmp 0x442608
test byte [ebp + 0xc], 2
jne 0x4425c6
mov eax, dword [ebp]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x442537
mov ecx, dword [ebp + 0x118]
mov eax, dword [section..data]
mov dword [ecx], eax
mov edx, dword [ebp + 0x118]
add eax, 1
mov dword [edx + 4], ebx
mov dword [section..data], eax
mov eax, dword [ebp + 0x118]
mov word [eax + 8], bx
test byte [ebp + 0xc], 2
jne 0x442608
mov edi, dword [ebp + 0x118]
add edi, 0xa
mov ecx, 0x41
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x118]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c66d
add esp, 0x144
ret

Function at 0x442c70
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x486db0
push 0x4502a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x488180]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
push 0x489f88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401b68
add esp, 8
mov edx, dword [0x489fa4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 4], esi
push 0xf
call fcn.0040143d
add esp, 4
jmp 0x442cf3
mov dword [ebp - 4], 0xfffffffe
mov edx, dword [0x489fa4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x489f88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443610
Capabilities:
Get system information on windows
Terminate process

Disassembly:
jmp 0x443610
sub esp, 0x1bc
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x1b8], eax
push 0x94
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0044c680
xor eax, eax
push str.Microsoft
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00401415
push eax
push 0x4a8390
call fcn.00401a28
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4436a8
push 0x10
push str.tcsh
push str.GetVersionEx_failed_in_getmachine
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x44371b
cmp byte [esp + 0x3c], 0
mov esi, str.WindowsNT
lea eax, [esp + 0x3c]
jne 0x4436d2
mov eax, 0x47cce9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push edx
push str.Windows_NT
push str._s__d._d_Build__d___s_
lea eax, [esp + 0xd4]
push 0x100
push eax
call fcn.0046fe5d
lea ecx, [esp + 0xdc]
push ecx
call fcn.00401415
push eax
push 0x4a837c
call fcn.00401a28
add esp, 0x2c
jmp 0x443782
cmp eax, 1
jne 0x443769
movzx edx, word [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push str.Win9x__d._d:_d
lea edx, [esp + 0xcc]
push 0x100
push edx
mov esi, str.Windows9x
call fcn.0046fe5d
lea eax, [esp + 0xd4]
push eax
call fcn.00401415
push eax
push 0x4a837c
call fcn.00401a28
add esp, 0x24
jmp 0x443782
push 0x10
push str.tcsh
push str.Unknown_platform
push 0
mov esi, str.WindowsWhoKnows
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00401415
push eax
push 0x4a83b4
call fcn.00401a28
movzx eax, word [esp + 0x10]
add esp, 0xc
cmp eax, 9
pop esi
ja case.0x4437a5.4
jmp dword [eax*4 + 0x443874]
mov ax, word [esp + 0x20]
cmp ax, 3
jb 0x4437bd
cmp ax, 9
jbe 0x4437c6
mov ax, 3
mov word [esp + 0x20], ax
movzx ecx, ax
push ecx
push str.i_d86
lea edx, [esp + 0xc0]
push 0x100
push edx
call fcn.0046fe5d
add esp, 0x10
jmp 0x443843
push str.Alpha
push 0x100
lea eax, [esp + 0xc0]
push eax
jmp 0x44383b
push str.Mips
jmp 0x44382e
push 0x4834c0
push 0x100
lea edx, [esp + 0xc0]
push edx
jmp 0x44383b
push str.AMD64
push 0x100
lea eax, [esp + 0xc0]
push eax
jmp 0x44383b
push str.Unknown
push 0x100
lea ecx, [esp + 0xc0]
push ecx
call fcn.0046fe5d
add esp, 0xc
lea edx, [esp + 0xb8]
push edx
call fcn.00401415
push eax
push 0x4a83a0
call fcn.00401a28
mov ecx, dword [esp + 0x1c4]
add esp, 0xc
xor ecx, esp
call fcn.0044c66d
add esp, 0x1bc
ret
Function at 0x447030
Capabilities:
Query environment variable

Disassembly:
jmp 0x447030
sub esp, 0x404
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
push 0x400
lea eax, [esp + 8]
push eax
push str.TCSHSUBSTHB
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [esp + 4], 0
lea edi, [esp + 4]
je 0x4470ae
push ebx
push ebp
push esi
mov ebx, edi
mov ebp, 0x48a400
cmp byte [edi], 0x3b
jne 0x4470a3
mov eax, edi
sub eax, ebx
je 0x4470a3
lea esi, [eax + 1]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push esi
push eax
mov dword [ebp], eax
call fcn.0046fa7a
add ebp, 4
lea ebx, [edi + 1]
add edi, 1
cmp byte [edi], 0
jne 0x447074
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
call fcn.0044c66d
add esp, 0x404
ret

Function at 0x447630
Capabilities:
Get common file path

Disassembly:
jmp 0x447630
sub esp, 0x108
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push esi
mov byte [esp + 0xe], 0x2f
call fcn.00451b20
mov ecx, dword [esp + 0x110]
add esp, 8
neg eax
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.0044c66d
add esp, 0x108
ret