joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e320
Capabilities:
Get geographical location

Disassembly:
mov edx, dword [ecx + 0xc94]
test edx, edx
js 0x48e352
mov eax, dword [ecx + 0xcb0]
sub eax, dword [ecx + 0xcac]
sar eax, 2
cmp edx, eax
jge 0x48e352
mov eax, dword [ecx + 0xcac]
mov eax, dword [eax + edx*4]
add dword [eax + 0x2a4], 5
jmp fcn.00490840
ret

Function at 0x48e360
Capabilities:
Get geographical location

Disassembly:
mov edx, dword [ecx + 0xc94]
test edx, edx
js 0x48e392
mov eax, dword [ecx + 0xcb0]
sub eax, dword [ecx + 0xcac]
sar eax, 2
cmp edx, eax
jge 0x48e392
mov eax, dword [ecx + 0xcac]
mov eax, dword [eax + edx*4]
add dword [eax + 0x2a0], 0x28
jmp fcn.00490840
ret

Function at 0x48e810
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de1d6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x511d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x48e87f
xor ecx, ecx
jmp 0x48e89f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x48e890
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e890
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00448440
cmp dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
jne 0x48e981
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
mov eax, dword [0x516310]
lea edx, [ebp - 0x260]
push edx
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov edi, eax
cmp esi, edi
je 0x48e931
cmp dword [esi + 0x14], 8
jb 0x48e916
push dword [esi]
call fcn.004c0d5b
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00447cd0
cmp dword [ebp - 0x234], 8
jb 0x48e948
push dword [ebp - 0x248]
call fcn.004c0d5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], al
jb 0x48e9ba
push dword [ebp - 0x260]
call fcn.004c0d5b
add esp, 4
jmp 0x48e9ba
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x48e997
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00448320
push 0xc
push 0x4e1094
mov ecx, esi
call fcn.00448240
cmp dword [esi + 0x14], 8
jb 0x48e9af
mov eax, dword [esi]
jmp 0x48e9b1
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xd
push 0x4e77e0
mov ecx, esi
call fcn.00448240
cmp dword [ebp - 0x21c], 8
jb 0x48e9df
push dword [ebp - 0x230]
call fcn.004c0d5b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1624
mov esp, ebp
pop ebp
ret 4
Function at 0x494ba0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de678
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x511d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4e7ae8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00448440
mov eax, dword [0x516310]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
cmp dword [eax + 0x14], 8
jb 0x494c10
mov eax, dword [eax]
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x2c], 8
mov dword [esi], eax
jb 0x494c3c
push dword [ebp - 0x40]
call fcn.004c0d5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
jb 0x494c68
push dword [ebp - 0x28]
call fcn.004c0d5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [esi]
mov dword [ebp - 0x18], 0
cmp eax, 0xffffffff
jne 0x494c87
xor al, al
jmp 0x494cd4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x494c83
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0
push 0
push 4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x494c83
mov ecx, esi
call fcn.00494cf0
test al, al
je 0x494c83
mov byte [esi + 0x10], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1624
mov esp, ebp
pop ebp
ret
Function at 0x495020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov ecx, edi
shr ecx, 2
lea ecx, [eax + ecx*4]
mov ebx, ecx
sub ebx, eax
add ebx, 3
shr ebx, 2
cmp eax, ecx
cmova ebx, edx
mov edx, dword [ebp + 8]
test ebx, ebx
je 0x4950c5
cmp ebx, 8
jb 0x4950a7
lea ecx, [eax - 4]
lea ecx, [ecx + ebx*4]
cmp edx, ecx
ja 0x495067
lea ecx, [edx - 4]
lea ecx, [ecx + ebx*4]
cmp ecx, eax
jae 0x4950a7
movdqa xmm1, xmmword [0x4e21e0]
mov ecx, ebx
and ecx, 7
mov dword [ebp + 0x10], ebx
sub dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
add esi, 8
pxor xmm0, xmm1
movdqu xmmword [edx], xmm0
movdqu xmm0, xmmword [eax + 0x10]
add eax, 0x20
pxor xmm0, xmm1
movdqu xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp esi, ecx
jb 0x495080
cmp esi, ebx
jae 0x4950c5
jmp 0x4950b0
mov ecx, dword [eax]
inc esi
xor ecx, 0xc2c2c2c2
add eax, 4
mov dword [edx], ecx
add edx, 4
cmp esi, ebx
jb 0x4950b0
and edi, 3
je 0x4950df
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
lea eax, [eax + 1]
xor cl, 0xc2
mov byte [edx + eax - 1], cl
dec edi
jne 0x4950d0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a0240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa0], 0
jne 0x4a0257
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jne 0x4a0250
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x4a0250
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4a0590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a3390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dedc9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511d60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x5199f4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x5199f4
mov dword [esi + 0x30], 0x5199f4
mov dword [esi + 0x34], 0x5199f4
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a3431
sub edx, ebx
push edx
push edi
call fcn.004a3070
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a3450
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.004a3070
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
jmp 0x4a3470
mov al, byte [edx]
inc edx
test al, al
jne 0x4a3470
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.004a3070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a3610
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dee33
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x511d60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x5199f4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x5199f4
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4e16d8
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004a3070
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b5490
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4b549c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004b54b0

Function at 0x4b6150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ecx, [ecx]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x4b61dc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004c1c60
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4b61af
sub eax, esi
jmp 0x4b61b1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4b61a0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4b61cf
sub eax, esi
jmp 0x4b61d1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x4b61c0
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4b6291
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x4b6209
xor eax, eax
jmp 0x4b6255
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4b6226
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004b4710
jmp 0x4b6236
cmp eax, 2
jne 0x4b623f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004b5490
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.004c1c60
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4b627d
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4b6291
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4b6160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfd2e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x511d60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b89e0
lea eax, [esi + 0x10]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CBaseReferenceClock.1.0
mov dword [esi + 0xc], vtable.CBaseReferenceClock.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
test ebx, ebx
je 0x4bfa68
mov eax, ebx
jmp 0x4bfa9d
push 0x78
call fcn.004c0d0a
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4bfa97
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov ecx, edi
call fcn.004bffc0
jmp 0x4bfa99
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 0x54], eax
test eax, eax
jne 0x4bfab2
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x8007000e
jmp 0x4bfb34
push 8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
mov ecx, 1
cmove ecx, dword [ebp - 0x18]
push ecx
mov dword [esi + 0x48], ecx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, 0x2710
mov dword [esi + 0x30], eax
mul ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
test ebx, ebx
jne 0x4bfb34
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x4bfd30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x50], eax
test eax, eax
je 0x4bfb12
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
jmp 0x4bfb34
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x80004005
mov eax, dword [esi + 0x54]
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4bfb34
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d3a1e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x511d60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004cd070
mov dword [ebp - 0x14], eax
cmp dword [0x51acd4], esi
jne 0x4d3b11
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d3a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d3bf1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d3bf1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d3bf1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x51acd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x51acd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x51acdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x51ace4], eax
test eax, eax
je 0x4d3b0e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x51ace0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d3b36
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d3b29
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d3b4b
push 4
pop eax
jmp 0x4d3bf3
cmp dword [ebp - 0x14], esi
je 0x4d3b4b
push dword [0x51acd4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d3b30
mov eax, dword [0x51ace0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d3ba9
cmp dword [0x51ace4], edi
je 0x4d3ba9
push eax
call ebx
push dword [0x51ace4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d3ba9
test eax, eax
je 0x4d3ba9
call ecx
test eax, eax
je 0x4d3b9e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d3b9e
test byte [ebp - 8], 1
jne 0x4d3ba9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d3bd9
mov eax, dword [0x51acd8]
cmp eax, edi
je 0x4d3bd6
push eax
call ebx
test eax, eax
je 0x4d3bd6
call eax
mov esi, eax
test esi, esi
je 0x4d3bd6
mov eax, dword [0x51acdc]
cmp eax, edi
je 0x4d3bd6
push eax
call ebx
test eax, eax
je 0x4d3bd6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x51acd4]
call ebx
test eax, eax
je 0x4d3bf1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d3bf3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c1624
mov esp, ebp
pop ebp
ret
Function at 0x402120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4021a9
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.cygwin1.dll_strrchr
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40215a
add eax, 1
mov dword [ebp - 0x10], eax
sub eax, ebx
cmp eax, 6
jg 0x402170
mov dword [0x412058], ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edi, str._.libs_
mov ecx, 7
sub eax, 6
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40215a
mov esi, dword [ebp - 0x10]
mov edi, 0x40f824
mov ecx, 3
mov ebx, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
add ebx, 4
cmp dl, al
cmovne ebx, dword [ebp - 0x10]
jmp 0x40215a
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x403920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, eax
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00405d00
add dword [0x412704], 1
test esi, esi
jne 0x403994
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
test edi, edi
jne 0x40399d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.004038c0
jmp 0x40395b
mov dword [esp], edi
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x412708]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x4039e6
cmp dword [0x412060], edi
je 0x403a65
mov dword [0x412070], esi
mov dword [0x412060], edi
mov dword [esp + 4], 3
mov dword [esp], 1
call sub.cygwin1.dll__fcntl64
test eax, eax
js 0x403a0e
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [0x412700]
test eax, eax
je 0x403a84
call eax
test esi, esi
mov eax, str._s:_d:
mov ebx, 0x40fcbe
cmovne ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
lea eax, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00403920
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x412070]
cmp esi, eax
je 0x403a58
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x4039da
jmp 0x403a58
mov ebx, dword [0x412058]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], 0x40fcba
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x403a19
Function at 0x405750
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 0
call sub.cygwin1.dll_nl_langinfo
test eax, eax
mov ebx, eax
je 0x405890
mov esi, eax
mov edi, str.US_ASCII
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
mov esi, ebx
seta dl
setb al
cmp dl, al
je 0x405800
mov ebx, dword [0x4120b0]
test ebx, ebx
jne 0x4057cc
jmp 0x405875
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x4057f0
mov eax, edi
cmp al, 0x2a
jne 0x4057b4
cmp byte [ebx + 1], 0
je 0x4057f0
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
lea ebx, [ebx + eax + 1]
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
lea ebx, [ebx + eax + 1]
movzx edi, byte [ebx]
mov eax, edi
test al, al
jne 0x405798
cmp byte [esi], 0
mov ebx, str.ASCII
cmovne ebx, esi
add esp, 0xc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
lea esi, [ebx + eax + 1]
jmp 0x4057d5
mov dword [esp], str.LC_ALL
call sub.cygwin1.dll_getenv
test eax, eax
je 0x405817
movzx edx, byte [eax]
test dl, dl
jne 0x405841
mov dword [esp], str.LC_CTYPE
call sub.cygwin1.dll_getenv
test eax, eax
je 0x40582e
movzx edx, byte [eax]
test dl, dl
jne 0x405841
mov dword [esp], str.LANG
call sub.cygwin1.dll_getenv
test eax, eax
je 0x405845
movzx edx, byte [eax]
test dl, dl
jne 0x40589a
call sub.KERNEL32.dll_GetACP
mov esi, 0x4120a0
mov dword [esp + 4], str.CP_u
mov dword [esp], 0x4120a0
mov dword [esp + 8], eax
call sub.cygwin1.dll_sprintf
mov ebx, dword [0x4120b0]
test ebx, ebx
jne 0x4057cc
mov dword [0x4120b0], str.CP936
mov ebx, str.CP936
jmp 0x4057cc
mov esi, 0x40fe9f
jmp 0x405789
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
je 0x405845
lea ebx, [eax + 1]
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call sub.cygwin1.dll_strchr
test eax, eax
je 0x4057e0
mov esi, eax
sub esi, ebx
cmp esi, 0xc
ja 0x405845
mov dword [esp + 4], ebx
mov ebx, 0x4120a0
mov dword [esp + 8], esi
mov dword [esp], 0x4120a0
call sub.cygwin1.dll_memcpy
mov byte [esi + 0x4120a0], 0
jmp 0x4057e0