joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x5a0d776b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
mov ecx, 0x63593697
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x409b90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DUT11_1
lea edi, [esi - 0x7000]
push edi
jmp 0x409baa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409ba0
mov eax, 1
add ebx, ebx
jne 0x409bc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409bb8
jne 0x409bd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409bb8
xor ecx, ecx
sub eax, 3
jb 0x409be8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409c5a
mov ebp, eax
add ebx, ebx
jne 0x409bf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409c00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409c24
inc ecx
add ebx, ebx
jne 0x409c10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409c05
jne 0x409c21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409c05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409c44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409c35
jmp 0x409ba6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409c44
add edi, ecx
jmp 0x409ba6
pop esi
mov edi, esi
mov ecx, 0x8a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409c62
cmp byte [edi], 0
jne 0x409c62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x409c67
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409cd6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409c94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x92e4]
or eax, eax
je 0x409cd0
mov dword [ebx], eax
add ebx, 4
jmp 0x409cb1
call dword [esi + 0x92e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x409d07
cmp al, 0xef
ja 0x409cfa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x409cdc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x409ce9
mov ebp, dword [esi + 0x92e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x409d3b
sub esp, 0xffffff80
jmp 0x4020c0
Function at 0x401140
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402ed6
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x405008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x33c], edx
mov ebx, ecx
mov ax, word [0x4031f0]
mov word [ebp - 0x320], ax
mov al, byte [0x4031f2]
mov byte [ebp - 0x31e], al
lea eax, [ebp - 0x31c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x401283
lea esi, [ebp - 0x31c]
nop
mov al, byte [esi]
mov byte [ebp - 0x320], al
lea eax, [ebp - 0x11c]
push 0x104
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x401274
cmp byte [ebx], 0
mov dword [ebp - 0x324], 0xf
mov dword [ebp - 0x328], 0
mov byte [ebp - 0x338], 0
jne 0x4011fd
xor ecx, ecx
jmp 0x40120b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401202
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x338]
call fcn.00401910
mov dword [ebp - 4], 0
cmp byte [ebp - 0x11c], 0
jne 0x40122c
xor ecx, ecx
jmp 0x40123e
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401235
sub ecx, edx
push ecx
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x338]
call fcn.00401610
mov edi, eax
cmp edi, 0xffffffff
jne 0x4012a1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x324]
cmp eax, 0x10
jb 0x401274
inc eax
push eax
push dword [ebp - 0x338]
call fcn.00401af0
mov al, byte [esi]
inc esi
test al, al
jne 0x401274
cmp byte [esi], al
jne 0x4011b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040214e
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x11c], 0
mov dword [ebp - 0x340], 0xf
mov dword [ebp - 0x344], 0
mov byte [ebp - 0x354], 0
jne 0x4012c9
xor ecx, ecx
jmp 0x4012db
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012d2
sub ecx, edx
push ecx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x354]
call fcn.00401910
mov byte [ebp - 4], 1
cmp byte [esi], 0
jne 0x4012fb
xor ecx, ecx
jmp 0x401309
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401300
sub ecx, edx
mov eax, dword [ebp - 0x344]
push ecx
push esi
inc eax
lea ecx, [ebp - 0x338]
push eax
push edi
call fcn.00401700
mov eax, dword [ebp - 0x340]
cmp eax, 0x10
jb 0x401337
inc eax
push eax
push dword [ebp - 0x354]
call fcn.00401af0
cmp dword [ebp - 0x324], 0x10
lea eax, [ebp - 0x338]
cmovae eax, dword [ebp - 0x338]
push eax
push 0x104
push dword [ebp - 0x33c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebp - 0x324]
add esp, 0xc
cmp eax, 0x10
jb 0x401378
inc eax
push eax
push dword [ebp - 0x338]
call fcn.00401af0
mov al, 1
jmp 0x401285
Function at 0x401380
Capabilities:
Create process on windows
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x405008]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
mov word [esp + 0x10], 0x77
mov dword [esp + 0x14], 0x4f4e4f43
mov dword [esp + 0x18], 0x245455
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
push str._______BDCAM__Loader_for_BDC_Gold_AH.exe_n
call fcn.004010a0
add esp, 4
push str.______Process_Path:
call fcn.004010a0
add esp, 4
lea eax, [esp + 0x140]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x140]
push eax
push str._sAntiServer_Pro.exe
push eax
call fcn.004010e0
add esp, 0xc
lea eax, [esp + 0x140]
push eax
call fcn.004010a0
add esp, 4
push 0x403250
call fcn.004010a0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
nop
push 0
push 0xf
mov byte [0x405420], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x18], 0x128
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401543
nop
push dword [esp + 0x20]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40152f
push 0x104
lea eax, [esp + 0x24c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x350]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x248]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x40152c
push ecx
lea edx, [esp + 0x354]
lea ecx, [esp + 0x24c]
call fcn.00401140
add esp, 4
test al, al
je 0x40152c
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x354]
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
movzx ecx, byte [0x405420]
add esp, 8
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x405420], cl
push esi
call ebx
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401480
push edi
call ebx
cmp byte [0x405420], 0
jne 0x40155c
push 5
push str..__AntiServer_Pro.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401450
Function at 0x404d91
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x404d2f
mov dword [esp + 4], 0x404d37
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x404d2f
mov dword [esp + 4], 0x404d54
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 1
mov dword [esp], 0x404d70
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_exit
dec edi
jo 0x404e81
imul ebp, dword [edi + 0x6e], 0xa3a73
and byte [eax], ah
add byte [eax], ch
add byte [eax], al
and eax, 0x63252d73
add byte [0x2d732500], ch
and eax, 0x732573
and byte [0x73250073], ah
or al, byte [eax]
insb byte es:[edi], dx
add al, 0
Function at 0x40e8e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strdup
mov esi, eax
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call sub.cygwin1.dll_strchr
cmp eax, esi
jne 0x40e998
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x3a
mov dword [esp + 4], 1
mov dword [esp], 0x40e870
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x32
mov dword [esp + 4], 1
mov dword [esp], 0x40e8b0
call sub.cygwin1.dll_fwrite
mov edi, esi
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
sub ecx, 2
mov dword [esp + 8], ecx
lea eax, [esi + 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memmove
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sub.cygwin1.dll_strchr
test eax, eax
je 0x40e9d4
mov byte [eax], 0
lea edi, [eax + 1]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x40e9fc
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x40e9c4
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40e9a9
jmp 0x40e9fc
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0040e8e3
mov edx, eax
jmp 0x40ea01
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40e9fc
mov eax, dword [ebx + 0x10c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
mov edx, ebx
test eax, eax
je 0x40ea01
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40e9db
mov edx, 0
mov eax, edx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ebcb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [0x46a0d8], 0
je 0x40ec7f
cmp dword [0x46a368], 0
je 0x40ec16
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.cygwin1.dll__ftello64
test edx, edx
jg 0x40ec0d
test edx, edx
js 0x40ec7f
cmp eax, 0x3fffffff
jbe 0x40ec7f
cmp dword [0x46a368], 0
jne 0x40ec23
mov eax, dword [0x47c3c0]
mov dword [esp], eax
call sub.cygwin1.dll_unlink
mov eax, dword [0x46a368]
mov dword [esp + 0xc], eax
inc eax
mov dword [0x46a368], eax
mov eax, dword [0x47c3c0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40eb98
lea ebx, [ebp - 0x218]
mov dword [esp], ebx
call fcn.00448be1
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40eba0
mov dword [esp], ebx
call sub.cygwin1.dll__freopen64
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x40ec7f
mov dword [esp + 4], ebx
mov dword [esp], 0x40eba3
call fcn.0044869f
test esi, esi
je 0x40ecfa
cmp dword [0x46a094], 0
je 0x40ecb6
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040ed44
jmp 0x40ecd0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_fwrite
mov ebx, eax
test eax, eax
jg 0x40eced
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x40ebb6
call fcn.0044869f
mov eax, dword [ebp + 0xc]
imul eax, ebx
lea edi, [edi + eax]
sub esi, ebx
jne 0x40ec83
add esp, 0x22c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ed44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, edx
imul ebx, eax
cmp dword [0x46a094], 0x800
jne 0x40ed85
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.cygwin1.dll_fwrite
mov edx, eax
jmp 0x40ee43
test ebx, 0x7ff
je 0x40eda5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x40ed10
mov dword [esp], 0xffffffff
call fcn.004486d2
lea eax, [ebp - 0x18]
mov byte [eax + 4], 0
mov byte [ebp - 0x18], 0
mov byte [eax + 5], 0
mov byte [eax + 1], 0
mov byte [eax + 7], 0
mov byte [eax + 3], 0
test ebx, ebx
jle 0x40ee3e
mov esi, eax
mov byte [esi + 6], 8
mov byte [esi + 2], 8
cmp ebx, 0x800
jg 0x40ede4
cmp dword [ebp + 0x1c], 0
je 0x40ede4
mov byte [esi + 6], 0x89
mov byte [esi + 2], 0x89
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], esi
call sub.cygwin1.dll_fwrite
mov edx, eax
test eax, eax
jle 0x40ee43
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x800
mov dword [esp], edi
call sub.cygwin1.dll_fwrite
mov edx, eax
test eax, eax
jle 0x40ee43
add edi, 0x800
sub ebx, 0x800
test ebx, ebx
jg 0x40edc6
mov edx, 1
mov eax, edx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4132ac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x807c
call fcn.0044b570
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x78]
mov dword [esp], eax
call fcn.0042fe90
mov dword [esp + 4], 0x4132a9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov edi, eax
mov eax, 0
test edi, edi
je 0x413378
jmp 0x4132fd
mov dword [esp], edi
call sub.cygwin1.dll_fclose
mov eax, 0
jmp 0x413378
test esi, esi
je 0x413351
mov ebx, esi
cmp esi, 0x8000
jbe 0x413310
mov ebx, 0x8000
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
lea eax, [ebp - 0x8078]
mov dword [esp], eax
call sub.cygwin1.dll_fread
mov ebx, eax
test eax, eax
je 0x4132ee
mov dword [esp + 8], eax
lea eax, [ebp - 0x8078]
mov dword [esp + 4], eax
lea eax, [ebp - 0x78]
mov dword [esp], eax
call fcn.0042fec1
sub esi, ebx
jne 0x413301
mov dword [esp], edi
call sub.cygwin1.dll_fclose
mov dword [esp], 0x10
call fcn.0040a4e0
mov ebx, eax
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042ff7e
mov eax, ebx
add esp, 0x807c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41511a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword [ebp + 0xc]
cmp word [0x479772], 0
jne 0x415167
mov ebx, 0
mov esi, 0x479770
mov edx, ebx
shl edx, 8
mov ecx, 0
mov eax, edx
and eax, 0x8000
add edx, edx
test eax, eax
je 0x415154
xor edx, 0x11021
inc ecx
cmp ecx, 7
jbe 0x415141
mov word [esi + ebx*2], dx
inc ebx
cmp ebx, 0xff
jbe 0x415137
mov eax, 0
mov ebx, 0
cmp eax, edi
jae 0x415195
mov ecx, eax
shl ecx, 8
mov esi, dword [ebp + 8]
movzx edx, byte [ebx + esi]
movzx eax, ah
xor eax, edx
movzx eax, word [eax + eax + 0x479770]
xor eax, ecx
inc ebx
cmp ebx, edi
jb 0x415175
and eax, 0xffff
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41f063
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [0x47b314], 1
mov dword [0x47b348], 1
mov dword [0x47b338], 1
mov dword [0x47b318], 0
cmp byte [ebx], 0x2d
jne 0x41f0a8
mov dword [0x47b328], 2
jmp 0x41f0b7
cmp byte [ebx], 0x2b
jne 0x41f0ba
mov dword [0x47b328], 0
inc ebx
jmp 0x41f0d3
mov dword [esp], 0x41f053
call sub.cygwin1.dll_getenv
test eax, eax
sete al
movzx eax, al
mov dword [0x47b328], eax
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4244cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x11
mov dword [esp + 4], 1
mov dword [esp], 0x4243e9
call sub.cygwin1.dll_fwrite
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0043f300
movzx eax, byte [ebx + 2]
and al, 7
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4243fb
mov dword [esp], esi
call fcn.004489fe
movzx eax, byte [ebx + 3]
and al, 0xf
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], 0x424410
mov dword [esp], esi
call fcn.004489fe
movzx eax, byte [ebx + 3]
and al, 0xf
cmp al, 1
jbe 0x4246f5
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x11
mov dword [esp + 4], 1
mov dword [esp], 0x424425
call sub.cygwin1.dll_fwrite
cmp byte [ebx + 3], 0
jns 0x424599
mov dword [esp + 0xc], esi
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp], 0x424437
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 3]
and al, 0x40
test al, al
je 0x4245c3
mov dword [esp + 0xc], esi
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], 0x42443d
call sub.cygwin1.dll_fwrite
cmp byte [ebx + 7], 0
jns 0x4245e9
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], 0x424446
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 7]
and al, 0x40
test al, al
je 0x424613
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], 0x42444e
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 7]
and al, 0x20
test al, al
je 0x42463d
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], 0x424456
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 7]
and al, 0x10
test al, al
je 0x424667
mov dword [esp + 0xc], esi
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp], 0x42445e
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 7]
and al, 8
test al, al
je 0x424691
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], 0x424464
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 7]
and al, 2
test al, al
je 0x4246bb
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], 0x42446c
call sub.cygwin1.dll_fwrite
movzx eax, byte [ebx + 7]
and al, 1
test al, al
je 0x4246e5
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], 0x424474
call sub.cygwin1.dll_fwrite
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
cmp byte [ebx + 4], 0x1e
ja 0x42470d
cmp byte [ebx + 8], 0
jne 0x42470d
cmp byte [ebx + 0x10], 0
jne 0x42470d
cmp byte [ebx + 0x20], 0
je 0x424752
lea eax, [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42447f
mov dword [esp], esi
call fcn.004489fe
lea eax, [ebx + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x424498
mov dword [esp], esi
call fcn.004489fe
lea eax, [ebx + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4244b2
mov dword [esp], esi
call fcn.004489fe
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x427915
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.cygwin1.dll_memset
mov dword [esp + 4], 0x427912
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov esi, eax
mov eax, 0xffffffff
test esi, esi
je 0x427980
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.cygwin1.dll_fread
mov ebx, eax
mov dword [esp], esi
call sub.cygwin1.dll_fclose
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x428e7d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0x98], 0
mov dword [esp + 4], 0x427912
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x8c], eax
mov eax, 0
cmp dword [ebp - 0x8c], 0
je 0x429086
cmp dword [0x46a170], 0
jg 0x428ed1
mov eax, 0
jmp 0x429086
mov ecx, dword [0x46a170]
mov edx, 0xb21642c9
mov eax, ecx
imul edx
add edx, ecx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [ebp - 0x90], edx
imul eax, edx, 0x5c
sub ecx, eax
mov dword [ebp - 0x94], ecx
jmp 0x429048
cmp byte [ebp - 0x78], 0
je 0x429005
mov dword [esp], 0x48
call fcn.0040a4e0
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp + 8], ecx
movzx eax, byte [ebp - 0x78]
mov dword [esp + 8], eax
lea eax, [ebp - 0x77]
mov dword [esp + 4], eax
mov eax, ecx
add eax, 0x20
mov dword [esp], eax
call fcn.004275ac
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x1c], eax
lea ecx, [ebp - 0x28]
lea edi, [ebp - 0x20]
mov dword [ebp - 0xac], edi
lea ebx, [ebp - 0x88]
mov edx, 0
cmp byte [ecx], 0x20
je 0x428fa4
movzx eax, byte [ecx]
mov byte [ebx], al
inc edx
inc ecx
inc ebx
cmp edx, 7
jle 0x428f92
lea edx, [ebp - 0x20]
mov eax, 0x428e79
mov ecx, 3
cld
mov esi, edx
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x428feb
mov byte [ebx], 0x2e
inc ebx
mov edx, 0
mov eax, dword [ebp - 0xac]
cmp byte [eax], 0x20
je 0x428feb
mov ecx, eax
movzx eax, byte [eax]
mov byte [ebx], al
inc edx
inc ecx
mov dword [ebp - 0xac], ecx
inc ebx
cmp edx, 2
jle 0x428fcb
mov byte [ebx], 0
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sub.cygwin1.dll_strdup
mov esi, dword [ebp - 0x9c]
mov dword [esi + 0x40], eax
inc dword [ebp - 0x98]
mov edi, dword [ebp - 0x90]
cmp dword [ebp - 0x98], edi
jne 0x429048
mov dword [ebp - 0x98], 0
mov dword [esp + 0xc], 1
mov eax, dword [ebp - 0x94]
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x8c]
mov dword [esp], edx
call sub.cygwin1.dll__fseeko64
mov ecx, dword [ebp - 0x8c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x5c
mov dword [esp + 4], 1
lea esi, [ebp - 0x78]
mov dword [esp], esi
call sub.cygwin1.dll_fread
test eax, eax
jne 0x428f02
mov edi, dword [ebp - 0x8c]
mov dword [esp], edi
call sub.cygwin1.dll_fclose
mov eax, dword [ebp + 8]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret