joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x461258
mov dword [esp + 0x30], 0
call fcn.0042d630
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov edx, dword [esi + 0x5c]
push 1
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x46125c
mov dword [esp + 0x30], 1
call fcn.0042d630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov ecx, dword [esi + 0x5c]
push 2
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x461260
mov dword [esp + 0x30], 2
call fcn.0042d630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov eax, dword [esi + 0x5c]
push 3
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00427845
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
lea edx, [esp + 0x1c]
push edx
push ecx
push str._d__d__d
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 3
call fcn.0042d927
push eax
call fcn.004186a1
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp eax, 0x3e8
jge 0x40d971
add eax, 0x7d0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
push 0
push 0
push 0
push edx
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00426c3b
mov edx, dword [esp + 0x1c]
push 4
mov dword [0x461264], edx
mov eax, dword [esi + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00427845
mov eax, dword [eax]
push 0x45e460
push eax
call fcn.004185f2
add esp, 8
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [0x461268], eax
call fcn.0042d4f7
mov edx, dword [esi + 0x5c]
push 5
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x46126c
mov byte [esp + 0x30], 4
call fcn.0042d630
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.0042d4f7
lea ecx, [esp + 8]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x40fc00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x40fc26
mov ecx, dword [esp + 0x10]
push ebx
push edi
mov edi, dword [esp + 0x10]
mov dl, byte [eax + edi]
mov bl, byte [ecx]
xor bl, dl
mov byte [ecx], bl
inc ecx
inc eax
cmp eax, esi
jl 0x40fc15
pop edi
pop ebx
pop esi
ret
Function at 0x40fca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x418
lea eax, [esp + 0x18]
push edi
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004104d0
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [esp + 0x30]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fde1
push ebx
push ebp
push esi
mov esi, dword [0x45ee20]
push 0
push 0
push esi
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 0
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push edi
add esi, eax
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
add esi, edx
call fcn.0042da9e
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebx
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
push ebx
push 0x10
push ecx
call fcn.0040fc30
push ebx
call fcn.0040fdf0
push ebx
mov esi, eax
call fcn.0042dac7
add esp, 0x1c
test esi, esi
je 0x40fdc9
push str.doMain
push esi
call fcn.00410360
add esp, 8
test eax, eax
je 0x40fdc9
mov edx, dword [esp + 0x438]
mov ecx, dword [esp + 0x434]
push edx
mov edx, dword [esp + 0x434]
push ecx
mov ecx, dword [esp + 0x434]
push edx
push ecx
call eax
add esp, 0x10
push esi
call fcn.00410420
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x418
ret 0x10
xor eax, eax
pop edi
add esp, 0x418
ret 0x10

Function at 0x410520
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
lea esi, [eax + 7]
cmp dword [esi], 0x20910817
je 0x410534
inc esi
jmp 0x410529
mov edi, dword [esi + 5]
add esi, 5
lea ecx, [esp + 0xc]
add esi, 4
push ecx
push 0x40
push edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x45ee1c]
push 0
push edi
push esi
push edx
push 0x45ee14
call fcn.0040fc30
add esp, 0x14
pop edi
pop esi
ret
Function at 0x41de91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4604b8
cmp edx, dword [eax]
je 0x41deb3
add eax, 8
inc ecx
cmp eax, 0x460548
jl 0x41dea4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4604b8]
jne 0x41dfe1
mov eax, dword [0x4633a8]
cmp eax, 1
je 0x41dfbb
test eax, eax
jne 0x41dee4
cmp dword [0x45ffac], 1
je 0x41dfbb
cmp edx, 0xfc
je 0x41dfe1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41df1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041fc90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c9a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41df5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c9a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x452d74
push edi
call fcn.00420330
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041fc90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041fca0
lea eax, [ebp - 0xa0]
push 0x452d54
push eax
call fcn.0041fca0
push dword [esi + 0x4604bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041fca0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042029b
add esp, 0x2c
pop edi
jmp 0x41dfe1
lea eax, [ebp + 8]
lea esi, [esi + 0x4604bc]
push 0
push eax
push dword [esi]
call fcn.0041c9a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x426150
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ac70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42621b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42621b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4261ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4261d9
or bh, 8
and edi, 0x8000000
je 0x4261f4
mov eax, dword [0x464b7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42621b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4265f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42661b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42663f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42665a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x428f4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x428f6d
cmp dword [edi + 0x3c], 0
jne 0x428f6d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0043fa73
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00428f9a
pop edi
pop esi
pop ebx
ret 8

Function at 0x428fe8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0043fa73
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x429019
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0042902c
pop edi
pop esi
pop ebx
ret 8

Function at 0x42a5e5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42a61d
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.0042d99e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042d976
jmp 0x42a629
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x42c17a
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 0x42c1bc
call fcn.0043fa73
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42c1bc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42c1b3
xor eax, eax
jmp 0x42c1c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042c1ca
pop edi
pop esi
pop ebx
ret 4
Function at 0x1001de8
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001e03
xor eax, eax
jmp 0x1001e7a
push ebx
push 0
push 0x8000000
push 3
push 0
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1001e2d
xor eax, eax
jmp 0x1001e79
push esi
push 0
lea ecx, [ebp - 4]
push ecx
mov esi, 0x200
push esi
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e51
cmp dword [ebp - 4], esi
je 0x1001e53
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1001e76
lea eax, [ebp - 0x204]
push eax
push esi
push 1
push 0
push dword [ebp + 0xc]
call fcn.01003b35
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
leave
ret 8

Function at 0x1001e7e
Capabilities:
Get common file path
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov al, byte [ebp + 8]
and byte [ebp - 1], 0
test al, al
push ebx
mov ebx, 0x104
jne 0x1001eb4
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001f56
mov al, byte [ebp - 0x108]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
movsx edi, al
push edi
lea eax, [ebp - 0x108]
push 0x100137c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 1]
push eax
push 0x100136c
push 0x1001354
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x20c], 0
je 0x1001f54
push edi
lea eax, [ebp - 0x108]
push 0x1001338
push eax
call esi
add esp, 0xc
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.01003da8
test eax, eax
lea eax, [ebp - 0x20c]
je 0x1001f3c
push eax
push 0x10012b8
push 0x10012ac
call fcn.01004f81
add esp, 0xc
jmp 0x1001f54
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x20c]
push eax
call fcn.0100462a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002021
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x450
push 0x10013c0
call fcn.01003d18
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
push 0x105
lea eax, [ebp - 0x230]
push eax
push 0x10013a4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
push edi
push eax
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
call esi
inc eax
inc eax
mov dword [ebp - 0x238], eax
push edi
push eax
call esi
mov ebx, eax
inc ebx
inc ebx
mov dword [ebp - 0x23c], ebx
push edi
push ebx
call esi
inc eax
inc eax
mov dword [ebp - 0x240], eax
push edi
push eax
call esi
inc eax
inc eax
mov dword [ebp - 0x244], eax
push edi
push eax
call esi
mov edi, eax
inc edi
inc edi
mov dword [ebp - 0x248], edi
push 0
push edi
call esi
add esp, 0x30
inc eax
inc eax
mov dword [ebp - 0x24c], eax
xor esi, esi
cmp dword [eax], esi
je 0x10020c5
add eax, 4
mov dword [ebp - 0x250], eax
jmp 0x10020cb
mov dword [ebp - 0x250], esi
cmp word [edi], si
je 0x10020f0
push edi
mov edi, 0x10013a4
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x105
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push dword [ebp + 8]
call fcn.01001fe9
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x238]
call fcn.01005854
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
je 0x100215f
cmp eax, esi
je 0x100215f
mov dword [ebp - 4], 1
push dword [ebp - 0x250]
mov cx, word [ebx]
neg cx
sbb ecx, ecx
and ecx, ebx
push ecx
push eax
push dword [ebp - 0x1c]
call dword [0x100964c]
mov dword [ebp - 0x460], eax
mov dword [ebp - 4], esi
jmp 0x1002169
mov dword [ebp - 0x460], 0x6e
cmp dword [ebp - 0x20], esi
je 0x1002179
push dword [ebp - 0x20]
call fcn.0100594e
mov dword [ebp - 0x20], esi
push esi
push esi
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x460]
call fcn.01005292
or dword [ebp - 4], 0xffffffff
call fcn.0100219d
call fcn.01003d51
ret 4
Function at 0x1002dd4
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.01005d14
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x1002dfb
xor eax, eax
jmp 0x1002ff1
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
push ebx
push esi
mov dword [ebp - 4], eax
mov ebx, 0x10092f0
jle 0x1002e96
mov esi, dword [sym.imp.msvcrt.dll__mbsinc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1002e45
cmp cl, 0x2f
je 0x1002e45
cmp byte [0x10092f0], 0
jne 0x1002fed
push eax
push ebx
call dword [sym.imp.msvcrt.dll__mbscpy]
pop ecx
pop ecx
jmp 0x1002e89
push eax
call esi
pop ecx
mov edi, eax
push edi
call fcn.01001dc0
push eax
call dword [sym.imp.msvcrt.dll__mbctolower]
sub eax, 0x62
pop ecx
je 0x1002ee6
dec eax
je 0x1002f18
sub eax, 0xa
je 0x1002e7f
sub eax, 5
jne 0x1002e89
mov dword [0x10092e8], 1
jmp 0x1002e89
mov dword [0x10092ec], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x1002e17
xor edi, edi
mov eax, dword [0x10092ec]
cmp dword [0x10092e8], eax
je 0x1002fed
cmp byte [0x10092f0], 0
je 0x1002fed
push 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, edi
mov dword [0x10092e0], eax
jne 0x1002f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x10017a4
push 0x10013f0
call fcn.01004f81
add esp, 0x10
jmp 0x1002fed
and byte [ebp - 4], 0
push edi
call esi
mov edi, eax
test edi, edi
pop ecx
je 0x1002f10
push edi
call fcn.01001dc0
cmp eax, 0x3a
jne 0x1002f10
push edi
call esi
test eax, eax
pop ecx
je 0x1002f10
push eax
call fcn.01001dc0
mov byte [ebp - 4], al
push dword [ebp - 4]
call fcn.01001e7e
call fcn.01002595
jmp 0x1002fed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001794
push eax
call esi
push 0x1001784
push dword [0x10092e0]
mov dword [0x1009644], eax
call esi
push 0x1001774
push dword [0x10092e0]
mov dword [0x100964c], eax
call esi
push 0x1001764
push dword [0x10092e0]
mov dword [0x1009648], eax
call esi
push 0x1001754
push dword [0x10092e0]
mov dword [0x1009640], eax
call esi
push 0x1001744
push dword [0x10092e0]
mov dword [0x1009650], eax
call esi
push 0x1001734
push dword [0x10092e0]
mov dword [0x100965c], eax
call esi
cmp dword [0x1009640], edi
mov dword [0x1009654], eax
je 0x1002fda
cmp dword [0x1009650], edi
je 0x1002fda
cmp dword [0x100965c], edi
je 0x1002fda
cmp eax, edi
je 0x1002fda
cmp dword [0x1009644], edi
je 0x1002fda
cmp dword [0x100964c], edi
je 0x1002fda
cmp dword [0x1009648], edi
je 0x1002fda
xor eax, eax
inc eax
jmp 0x1002fef
push ebx
push 0x1001704
push 0x10013f0
call fcn.01004f81
add esp, 0xc
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x1003138
Capabilities:
Set current directory

Disassembly:
push 0x3c
push 0x1001808
call fcn.01003d18
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
push ebx
push eax
mov edi, dword [sym.imp.msvcrt.dll_strchr]
call edi
mov esi, eax
inc esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
pop ecx
pop ecx
mov eax, dword [ebp - 0x40]
cmp byte [eax], bl
je 0x100318c
push ebx
push eax
call edi
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x40]
jmp 0x1003177
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
add dword [ebp - 0x40], 4
cmp eax, ebx
je 0x10031aa
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
add dword [ebp - 0x40], eax
jmp 0x10031ad
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 1
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x38]
call dword [0x1009650]
mov dword [ebp - 0x4c], eax
jmp 0x10031e6
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x4c], ebx
jne 0x100320d
mov dword [ebp - 0x44], ebx
push ebx
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push eax
call fcn.01002427
test eax, eax
jne 0x100320d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x100323c
mov eax, dword [ebp - 0x2c]
push eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x4c]
call fcn.01005292
test eax, eax
jne 0x100323c
push 0x10017bc
push 0x10013f0
call fcn.01004f81
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0100324d
call fcn.01003d51
ret 4
Function at 0x10037e5
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0x10018c4
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10038cf
push 0x10018b8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x100384e
cmp dword [ebp + 8], ebx
je 0x100383c
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10038c6
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, eax
jmp 0x10038c6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
push 4
mov dword [ebp - 8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10038c6
push edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x2c], 0x1c
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10038b9
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 8]
je 0x10038ad
push eax
push ebx
push 2
call dword [ebp - 0xc]
mov esi, eax
cmp esi, ebx
je 0x10038ad
cmp dword [ebp + 8], ebx
push esi
je 0x10038a4
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10038aa
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1003881
push dword [ebp - 4]
call edi
xor esi, esi
inc esi
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop ebx
leave
ret 4