joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401090
Capabilities:
Query environment variable

Disassembly:
push str.console_exe
call fcn.00401940
add esp, 4
test eax, eax
jne 0x4010ab
call fcn.00402820
jmp 0x401a90
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push eax
push ecx
call dword [0x4047c4]
push 1
call dword [0x40482c]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401aef
call dword [0x40469c]
push eax
call dword [0x4047ac]
add esp, 4
test eax, eax
je 0x401ae6
push eax
push 0
push esi
call dword [0x404834]
add esp, 0xc
test eax, eax
jne 0x401ae6
push esi
push str.path
call dword [0x40479c]
add esp, 8
push esi
call fcn.00401b40
add esp, 4
call fcn.004019a0
push str.PYTHONINSPECT
mov esi, eax
call dword [sym.imp.MSVCR71.dll_getenv]
add esp, 4
test eax, eax
je 0x401b35
mov edx, dword [sym.imp.MSVCR71.dll__iob]
push 0x404254
push edx
call dword [0x4047b4]
add esp, 8
test eax, eax
je 0x401b35
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push str._stdin_
push eax
call dword [0x4047bc]
add esp, 8
call dword [0x404694]
mov eax, esi
pop esi
ret

Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push str.PYTHONSCRIPT
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov al, byte [0x4050c0]
test al, al
jne 0x401178
push edi
call fcn.004010b0
add esp, 4
test esi, esi
jne 0x401183
push str.Could_not_locate_script_resource:
jmp 0x4011b0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401196
push str.Could_not_load_script_resource:
jmp 0x4011b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [0x4051c4], eax
mov dword [0x4052ec], eax
jne 0x4011c4
push str.Could_not_lock_script_resource:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0xc]
mov dword [0x4052e4], ecx
lea ecx, [eax + 0x10]
mov dword [0x4051c4], ecx
cmp dword [eax], 0x78563412
je 0x4011f2
push str.Bug:_Invalid_script_resource
push 0
call section..text
add esp, 8
pop edi
xor eax, eax
pop esi
ret
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4011f7
sub eax, esi
lea edx, [ecx + eax + 1]
mov dword [0x4051c4], edx
cmp byte [ecx], 0
je 0x401235
push ecx
push 0x4050c0
push 0x4040d0
push 0x304
push 0x404a80
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x304
push 0x404a80
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401250
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401277
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
cmp edi, 0xffffffff
jne 0x4012af
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebp, eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4012ce
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x4012e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov al, byte [0x4050c0]
sub esp, 0x308
test al, al
push esi
mov esi, dword [esp + 0x310]
jne 0x401300
push esi
call fcn.004010b0
add esp, 4
push 0x4040d8
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401355
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x4040e8
call fcn.00401c60
add esp, 8
test eax, eax
jne 0x401400
push str.Could_not_load_python_dll
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x308
ret
lea eax, [esp + 4]
push eax
mov eax, 0x404a80
call fcn.00401250
mov esi, eax
add esp, 4
test esi, esi
je 0x4013a4
push edi
push 0xb
push 0x404114
push esi
xor edi, edi
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401398
lea ecx, [esi + 0xf]
push ecx
push 0x404120
call fcn.00401c60
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401400
push str.PYTHON25.DLL
push 0x4050c0
push 0x404140
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401c60
add esp, 0x1c
test eax, eax
jne 0x401400
push str.LoadLibrary_pythondll__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call section..text
lea ecx, [esp + 0x10]
push ecx
push 0
call section..text
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x308
ret
mov eax, 1
pop esi
add esp, 0x308
ret
Function at 0x401440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push str.ZLIB.PYD
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4014ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40154b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push 0x404168
call fcn.00402450
add esp, 8
test eax, eax
je 0x40154b
push 0x404174
push eax
call fcn.00402160
add esp, 8
test eax, eax
je 0x40154b
call eax
pop esi
add esp, 0x304
ret
push str.zlib.pyd
push 0x4050c0
push 0x404198
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4014ee
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4014a3
push edi
push 0
mov eax, 0x404a80
call fcn.00401250
mov esi, eax
add esp, 4
test esi, esi
mov edi, esi
je 0x40154a
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x401525
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
test eax, eax
pop ebx
jne 0x401543
add edi, 0xe
push edi
call fcn.00401410
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x4017e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.00401150
add esp, 4
test eax, eax
je 0x4017ff
push edi
call fcn.004012e0
add esp, 4
test eax, eax
jne 0x401806
mov eax, 0xff
pop edi
ret
mov eax, dword [0x4052ec]
mov ecx, dword [eax + 8]
test ecx, ecx
push esi
je 0x401842
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_setbuf]
push 0
push ecx
call esi
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x20
push 0
push edx
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push 0
push eax
call esi
add esp, 0x18
mov esi, dword [sym.imp.MSVCR71.dll_getenv]
push 0x404214
call esi
add esp, 4
test eax, eax
je 0x401871
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [0x404804]
add esp, 8
mov dword [ecx], eax
jmp 0x40187d
mov edx, dword [0x404804]
mov dword [edx], 0
mov eax, dword [0x40481c]
mov dword [eax], 1
mov ecx, dword [0x40480c]
mov dword [ecx], 1
mov edx, dword [0x4052ec]
mov eax, dword [edx + 4]
mov ecx, dword [0x404814]
push 0x404da0
mov dword [ecx], eax
call dword [0x4046ac]
add esp, 4
call fcn.00401560
call dword [0x40471c]
test eax, eax
jne 0x4018d3
call fcn.004015f0
test eax, eax
jne 0x401939
call dword [0x404684]
jmp 0x4018dc
call fcn.004016d0
test eax, eax
jne 0x401939
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401909
push 1
call dword [0x4047fc]
push eax
push 0x404234
call dword [0x40479c]
add esp, 0xc
push edi
call fcn.00401440
add esp, 4
pop esi
xor eax, eax
pop edi
ret
push eax
call dword [0x4047ac]
mov esi, eax
add esp, 4
test esi, esi
je 0x40192e
push esi
push str.frozen
call dword [0x40479c]
push esi
call fcn.00401b40
add esp, 0xc
push edi
call fcn.00401440
add esp, 4
xor eax, eax
pop esi
pop edi
ret

Function at 0x401bb0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov esi, 0x404680
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bc1
sub eax, edx
add eax, ebx
cmp eax, ebx
je 0x401bda
cmp byte [eax], 0x5c
je 0x401bdf
dec eax
cmp eax, ebx
jne 0x401bd0
cmp byte [eax], 0x5c
jne 0x401be0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x401bfa
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401c56
mov eax, dword [str.Py_Initialize]
test eax, eax
je 0x401c27
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push edi
call ebx
test eax, eax
mov dword [esi + 4], eax
je 0x401c30
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jne 0x401c10
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40484c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
mov edx, dword [sym.imp.MSVCR71.dll__iob]
push ecx
add edx, 0x40
push 0x40485c
push edx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401c60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, 0x404680
jne 0x401c7d
mov eax, dword [esp + 8]
push eax
call fcn.00401bb0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402450
mov edi, eax
add esp, 8
test edi, edi
je 0x401ceb
mov eax, dword [str.Py_Initialize]
test eax, eax
je 0x401cbd
jmp 0x401ca0
mov edx, dword [esi]
push edx
push edi
call fcn.00402160
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x401cc5
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jne 0x401ca0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
push eax
add ecx, 0x40
push str.undefined_symbol__s____exit__1__n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401e60
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ebx, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x401f20
push esi
add ebx, 0x10
push edi
lea esp, [esp]
mov eax, dword [ebx]
test eax, eax
jne 0x401ece
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401f00
mov eax, dword [ebx - 4]
push 4
push 0x1000
push esi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x401f00
push 4
push 0x1000
push eax
mov eax, dword [ebx - 4]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
inc eax
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401e90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401f30
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x401fe5
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401f85
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401fcd
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x4048b4]
je 0x401f9f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401fba
test al, 0x40
je 0x401fb1
mov ecx, dword [ebx + 0x20]
jmp 0x401fb8
test al, al
jns 0x401fcd
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401fcd
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x401f52
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402450
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, dword [0x404a74]
test esi, esi
push edi
je 0x40247c
mov edi, dword [sym.imp.MSVCR71.dll__stricmp]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x4024a6
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402463
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
jne 0x402498
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
mov dword [esp + 8], edi
je 0x4024af
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ecx
ret
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x4024f0
mov ecx, dword [edi + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x4024f0
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [esp + 0x18]
mov ebx, eax
xor eax, eax
push edx
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], 1
call dword [sym.imp.MSVCR71.dll__strdup]
add esp, 4
push 4
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], 0
mov eax, dword [edi + 0x50]
push 0x1000
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov edx, dword [edi + 0x54]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3c]
mov esi, dword [esp + 0x10]
push ebx
add eax, edx
push esi
mov dword [ebx], eax
push ecx
mov dword [eax + 0x34], ebp
call fcn.00401e60
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x4025a0
push eax
mov eax, ebx
call fcn.00401ff0
add esp, 4
push ebx
call fcn.004022d0
add esp, 4
test eax, eax
je 0x4025d8
push ebx
call fcn.00401f30
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x4025fa
add eax, ebp
jne 0x4025cd
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4025d8
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x4025f3
mov ecx, dword [ebx + 0x18]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
push ebx
call fcn.004021f0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [ebx + 0x10], 1
mov eax, ebx
call fcn.00401cf0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x40284a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x403100
call fcn.00402acc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x402885
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402885
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40289d
cmp eax, 0x20b
je 0x40288a
mov dword [ebp - 0x1c], edi
jmp 0x4028b1
cmp dword [ecx + 0x84], 0xe
jbe 0x402885
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4028ab
cmp dword [ecx + 0x74], 0xe
jbe 0x402885
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4052f4], 0xffffffff
or dword [0x4052f8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x404a70]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x404a6c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4052f0], eax
call fcn.00402a26
call fcn.00402ac6
cmp dword [0x404a58], edi
jne 0x402911
push fcn.00402ac6
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00402ab4
push 0x40400c
push 0x404008
call sub.MSVCR71.dll__initterm
push 0x402a6a
call fcn.00402a14
mov eax, dword [0x404a68]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x404a64]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x402965
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x404004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401090
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4029a1
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4029d6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402b07
ret
Function at 0x1006467
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x10
push 0x1001760
call fcn.01017f40
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
inc ebx
mov dword [esi + 0x24], ebx
mov eax, dword [ebp + 8]
mov dword [esi], eax
cdq
push 2
pop ecx
idiv ecx
add eax, edx
mov dword [esi + 4], eax
push eax
call fcn.01017fe6
pop ecx
mov dword [ebp - 0x20], eax
mov dword [esi + 0x18], eax
cmp eax, edi
jne 0x100649e
push 0x18d
push 0x1001728
push 0x10016d8
call fcn.01007320
mov edx, dword [esi + 0x18]
cmp edx, edi
je 0x10064bf
mov ecx, dword [esi + 4]
mov eax, 0x44444444
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10064c7
mov dword [esi + 0x2c], ebx
mov dword [esi], edi
mov dword [esi + 4], edi
or dword [ebp - 4], reloc.msvcrt.dll___p__commode
call fcn.010064db
call fcn.01017f7b
ret 4
Function at 0x100a269
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 8]
push ecx
push 4
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x90078
push dword [0x101a994]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call fcn.010062a2
test eax, eax
jne 0x100a283
push 0x314
push 0x100217c
push 0x1002130
call fcn.01007320
xor eax, eax
leave
ret
mov al, byte [ebp - 4]
and al, 5
neg al
sbb eax, eax
neg eax
leave
ret
Function at 0x100f89e
Capabilities:
Get file attributes

Disassembly:
push 0x268
push 0x1002b00
call fcn.01017f40
mov eax, dword [reloc.msvcrt.dll___p__commode]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - reloc.msvcrt.dll___p__commode], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - reloc.msvcrt.dll___p__commode], eax
push 0x70
pop ecx
mov dword [ebp - reloc.msvcrt.dll___p__commode], ecx
xor eax, eax
mov dword [ebp - reloc.msvcrt.dll___p__commode], eax
fild qword [ebp + 0xc]
fst qword [ebp - 0x278]
fstp qword [ebp - 0x264]
wait
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], eax
jg 0x100f801
jl 0x100f7f2
cmp dword [ebp + 0xc], reloc.msvcrt.dll___p__commode
jae 0x100f801
mov dword [ebp - reloc.msvcrt.dll___p__commode], GetComputerNameW
jmp 0x100f886
fld qword [0x1002af8]
fld qword [ebp - 0x278]
fmul st(1)
fst qword [ebp - 0x264]
fcomp qword [0x1002af0]
fnstsw ax
test ah, 5
jp 0x100f830
fstp st(0)
mov dword [ebp - reloc.msvcrt.dll___p__commode], GetComputerNameW
jmp 0x100f886
fld qword [ebp - 0x264]
fmul st(1)
fst qword [ebp - 0x264]
fcomp qword [0x1002af0]
fnstsw ax
test ah, 5
jp 0x100f859
fstp st(0)
mov dword [ebp - reloc.msvcrt.dll___p__commode], GetComputerNameW
jmp 0x100f886
fld qword [ebp - 0x264]
fmul st(1)
fst qword [ebp - 0x264]
fstp st(1)
mov dword [ebp - reloc.msvcrt.dll___p__commode], ecx
fcomp qword [0x1002ae8]
fnstsw ax
test ah, 5
jp 0x100f886
mov dword [ebp - reloc.msvcrt.dll___p__commode], 1
wait
or dword [ebp - 4], 0xffffffff
call fcn.0100f8ad
push dword [ebp - 0x268]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x1c]
call fcn.01017c5b
call fcn.01017f7b
ret 0x10
Function at 0x1014939
Capabilities:
Get common file path
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
call fcn.0100b23e
test eax, eax
je 0x1014945
push 0x10045d0
push 2
push 0x1075
push 0x4e
call fcn.0100b327
add esp, 0x10
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x10], esi
cmp dword [reloc.msvcrt.dll___p__commode], 3
je 0x1014a28
call fcn.0100b23e
test eax, eax
je 0x101498c
push dword [0x1025834]
inc dword [ebp - 4]
push dword [0x1025830]
push dword [ebp - 4]
push 0x1004590
push 2
push 0x1081
push 0x4e
call fcn.0100b327
add esp, 0x1c
lea eax, [ebp - 0x20]
push eax
push 0x2d
call fcn.0101362b
push 0x101a468
mov dword [ebp - 8], eax
call dword [sym.imp.ntdll.dll_RtlNumberGenericTableElementsAvl]
mov ebx, eax
call fcn.0100b23e
test eax, eax
je 0x10149ca
push dword [ebp - 0xc]
push ebx
push 0x1004548
push 2
push 0x108b
push 0x4e
call fcn.0100b327
add esp, 0x18
cmp dword [ebp - 8], esi
jne 0x1014a79
cmp ebx, dword [ebp - 0xc]
je 0x1014a34
cmp dword [reloc.msvcrt.dll___p__commode], 3
je 0x1014a28
cmp dword [ebp - 4], 0xa
jae 0x10149f2
test byte [ebp - 4], 1
je 0x10149f2
xor eax, eax
inc eax
jmp 0x10149f4
xor eax, eax
push eax
push esi
push 0x4b
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x20]
call fcn.01013b7a
test eax, eax
je 0x1014a34
cmp dword [ebp - 0x14], esi
jne 0x101494e
push 1
push 1
push 0x64
push esi
push esi
call fcn.01013b7a
mov dword [ebp - 0x14], eax
jmp 0x101494e
push esi
push esi
push 0x10
push dword [0x10257dc]
call edi
cmp ebx, dword [ebp - 0x18]
je 0x1014aa3
cmp dword [reloc.msvcrt.dll___p__commode], 3
mov dword [ebp - 0x18], ebx
je 0x1014a6b
add dword [ebp - 0x10], 2
push 0x19
pop eax
xor edx, edx
div dword [ebp - 0x10]
push eax
call fcn.0101430e
push esi
push esi
push 0x4b
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.01013b7a
jmp 0x101494e
push esi
push esi
push 0x10
push dword [0x10257dc]
call edi
jmp 0x1014aa3
cmp dword [reloc.msvcrt.dll___p__commode], 3
je 0x1014aa3
cmp dword [ebp - 0x14], esi
jne 0x1014a94
push 1
push 1
push 0x64
push esi
push esi
call fcn.01013b7a
push 0x62
pop eax
sub eax, dword [reloc.msvcrt.dll___p__commode]
push eax
call fcn.0101430e
xor eax, eax
cmp dword [ebp - 8], esi
sete al
mov dword [reloc.msvcrt.dll___p__commode], eax
call fcn.0100b23e
test eax, eax
pop edi
pop esi
pop ebx
je 0x1014ad5
push dword [ebp - 8]
push 0x1004528
push 2
push 0x10d4
push 0x4e
call fcn.0100b327
add esp, 0x14
xor eax, eax
inc eax
leave
ret