joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434bf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
push 0
push esi
mov ebx, ecx
mov dword [ebp - 0x11c], eax
push eax
push ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
test eax, eax
je 0x434cf0
lea eax, [ebp - 0x118]
mov edi, esi
push eax
push ecx
or edi, 0x20019
call fcn.00434d10
add esp, 4
or eax, edi
push eax
push 0
push dword [ebp - 0x11c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call ebx
test eax, eax
je 0x434c78
lea eax, [ebp - 0x118]
push eax
push edi
push 0
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call ebx
test eax, eax
jne 0x434cf0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov bl, 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x104
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x434cb4
xor bl, bl
xor eax, eax
jmp 0x434cd3
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x110]
push esi
call fcn.00434bf0
xor ecx, ecx
movzx ebx, bl
add esp, 4
test eax, eax
cmovne ebx, ecx
cmp bl, 1
je 0x434c80
test eax, eax
jne 0x434cf0
push eax
push esi
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Link many functions at runtime

Disassembly:
push edi
call fcn.10001140
push 0x105
push 0x1000d0b8
push 0x100105f4
call fcn.10005340
mov eax, dword [esp + 0x14]
push 0x104
push eax
push 0x100105f4
call fcn.10005210
push 0x1000d0b4
push 0x100105f4
call fcn.10005160
mov edi, 0x100105f4
or ecx, 0xffffffff
xor eax, eax
mov byte [0x100105fa], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x104
sub edx, ecx
push edx
push 0x1000d0b0
push 0x100105f4
call fcn.10005210
mov edi, 0x100105f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x104
sub eax, ecx
push eax
push str..dll
push 0x100105f4
call fcn.10005210
add esp, 0x38
push 0x100105f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100105d4], eax
pop edi
jne 0x100010b2
mov dword [0x100105d4], eax
mov ax, 0x1c
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._dllLockIFH_0
push eax
call esi
mov ecx, dword [0x100105d4]
push str._dllUnlockIFH_0
push ecx
mov dword [0x100105d8], eax
call esi
mov edx, dword [0x100105d4]
push str._dllStartupIFH_8
push edx
mov dword [0x100105dc], eax
call esi
mov dword [0x100105e0], eax
mov eax, dword [0x100105d4]
push str._dllShutdownIFH_0
push eax
call esi
mov ecx, dword [0x100105d4]
push str._dllCheckIFH_4
push ecx
mov dword [0x100105e4], eax
call esi
mov edx, dword [0x100105d4]
push str._dllExitIFH_0
push edx
mov dword [0x100105e8], eax
call esi
mov dword [0x100105ec], eax
mov eax, dword [0x100105d4]
push str._dllCallIFH_8
push eax
call esi
mov dword [0x100105f0], eax
xor ax, ax
pop esi
ret
Function at 0x100025a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
xor ebx, ebx
lea eax, [esp + 0xe]
push eax
call fcn.100015d0
add esp, 4
cmp ax, bx
mov dword [esp + 0x14], eax
jne 0x100025e8
mov ax, word [esp + 0xe]
cmp ax, 1
jne 0x100025f5
call esi
sub eax, edi
cmp eax, 0x1f4
jb 0x100025b5
mov eax, dword [esp + 0x14]
cmp ax, bx
jle 0x100025f0
mov dword [esp + 0x18], ebx
jmp 0x10002637
mov ax, word [esp + 0xe]
cmp ax, bx
jne 0x1000261e
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0x400
call fcn.100016e0
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x1000263b
cmp ax, 1
je 0x100026f4
cmp ax, 2
jne 0x1000263b
call fcn.10001680
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x420]
push ebx
mov ecx, dword [eax + 8]
mov edx, dword [eax]
push ecx
push 0x100
push edx
call fcn.10004490
mov esi, dword [esp + 0x434]
add esp, 0x10
cmp eax, ebx
mov dword [esi], eax
je 0x100026da
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 4
push eax
call fcn.10004500
add esp, 0x14
cmp ax, bx
jle 0x100026d8
mov eax, dword [esi]
lea edx, [esp + 0xe]
push edx
push ebx
push ebx
push 4
push eax
call fcn.10004700
add esp, 0x14
cmp ax, bx
jle 0x100026d8
mov edx, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 4
push edx
call fcn.10004700
add esp, 0x14
cmp ax, bx
jle 0x100026d8
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push 8
push edx
call fcn.10004700
add esp, 0x14
cmp ax, bx
jle 0x100026d8
mov eax, dword [esi]
push eax
call fcn.100048f0
add esp, 4
cmp ax, bx
jne 0x100026f4
mov ecx, dword [esi]
push ecx
call fcn.10004d30
add esp, 4
mov dword [esi], eax
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x410
ret
pop edi
pop esi
mov ax, 1
pop ebx
add esp, 0x410
ret
Function at 0x10004dc0
Capabilities:
Create process on windows

Disassembly:
push str.TRACER32_USAGECOUNTER
push 0
call fcn.10004440
add esp, 8
mov dword [0x10011920], eax
test eax, eax
jne 0x10004e2b
push 7
push str.tracex32.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x10004ded
xor eax, eax
ret
push str.TRACER32_USAGECOUNTER
push 0
call fcn.10004440
add esp, 8
mov dword [0x10011920], eax
test eax, eax
jne 0x10004e34
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push str.TRACER32_USAGECOUNTER
push 0
call fcn.10004440
add esp, 8
mov dword [0x10011920], eax
test eax, eax
je 0x10004e0c
pop esi
jmp 0x10004e34
push eax
call fcn.10004460
add esp, 4
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push str..mailslotEDIABASTracerMailslot
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10011924], eax
jne 0x10004e65
mov dword [0x10011924], 0
xor eax, eax
ret
push str.EDIABASTracerEvent
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
mov dword [0x10011928], eax
jne 0x10004e7e
ret
mov eax, 0x100115f0
mov dword [eax], 0
add eax, 0x194
cmp eax, 0x10011aac
jl 0x10004e83
mov eax, 1
mov dword [0x1001191c], eax
ret

Function at 0x10004fa0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, 0x51eb851f
push ebx
mul dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
shr edx, 5
push ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], edx
call ebp
mov ecx, dword [0x10011928]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x10]
cmp eax, esi
jae 0x10005044
cmp eax, 4
ja 0x10005002
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
je 0x1000504f
jmp 0x1000501b
mov edx, 4
sub edx, eax
add eax, edi
add esi, edx
push esi
push eax
lea eax, [edi + 4]
push eax
call fcn.10005960
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edi
push ebx
call ebp
mov edx, dword [0x10011928]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x10]
cmp eax, esi
jb 0x10004ff0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x100086a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000ff18
cmp edx, dword [eax]
je 0x100086ca
add eax, 8
inc ecx
cmp eax, 0x1000ffa8
jl 0x100086bb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000ff18]
jne 0x100087f8
mov eax, dword [0x10011a3c]
cmp eax, 1
je 0x100087d2
test eax, eax
jne 0x100086fb
cmp dword [0x10011a40], 1
je 0x100087d2
cmp edx, 0xfc
je 0x100087f8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10008732
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10009ff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10007e20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10008775
lea eax, [ebp - 0x1a4]
push eax
call fcn.10007e20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000c45c
push edi
call fcn.10005340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10009ff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1000a000
lea eax, [ebp - 0xa0]
push 0x1000c43c
push eax
call fcn.1000a000
push dword [esi + 0x1000ff1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.1000a000
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000a415
add esp, 0x2c
pop edi
jmp 0x100087f8
lea eax, [ebp + 8]
lea esi, [esi + 0x1000ff1c]
push 0
push eax
push dword [esi]
call fcn.10007e20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x416a30
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00414ab0
cmp word [0x480954], 1
jle 0x416a7a
call fcn.00409f30
mov dword [esp + 0xc], 0x47b400
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s__pushing_local_filters_for__s_n
mov dword [esp], 2
call fcn.00420340
mov eax, dword [0x47b3c4]
test eax, eax
je 0x416c40
shl eax, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 1
add eax, 4
mov dword [esp], eax
call fcn.0041a790
test eax, eax
mov dword [esp + 0x2c], eax
je 0x416c4a
mov esi, dword [0x47b3c4]
mov eax, dword [esp + 0x2c]
test esi, esi
mov dword [eax], esi
jle 0x416c30
mov ecx, dword [0x47b3c8]
add eax, 4
xor ebx, ebx
mov edx, dword [ecx + ebx*4]
add ebx, 1
add eax, 0x10
mov edx, dword [edx + 0xc]
mov edi, dword [edx]
mov dword [eax - 0x10], edi
mov edi, dword [edx + 4]
mov dword [eax - 0xc], edi
mov edi, dword [edx + 8]
mov dword [eax - 8], edi
mov edx, dword [edx + 0xc]
mov dword [eax - 4], edx
cmp ebx, esi
jne 0x416ad0
xor esi, esi
mov ebp, 0x1000
jmp 0x416b3d
mov dword [esp + 0xc], 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x47b400
mov dword [esp], edi
call fcn.00416430
add esi, 1
cmp dword [0x47b3c4], esi
mov eax, dword [0x47b3d4]
mov byte [eax + 0x47b400], 0
jle 0x416c30
mov ecx, dword [0x47b3c8]
cmp word [0x480954], 1
mov ebx, dword [ecx + esi*4]
mov edi, dword [ebx + 0xc]
jle 0x416b7d
mov edx, dword [edi + 0xc]
mov dword [esp + 0x28], edx
call fcn.00409f30
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s__pushing_mergelist__d_s_n
mov dword [esp], 2
mov dword [esp + 0x10], edx
call fcn.00420340
mov eax, dword [ebx + 8]
mov dword [edi + 4], 0
test ah, 1
je 0x416b92
mov dword [edi], 0
test ah, 0x20
jne 0x416c00
mov eax, dword [0x47b3d4]
mov edx, ebp
sub edx, eax
add eax, 0x47b400
mov dword [esp + 8], edx
mov edx, dword [ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll_strlcpy
mov edx, ebp
sub edx, dword [0x47b3d4]
cmp eax, edx
jb 0x416b00
mov dword [esp], 0x47b400
or dword [0x47e714], 1
call fcn.004191d0
mov dword [esp + 4], str.cannot_add_local_filter_rules_in_long_named_directory:__s_n
mov dword [esp + 8], eax
mov dword [esp], 3
call fcn.00420340
jmp 0x416b1c
and ah, 0xdf
mov ecx, edi
mov edx, ebx
mov dword [ebx + 8], eax
mov eax, esi
call fcn.00416780
test eax, eax
je 0x416b97
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00414ab0
jmp 0x416b97
mov eax, dword [esp + 0x2c]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.push_local_filters
call fcn.0041a8d0
lea esi, [esi]
lea edi, [edi]
Function at 0x416c60
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
test esi, esi
je 0x416cf3
cmp ebx, 0x800
jg 0x416d36
mov eax, dword [0x451080]
cmp ebx, eax
jle 0x416cb4
jmp 0x416cd0
mov dword [esp], eax
call fcn.00414bd0
mov eax, dword [0x451080]
mov dword [eax*4 + 0x478380], 0
sub eax, 1
cmp ebx, eax
mov dword [0x451080], eax
jg 0x416cd0
mov eax, dword [eax*4 + 0x478380]
test eax, eax
jne 0x416c90
mov eax, dword [0x451080]
sub eax, 1
cmp ebx, eax
mov dword [0x451080], eax
jle 0x416cb4
mov eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [0x451080], ebx
mov dword [esp + 4], eax
call fcn.00416a30
mov dword [ebx*4 + 0x478380], eax
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [0x451080]
test eax, eax
jns 0x416d24
jmp 0x416ced
mov dword [esp], eax
call fcn.00414bd0
mov eax, dword [0x451080]
mov dword [eax*4 + 0x478380], 0
sub eax, 1
test eax, eax
mov dword [0x451080], eax
js 0x416ced
mov eax, dword [eax*4 + 0x478380]
test eax, eax
jne 0x416d00
mov eax, dword [0x451080]
jmp 0x416d18
mov dword [esp + 0xc], str.dir_depth___MAXPATHLEN_21
mov dword [esp + 8], str.change_local_filter_dir
mov dword [esp + 4], 0x266
mov dword [esp], str.exclude.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]

Function at 0x416d60
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
push eax
mov eax, 0x1010
call fcn.0044e3e0
sub esp, eax
mov edx, dword [0x478354]
mov eax, dword [esp + eax]
test edx, edx
jne 0x416e73
cmp dword [0x452f10], 0x1d
mov ebx, eax
mov edx, 0
mov eax, 0x80000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x478358
mov dword [esp + 4], str.RCS_SCCS_CVS_CVS.adm_RCSLOG_cvslog._tags_TAGS_.make.state_.nse_depinfo___.________.old_.bak_.BAK_.orig_.rej_.del__.a_.olb_.o_.obj_.so_.exe_.Z_.elc_.ln_core_.svn__.git__.hg__.bzr_
mov dword [esp], 0x45119c
mov dword [0x478354], 1
cmovle eax, edx
or eax, ebx
mov dword [0x478360], eax
call fcn.00415a00
mov eax, dword [0x453300]
test eax, eax
js 0x416de4
mov dword [esp], eax
call fcn.00439cf0
test eax, eax
jne 0x416e80
mov dword [esp], 0x456212
call sub.cygwin1.dll_getenv
test eax, eax
je 0x416e41
lea esi, [esp + 0x10]
mov dword [esp + 0xc], str..cvsignore
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call fcn.00418470
cmp eax, 0xfff
ja 0x416e41
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x478358
mov dword [esp + 4], esi
mov dword [esp], 0x45119c
mov dword [0x478360], ebx
call fcn.00416430
mov dword [esp], str.CVSIGNORE
mov dword [0x478360], ebx
call sub.cygwin1.dll_getenv
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x478358
mov dword [esp + 4], eax
mov dword [esp], 0x45119c
call fcn.00415a00
add esp, 0x1014
pop ebx
pop esi
ret
mov eax, 0x4559c8
jmp 0x416df4
Function at 0x418d30
Capabilities:
Set current directory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x60]
mov dword [esp], ebx
mov dword [esp + 0x2c], ebx
call sub.cygwin1.dll_strlen
test ebp, ebp
je 0x418d99
cmp byte [ebp], 0
je 0x418d99
mov dword [esp], ebp
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp + 4], ebx
call sub.cygwin1.dll_strncmp
test eax, eax
mov eax, dword [0x452ef8]
lea ecx, [ebp + esi]
cmove ebp, ecx
test eax, eax
je 0x418da1
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00418b00
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call sub.cygwin1.dll_strdup
test eax, eax
mov dword [esp + 0x1c], eax
je 0x418e6b
lea eax, [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.__s_
mov dword [esp], eax
call sub.cygwin1.dll_asprintf
test eax, eax
js 0x418e6b
mov eax, dword [esp + 0x1c]
lea ebx, [esi + 1]
cmp byte [eax], 0
je 0x418e4b
mov esi, eax
mov ebp, edi
jmp 0x418e17
mov byte [eax], 0
mov eax, dword [esp + 0x5c]
mov dword [esp], esi
lea esi, [edi + ebx]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00418b00
cmp byte [esi], 0
je 0x418e4b
mov eax, dword [esp + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_strstr
test eax, eax
mov edi, eax
jne 0x418df0
mov eax, dword [esp + 0x5c]
mov edi, ebp
mov dword [esp], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
call fcn.00418b00
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0044e534
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0044e534
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.glob_expand_module
call fcn.0041a8d0
mov esi, esi
lea edi, [edi]
Function at 0x418e80
Capabilities:
Set current directory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [0x47c550]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test esi, esi
je 0x418fa0
test ebx, ebx
je 0x418fdf
mov dword [esp], ebx
call sub.cygwin1.dll_strlen
cmp eax, 1
mov esi, eax
je 0x418ff0
cmp byte [ebx], 0x2f
je 0x419031
mov edx, dword [0x47e740]
lea eax, [edx + 1]
lea ecx, [esi + eax]
cmp ecx, 0xfff
ja 0x419038
test edx, edx
je 0x418ee9
cmp byte [edx + 0x47e77f], 0x2f
je 0x419080
mov dword [0x47e740], eax
mov byte [edx + 0x47e780], 0x2f
add eax, 0x47e780
add esi, 1
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
test edi, edi
je 0x419090
mov dword [0x47c54c], edi
mov dword [esp + 4], 0xc
mov dword [esp], 0x47e780
call fcn.004185f0
mov edx, dword [0x47c440]
mov dword [0x47e740], eax
test edx, edx
je 0x418f5f
mov edx, dword [0x47e200]
cmp eax, edx
jb 0x419050
add edx, 0x47e780
mov dword [esp], edx
call fcn.00418590
mov dword [0x47e744], eax
test edi, edi
jne 0x418f92
cmp word [0x480946], 0
jle 0x418f92
call fcn.00409f30
mov dword [esp + 0xc], 0x47e780
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s__change_dir__s__n
mov dword [esp], 2
call fcn.00420340
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0xfff
mov dword [esp], 0x47e780
mov dword [0x47c550], 1
call sub.cygwin1.dll_getcwd
test eax, eax
je 0x4190b7
mov dword [esp], 0x47e780
call sub.cygwin1.dll_strlen
test ebx, ebx
mov dword [0x47e740], eax
jne 0x418ea4
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
movzx eax, byte [ebx]
cmp al, 0x2e
je 0x419060
cmp al, 0x2f
jne 0x418ec0
test edi, edi
jne 0x41900f
mov dword [esp], ebx
call sub.cygwin1.dll_chdir
test eax, eax
jne 0x418fdf
add esi, 1
mov dword [esp + 4], ebx
mov dword [esp], 0x47e780
mov dword [esp + 8], esi
mov dword [0x47c54c], edi
call sub.cygwin1.dll_memcpy
jmp 0x418f1b
cmp eax, 0xfff
jbe 0x418fff
call sub.cygwin1.dll___errno
mov dword [eax], 0x5b
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov dword [0x47e200], eax
mov edx, eax
jmp 0x418f4c
test edi, edi
jne 0x418f92
mov ecx, dword [0x47c54c]
test ecx, ecx
jne 0x418ec0
jmp 0x418f92
mov eax, edx
jmp 0x418ef5
mov dword [esp], 0x47e780
call sub.cygwin1.dll_chdir
test eax, eax
je 0x418f15
mov eax, dword [0x47e740]
mov byte [eax + 0x47e780], 0
xor eax, eax
jmp 0x418fe1
call sub.cygwin1.dll___errno
mov dword [esp + 8], str.getcwd__
mov eax, dword [eax]
mov dword [esp], 3
mov dword [esp + 4], eax
call fcn.0041f9e0
mov dword [esp + 8], 0x420
mov dword [esp + 4], str.util.c
mov dword [esp], 3
call fcn.00412fd0
lea esi, [esi]
lea edi, [edi]
Function at 0x419f90
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov dword [esp], 8
call fcn.0044e664
mov esi, eax
lea ecx, [ebx + 0x3fffe]
add ebx, 0x1ffff
mov edx, ebx
cmovs edx, ecx
sar edx, 0x11
mov dword [eax + 4], edx
mov dword [esp + 4], 4
mov dword [esp], edx
call fcn.0044e48c
test eax, eax
mov dword [esi], eax
je 0x419fdc
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
mov dword [esp], str.bitbag_create
call fcn.0041a8d0
nop
lea esi, [esi]

Function at 0x419ff0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov eax, esi
sar eax, 0x1f
shr eax, 0xf
lea ebx, [esi + eax]
and ebx, 0x1ffff
sub ebx, eax
lea eax, [esi + 0x1ffff]
test esi, esi
cmovs esi, eax
mov eax, dword [edi]
sar esi, 0x11
lea ebp, [eax + esi*4]
mov edx, dword [ebp]
test edx, edx
je 0x41a060
lea eax, [ebx + 0x1f]
test ebx, ebx
mov esi, ebx
cmovns eax, ebx
sar esi, 0x1f
shr esi, 0x1b
sar eax, 5
lea ecx, [ebx + esi]
mov ebx, 1
and ecx, 0x1f
sub ecx, esi
shl ebx, cl
or dword [edx + eax*4], ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 4
mov dword [esp], 0x1000
call fcn.0044e48c
test eax, eax
mov dword [ebp], eax
je 0x41a082
mov eax, dword [edi]
mov edx, dword [eax + esi*4]
jmp 0x41a02c
mov dword [esp], str.bitbag_set_bit
call fcn.0041a8d0
nop
Function at 0x41a6a0
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, 0x10624dd3
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
lea edi, [esp + 0x28]
mov dword [esp], eax
call sub.cygwin1.dll_gettimeofday
xor ecx, ecx
test ebx, ebx
jle 0x41a781
mov eax, ebx
sub eax, ecx
mov ecx, eax
imul esi
mov eax, ecx
sar eax, 0x1f
sar edx, 6
sub edx, eax
mov dword [esp + 0x28], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [esp + 0x2c], ecx
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.cygwin1.dll_select
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.cygwin1.dll_gettimeofday
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jge 0x41a75b
mov edx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ebp, dword [esp + 0x3c]
sub ebp, dword [esp + 0x34]
sub ecx, eax
imul ecx, ecx, 0x3e8
mov eax, ebp
sar ebp, 0x1f
imul esi
sar edx, 6
sub edx, ebp
add ecx, edx
cmp ebx, ecx
jg 0x41a6d2
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret