joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403de0
Capabilities:
Get file attributes

Disassembly:
push edi
push esi
mov edi, 0x4291c8
mov ecx, 2
mov esi, eax
sub esp, 0x14
repe cmpsb byte [esi], byte es:[edi]
jne 0x403e14
mov eax, dword [0x435090]
test eax, eax
je 0x403e40
mov dword [0x435128], eax
add esp, 0x14
mov edx, 1
pop esi
pop edi
xor eax, eax
jmp fcn.00402ef0
mov dword [0x435128], eax
mov dword [esp], 1
mov edx, eax
mov ecx, 1
mov eax, 0xfffffffe
call fcn.00403d50
add esp, 0x14
pop esi
pop edi
ret
mov dword [esp], str._standard_input_
call sub.cygintl_8.dll_libintl_gettext
jmp 0x403dfe
Function at 0x404060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x18
cmp byte [0x435f65], 0
je 0x404077
call sub.cygwin1.dll___locale_mb_cur_max
cmp eax, 1
je 0x404092
mov dword [esp], 0
call fcn.0040b700
mov edx, dword [esp + 0x20]
mov dword [edx], eax
test eax, eax
je 0x4040c1
add esp, 0x18
pop ebx
ret
xor ebx, ebx
mov dword [esp], ebx
add ebx, 1
call sub.cygwin1.dll_toupper
mov byte [ebx + 0x43523f], al
cmp ebx, 0x100
jne 0x404094
mov dword [esp], 0x435240
call fcn.0040b700
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x404089
call fcn.00413690
lea esi, [esi]
lea edi, [edi]

Function at 0x405610
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x405656
push edi
push esi
lea ecx, [eax + 4]
push ebx
lea esi, [eax + edx*8 + 4]
xor eax, eax
mov edx, dword [ecx]
mov edi, eax
or edi, 4
mov ebx, edx
shr ebx, 2
xor ebx, edx
and ebx, 0x111
mov ebx, edx
cmovne eax, edi
shr ebx, 1
xor edx, ebx
mov ebx, eax
or ebx, 2
and edx, 0x111
cmovne eax, ebx
add ecx, 8
cmp ecx, esi
jne 0x405620
pop ebx
pop esi
pop edi
ret
xor eax, eax
ret
Function at 0x407d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x18
mov dword [0x43537c], 0xffffffff
mov byte [0x435378], 1
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [0x435374], 0
cmp byte [ebx + 0x25], 0
mov dword [0x435384], eax
mov eax, dword [esp + 0x24]
mov dword [0x43580c], ebx
mov dword [0x435380], eax
jne 0x407db1
mov eax, dword [0x435804]
test eax, eax
je 0x407ddf
call fcn.00406310
mov dword [0x435364], eax
mov eax, dword [ebx + 0x18]
mov dword [0x435360], eax
call fcn.00407cd0
cmp dword [0x435364], 0xffffffff
jne 0x407dcb
mov eax, dword [ebx + 0x20]
not eax
call fcn.00404c70
mov eax, 0x10c
call fcn.00404c70
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x407da6
mov eax, 0x10d
call fcn.00404c70
mov eax, dword [ebx + 0x20]
add eax, 1
mov dword [ebx + 0x20], eax
add esp, 0x18
pop ebx
ret
mov dword [0x428048], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
jmp 0x407d51
mov dword [esp], str.unbalanced__
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp], eax
call fcn.0040a940
mov dword [esp], str.no_syntax_specified
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp], eax
call fcn.0040a940
lea esi, [esi]
lea edi, [edi]
Function at 0x40a970
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [0x435840]
test eax, eax
je 0x40a985
cmp eax, 2
je 0x40a9a2
add esp, 0x1c
ret
mov dword [esp], str.POSIXLY_CORRECT
call sub.cygwin1.dll_getenv
cmp eax, 1
sbb eax, eax
not eax
add eax, 2
mov dword [0x435840], eax
jmp 0x40a97c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040a940
nop

Function at 0x410570
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4105f5
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.cygwin1.dll_strrchr
test eax, eax
je 0x4105e0
lea ebp, [eax + 1]
mov ecx, ebp
sub ecx, ebx
cmp ecx, 6
jle 0x4105e0
lea esi, [eax - 6]
mov ecx, 7
mov edi, str._.libs_
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
jne 0x4105e0
mov ecx, 3
mov edi, 0x42b76c
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
mov ebx, ebp
seta dl
setb cl
cmp dl, cl
jne 0x4105e0
lea ebx, [eax + 4]
mov eax, dword [sym.imp.cygwin1.dll_program_invocation_short_name]
mov dword [eax], ebx
mov eax, dword [sym.imp.cygwin1.dll_program_invocation_name]
mov dword [0x4358bc], ebx
mov dword [eax], ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
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
nop
nop
nop
nop

Function at 0x413690
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov dword [esp], 0x42bfa0
call sub.cygintl_8.dll_libintl_gettext
mov edx, dword [0x428050]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x42bfb1
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.cygwin1.dll_error
call sub.cygwin1.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
sub esp, 0x28
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00425890
test eax, eax
mov ebx, eax
js 0x413710
add esp, 0x28
mov eax, ebx
pop ebx
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 0xc
jne 0x413706
call fcn.00413690
nop
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00425b70
test eax, eax
mov ebx, eax
je 0x413745
add esp, 0x18
mov eax, ebx
pop ebx
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 0xc
jne 0x41373e
call fcn.00413690
lea esi, [esi]
lea edi, [edi]
Function at 0x414370
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
sub esp, 0x14
mov dword [esp], str.TERM
call sub.cygwin1.dll_getenv
test eax, eax
je 0x4143a0
mov esi, eax
mov edi, str.dumb
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
setne al
add esp, 0x14
movzx eax, al
pop esi
pop edi
ret
add esp, 0x14
xor eax, eax
pop esi
pop edi
ret

Function at 0x4144d0
Capabilities:
Get file attributes

Disassembly:
push edi
push esi
mov edi, eax
push ebx
lea esi, [edx + 0x40]
mov ebx, edx
sub esp, 0x10
mov eax, dword [edx + 0x30]
test eax, eax
mov eax, dword [edi + 0x28]
jne 0x414540
test al, 1
je 0x414540
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll__stat64
test eax, eax
jne 0x414580
mov edx, dword [ebx + 0x50]
and edx, 0xf000
cmp edx, 0x4000
je 0x4145c1
cmp edx, 0xa000
mov eax, 0xc
je 0x414533
xor eax, eax
cmp edx, 0x8000
sete al
lea eax, [eax + eax*4 + 3]
add esp, 0x10
pop ebx
pop esi
pop edi
ret
test al, 2
jne 0x4144eb
test cl, cl
jne 0x4144eb
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_fstatat
test eax, eax
je 0x414502
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [ebx + 0x20], eax
jmp 0x414598
call sub.cygwin1.dll___errno
mov edi, dword [eax]
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x414620
mov dword [ebx + 0x20], edi
lea edi, [esi + 4]
mov dword [ebx + 0x40], 0
mov dword [esi + 0x5c], 0
xor eax, eax
and edi, 0xfffffffc
sub esi, edi
lea ecx, [esi + 0x60]
shr ecx, 2
rep stosd dword es:[edi], eax
add esp, 0x10
mov al, 0xa
pop ebx
pop esi
pop edi
ret
mov eax, dword [edi + 0x28]
movzx esi, word [ebx + 0x54]
and eax, 0x20
cmp eax, 1
sbb eax, eax
and eax, 2
sub esi, eax
cmp byte [ebx + 0xa0], 0x2e
mov eax, 1
mov word [ebx + 0x38], si
jne 0x414533
cmp byte [ebx + 0xa1], 0
jne 0x414605
cmp dword [ebx + 0x30], 1
sbb eax, eax
and eax, 0xfffffffc
add eax, 5
jmp 0x414533
mov edx, dword [ebx + 0xa0]
and edx, 0xffff00
cmp edx, 0x2e00
jne 0x414533
jmp 0x4145f4
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll__lstat64
test eax, eax
jne 0x414595
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov eax, 0xd
jmp 0x414533

Function at 0x414860
Capabilities:
Set current directory

Disassembly:
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x14
mov eax, dword [eax + 0x18]
cmp eax, edx
jne 0x414875
cmp eax, 0xfffffffe
jne 0x4148b1
test cl, cl
jne 0x414894
test byte [ebx + 0x28], 4
jne 0x41488b
test eax, eax
js 0x41488b
mov dword [esp], eax
call sub.cygwin1.dll_close
mov dword [ebx + 0x18], esi
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 4], eax
lea eax, [ebx + 0x34]
mov dword [esp], eax
call fcn.00423b90
test eax, eax
js 0x41488b
mov dword [esp], eax
call sub.cygwin1.dll_close
jmp 0x41488b
call sub.cygwin1.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4148c0
Capabilities:
Set current directory

Disassembly:
push esi
push ebx
mov ebx, eax
xor esi, esi
sub esp, 0x14
mov eax, dword [eax + 0x28]
test al, 4
jne 0x4148e8
test ah, 2
je 0x414900
mov ecx, 1
mov edx, 0xfffffffe
mov eax, ebx
xor esi, esi
call fcn.00414860
lea eax, [ebx + 0x34]
call fcn.00414820
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
test eax, eax
setne al
movzx eax, al
mov esi, eax
lea eax, [ebx + 0x34]
call fcn.00414820
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
Function at 0x414b30
Capabilities:
Set current directory

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
test esi, esi
je 0x414ba4
mov esi, dword [esp + 0xa4]
mov eax, 0x42c120
mov ecx, 3
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x414ba4
mov ebx, dword [ebp + 0x28]
test bl, 4
je 0x414bc3
and bh, 2
je 0x414c94
mov ebx, dword [esp + 0xa0]
test ebx, ebx
js 0x414c94
mov eax, dword [esp + 0xa0]
xor ebx, ebx
mov dword [esp], eax
call sub.cygwin1.dll_close
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 0x28]
test bl, 4
jne 0x414b6e
cmp dword [esp + 0xa0], 0
jns 0x414d8a
mov edx, ebx
mov byte [esp + 0x1f], 0
jmp 0x414bde
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jns 0x414c20
test bh, 2
jne 0x414ca3
mov edx, ebx
mov byte [esp + 0x1f], 1
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0xa4]
call fcn.00414a20
test eax, eax
mov dword [esp + 0x18], eax
js 0x414d80
mov ebx, dword [ebp + 0x28]
test bl, 2
jne 0x414d00
mov edx, dword [esp + 0xa4]
test edx, edx
je 0x414c4f
mov eax, 0x42c120
jmp 0x414c39
test bl, 2
jne 0x414cf0
mov edi, dword [esp + 0xa0]
mov byte [esp + 0x1f], 1
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0xa4]
mov ecx, 3
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x414d00
and bh, 2
jne 0x414d50
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
mov ebx, eax
mov eax, dword [esp + 0xa0]
test eax, eax
jns 0x414b97
call sub.cygwin1.dll___errno
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_close
call sub.cygwin1.dll___errno
mov dword [eax], esi
jmp 0x414b97
add esp, 0x8c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp + 0x34]
mov dword [esp], esi
call fcn.00423b80
test al, al
mov edx, ebx
jne 0x414bd9
mov dword [esp], esi
call fcn.00423bd0
test eax, eax
mov dword [esp + 0x18], eax
js 0x414d78
mov ebx, dword [ebp + 0x28]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1f], 1
test bl, 2
mov dword [esp + 0xa0], eax
je 0x414c4f
jmp 0x414d00
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x1f], 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
test eax, eax
jne 0x414d44
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
cmp dword [eax], edi
jne 0x414d39
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [esi + 4]
xor eax, dword [esp + 0x28]
xor edx, dword [esp + 0x2c]
or edx, eax
je 0x414d70
call sub.cygwin1.dll___errno
mov dword [eax], 2
mov eax, 0xffffffff
jmp 0x414c64
movzx ecx, byte [esp + 0x1f]
mov edx, dword [esp + 0x18]
mov eax, ebp
xor ebx, ebx
xor ecx, 1
movzx ecx, cl
call fcn.00414860
jmp 0x414b97
mov ebx, dword [ebp + 0x28]
jmp 0x414c4f
mov edx, dword [ebp + 0x28]
jmp 0x414bd9
mov ebx, 0xffffffff
jmp 0x414b97
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x18], eax
jmp 0x414bfc
Function at 0x415aa0
Capabilities:
Set current directory

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
test edx, edx
je 0x415af8
mov ecx, dword [edx + 0x30]
test ecx, ecx
jns 0x415ad1
jmp 0x415bab
mov dword [esp], edx
call fcn.004264dc
mov eax, dword [ebx + 0x30]
test eax, eax
js 0x415af0
mov edx, ebx
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x415ac0
mov ebx, dword [edx + 4]
mov dword [esp], edx
call fcn.004264dc
mov eax, dword [ebx + 0x30]
test eax, eax
jns 0x415acf
lea esi, [esi]
mov dword [esp], ebx
call fcn.004264dc
mov eax, dword [esi + 4]
test eax, eax
je 0x415b04
call fcn.004147b0
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esi + 0x28]
test ah, 2
je 0x415b71
mov eax, dword [esi + 0x18]
test eax, eax
js 0x415b35
mov dword [esp], eax
call sub.cygwin1.dll_close
test eax, eax
jne 0x415b93
lea eax, [esi + 0x34]
xor ebx, ebx
call fcn.00414820
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x415bff
mov dword [esp], eax
call fcn.0040f5d0
mov eax, esi
call fcn.004147f0
mov dword [esp], esi
call fcn.004264dc
test ebx, ebx
jne 0x415bee
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
test al, 4
jne 0x415b35
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
test eax, eax
jne 0x415bb2
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_close
test eax, eax
je 0x415b35
call sub.cygwin1.dll___errno
mov ebx, dword [eax]
lea eax, [esi + 0x34]
call fcn.00414820
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x415b4a
jmp 0x415b52
mov ebx, edx
jmp 0x415af0
call sub.cygwin1.dll___errno
mov ebx, dword [eax]
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_close
test eax, eax
je 0x415b9a
test ebx, ebx
je 0x415b93
lea eax, [esi + 0x34]
call fcn.00414820
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x415b4a
mov eax, esi
call fcn.004147f0
mov dword [esp], esi
call fcn.004264dc
call sub.cygwin1.dll___errno
mov dword [eax], ebx
mov eax, 0xffffffff
jmp 0x415b6b
mov eax, esi
call fcn.004147f0
mov dword [esp], esi
call fcn.004264dc
jmp 0x415b69
Function at 0x4170c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov eax, dword [eax + 8]
mov esi, dword [ebx + 4]
cmp eax, esi
jae 0x417180
mov esi, dword [ebx]
mov dword [esi + eax*8], edx
mov dword [esi + eax*8 + 4], ecx
mov edx, dword [ebx + 8]
mov eax, dword [ebx]
and dword [eax + edx*8 + 4], 0xfffc00ff
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
lea esi, [eax + edx*8]
xor eax, eax
cmp cl, 6
sete al
cmp cl, 5
je 0x417170
movzx edx, byte [esi + 6]
shl eax, 4
and edx, 0xffffffef
or eax, edx
mov byte [esi + 6], al
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [eax + edx*4], 0xffffffff
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x14]
lea eax, [eax + edx*4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x18]
lea eax, [eax + edx*4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [ebx + 8]
lea edx, [eax + 1]
mov dword [ebx + 8], edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp dword [ebx + 0x5c], 1
setg al
jmp 0x417102
lea edi, [esi + esi]
cmp edi, 0x15555555
ja 0x417240
mov eax, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
shl eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.cygwin1.dll_realloc
test eax, eax
je 0x417240
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
lea ebp, [esi*8]
lea esi, [edi + esi*4]
mov dword [esp + 4], ebp
mov dword [esp], eax
shl esi, 2
call sub.cygwin1.dll_realloc
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.cygwin1.dll_realloc
mov ebp, eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_realloc
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_realloc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x417240
test ebp, ebp
je 0x417240
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x417240
test eax, eax
je 0x417240
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], esi
mov dword [ebx + 4], edi
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
jmp 0x4170d7
mov eax, 0xffffffff
jmp 0x417167
Function at 0x41d9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
mov esi, ecx
sub esp, 0x4c
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x18], 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ecx + 8]
mov dword [esp + 4], eax
call fcn.0041cc40
test eax, eax
je 0x41da33
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 4]
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x70]
cmp edx, eax
jae 0x41daf0
test edx, edx
mov ecx, dword [ebx + 0x74]
jne 0x41dac0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
add eax, ecx
mov dword [eax], ebp
mov dword [eax + 4], edi
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp ebp, edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
sete cl
add edx, 1
movzx ecx, cl
neg ecx
mov word [eax + 0x12], cx
mov dword [ebx + 0x6c], edx
mov byte [eax + 0x10], 0
mov eax, ebp
sub eax, edi
cmp dword [ebx + 0x78], eax
jae 0x41daa2
mov dword [ebx + 0x78], eax
mov edi, dword [esp + 0x2c]
add edi, dword [esi + 4]
mov eax, dword [esp + 0x30]
mov edx, edi
sub edx, dword [eax]
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004180a0
lea eax, [edx + edx*4]
shl eax, 2
lea edi, [ecx + eax - 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 4]
jne 0x41da61
mov byte [edi + 0x10], 1
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x74]
lea eax, [edx + edx*4]
shl eax, 2
mov dword [esp + 0x34], eax
jmp 0x41da61
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x74]
mov dword [esp], eax
call sub.cygwin1.dll_realloc
test eax, eax
je 0x41db40
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x70]
mov dword [ebx + 0x74], eax
mov dword [esp + 4], 0
lea ecx, [ecx + ecx*4]
lea edx, [edx + edx*4]
lea eax, [eax + ecx*4]
shl edx, 2
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.cygwin1.dll_memset
shl dword [ebx + 0x70], 1
mov edx, dword [ebx + 0x6c]
jmp 0x41da52
mov eax, dword [ebx + 0x74]
mov dword [esp], eax
call fcn.004264dc
mov eax, 0xc
jmp 0x41da2b
Function at 0x423bd0
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 4
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1c], 0
jne 0x423c0a
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
lea ebx, [ecx + edx*4]
mov eax, dword [ebx]
mov dword [ebx], esi
cmp edx, dword [ecx + 0x18]
je 0x423c00
add edx, 3
and edx, 3
mov dword [ecx + 0x14], edx
add esp, 4
pop ebx
pop esi
ret
mov byte [ecx + 0x1c], 1
add esp, 4
pop ebx
pop esi
ret
call sub.cygwin1.dll_abort
nop

Function at 0x423c10
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.cygwin1.dll_nl_langinfo
test eax, eax
mov ebp, eax
je 0x423d90
mov edi, str.US_ASCII
mov ecx, 9
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x423cb0
mov ebx, dword [0x435a10]
test ebx, ebx
jne 0x423c68
jmp 0x423d20
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 esi, byte [ebx]
mov eax, esi
test al, al
je 0x423c99
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x423c8d
mov eax, esi
cmp al, 0x2a
jne 0x423c50
cmp byte [ebx + 1], 0
jne 0x423c50
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
lea ebp, [ebx + eax + 1]
cmp byte [ebp], 0
mov eax, str.ASCII
cmovne eax, ebp
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sub.cygwin1.dll_getenv
test eax, eax
je 0x423cc5
cmp byte [eax], 0
jne 0x423d34
mov dword [esp], str.LC_CTYPE
call sub.cygwin1.dll_getenv
test eax, eax
je 0x423cda
cmp byte [eax], 0
jne 0x423d34
mov dword [esp], str.LANG
call sub.cygwin1.dll_getenv
test eax, eax
je 0x423cef
cmp byte [eax], 0
jne 0x423d34
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [esp + 4], str.CP_u
mov dword [esp + 8], eax
mov ebp, 0x435a00
mov dword [esp], 0x435a00
call sub.cygwin1.dll_sprintf
mov ebx, dword [0x435a10]
test ebx, ebx
jne 0x423c68
mov dword [0x435a10], str.CP936
mov ebx, str.CP936
jmp 0x423c68
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
je 0x423cef
lea ebp, [eax + 1]
mov dword [esp + 4], 0x40
mov dword [esp], ebp
call sub.cygwin1.dll_strchr
test eax, eax
je 0x423d9a
sub eax, ebp
cmp eax, 0xc
mov ebx, eax
ja 0x423cef
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], 0x435a00
call sub.cygwin1.dll_memcpy
mov byte [ebx + 0x435a00], 0
mov eax, 0x435a00
jmp 0x423ca5
mov ebp, 0x42cae4
jmp 0x423c3d
mov eax, ebp
jmp 0x423ca5
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44108b]
shl eax, 2
mov dword [0x44108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405110
pop edx
call fcn.004044ac
call fcn.00405114
push 0
call fcn.00406664
pop ecx
push 0x441034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x441093], eax
push 0
jmp fcn.0040cd70

Function at 0x40160c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x490c21]
mov edx, dword [0x490c29]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x490c25]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x490c2d]
mov dword [0x4acd64], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401750
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016bb
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401752
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405688
add esp, 0xc
test eax, eax
je 0x4016d5
xor eax, eax
jmp 0x401752
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016fe
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401752
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49016c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49016c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401749
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401752
mov eax, 1
jmp 0x401752
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret