joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4676bf
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test eax, eax
je 0x4677d6
cmp dword [esi + 8], edi
je 0x4677d6
cmp dword [esi + 0x10], edi
je 0x4677d6
push ebx
push edi
push 0x80
push 1
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4677d5
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
test edx, edx
jle 0x4677c4
cmp dword [esi + 0x18], edi
je 0x4677b2
cmp dword [esi + 0xc], 0x28
jb 0x4677c7
mov esi, dword [ecx + 0x20]
mov eax, 0x4d42
shl esi, 2
mov word [ebp - 0x14], ax
lea eax, [esi + 0x36]
mov dword [ebp - 0xa], eax
lea eax, [edx + 0xe]
mov dword [ebp - 0x12], eax
xor eax, eax
mov dword [ebp - 0xe], eax
cmp dword [ecx + 8], edi
jne 0x467796
mov eax, edx
sub eax, esi
lea esi, [eax - 0x28]
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
mov dword [ecx + 0x14], esi
add eax, 0x1f
cdq
and edx, 7
lea ecx, [edx + eax]
mov eax, esi
sar ecx, 3
xor edx, edx
and ecx, 0xfffffffc
div ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x1c], edi
push edi
lea eax, [ebp - 0x18]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4677c7
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push edi
lea eax, [ebp - 0x18]
push eax
push edx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4677c7
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00468ba0
mov esp, ebp
pop ebp
ret 4
Function at 0x468b90
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x474360
call fcn.00469244
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4770e0
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x468995
cmp eax, edi
jne 0x4689a7
mov esi, ebx
cmp dword [0x4770e4], ebx
jne 0x4689b4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4689e3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46897e
cmp dword [0x4770e4], 0
jne 0x4689dd
mov dword [0x4770e4], ebx
push 0x40105c
push 0x401050
call fcn.00468b34
pop ecx
pop ecx
test eax, eax
je 0x4689e3
jmp 0x468b1d
mov dword [0x476624], ebx
cmp dword [0x4770e4], ebx
jne 0x468a06
push 0x40104c
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4770e4], 2
test esi, esi
jne 0x468a13
xor eax, eax
mov ecx, 0x4770e0
xchg dword [ecx], eax
cmp dword [0x4770f0], 0
je 0x468a41
push 0x4770f0
call fcn.00469070
pop ecx
test eax, eax
je 0x468a41
push 0
push 2
push 0
mov esi, dword [0x4770f0]
mov ecx, esi
call dword [0x478f64]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x468b1d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x468ab1
test ax, ax
je 0x468a6a
test edx, edx
jne 0x468ab1
movzx eax, word [ecx]
test ax, ax
je 0x468a7f
cmp ax, si
ja 0x468a7f
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x468a6a
test byte [ebp - 0x40], 1
je 0x468a8b
movzx eax, word [ebp - 0x3c]
jmp 0x468a8e
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x476620], eax
cmp dword [0x476638], 0
jne 0x468af9
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x468ac2
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x468a59
cmp dword [0x476624], 0
jne 0x468b0d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x476620]
mov dword [ebp - 4], 0xfffffffe
jmp 0x468b29
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0046928c
ret
call fcn.00469178
jmp 0x468948

Function at 0x468f5f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4743a8
call fcn.004694f4
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x468fbf
cmp eax, 0xffffffff
je 0x468fbf
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x468fb8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x468fb8
cmp edx, 0x10000000
jae 0x468fb8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x468fb5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00469539
ret 4
Function at 0x469020
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x46905e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x469056
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x469060
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x469046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x469140
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x469156
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x469171
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x402590
Capabilities:
Get socket status

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x2710
mov dword [esp], eax
call sub.cygX11_6.dll_XSync
mov dword [esp], 0
lea eax, [ebp - 8]
xor ecx, ecx
mov dword [esp + 0x10], eax
xor edx, edx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_select
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XSync
leave
ret
Function at 0x4036a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ecx, dword [0x413198]
mov ebx, dword [ebp + 8]
test ecx, ecx
jne 0x403744
test ebx, ebx
jne 0x403700
mov dword [esp + 4], ebx
mov dword [esp], 0x4140a0
call fcn.00406d60
mov dword [esp], ebx
call fcn.00407310
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XQLength
test eax, eax
je 0x4036e9
test ebx, ebx
je 0x4036f0
add esp, 0x24
pop ebx
pop ebp
ret
add esp, 0x24
pop ebx
pop ebp
jmp fcn.00402e40
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [0x41104c]
mov dword [esp + 0x14], eax
mov eax, dword [0x411050]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [0x4141e0]
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XClearArea
call fcn.00408570
jmp 0x4036bc
call fcn.00407b80
mov eax, dword [0x41319c]
test eax, eax
js 0x4036b8
mov edx, dword [0x41302c]
test edx, edx
je 0x4036b8
mov dword [esp + 4], eax
mov dword [esp], 0x4141d0
call fcn.00405950
mov dword [esp + 8], eax
mov eax, str.Iconify_off__Raise__Focus
mov dword [esp + 4], eax
mov dword [esp], 0x4141a0
call fcn.0040f120
jmp 0x4036b8
Function at 0x4077d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x414
mov eax, dword [0x4131c4]
test eax, eax
je 0x4078e8
mov eax, dword [str.fixed]
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XLoadQueryFont
mov dword [0x414250], eax
test eax, eax
mov edx, eax
jne 0x40782d
mov eax, str.fixed
mov dword [esp + 4], eax
mov eax, dword [0x4141b0]
mov dword [esp], eax
call sub.cygX11_6.dll_XLoadQueryFont
mov dword [0x414250], eax
test eax, eax
mov edx, eax
je 0x407951
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x48]
add eax, ecx
mov dword [0x414180], eax
call fcn.004073a0
mov eax, dword [0x4131c0]
test eax, eax
jne 0x407890
mov ebx, 5
mov ecx, str.XX:XX
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [0x414250]
mov dword [esp], eax
call sub.cygX11_6.dll_XTextWidth
mov edx, dword [0x4131cc]
add eax, 4
mov dword [0x414260], eax
add eax, edx
mov dword [0x4131cc], eax
mov dword [0x411168], eax
add esp, 0x414
pop ebx
pop ebp
ret
mov dword [esp], 0x4131d8
call sub.cygwin1.dll_time
mov dword [esp], 0x4131d8
call sub.cygwin1.dll_localtime
mov dword [esp + 0xc], eax
mov eax, dword [0x4131c0]
mov dword [esp], 0x4131e8
mov dword [esp + 8], eax
mov eax, 0x18
mov dword [esp + 4], eax
call sub.cygwin1.dll_strftime
mov dword [esp], 0x4131e8
call sub.cygwin1.dll_strlen
mov dword [esp + 8], eax
mov eax, 0x4131e8
mov dword [esp + 4], eax
jmp 0x40785a
mov byte [ebp - 0x3f8], 0
mov eax, 0x7261762f
lea ebx, [ebp - 0x408]
mov dword [ebp - 0x408], eax
mov eax, 0x6f70732f
mov dword [ebp - 0x404], eax
mov eax, 0x6d2f6c6f
mov dword [ebp - 0x400], eax
mov eax, 0x2f6c6961
mov dword [ebp - 0x3fc], eax
call sub.cygwin1.dll__getuid32
mov dword [esp], eax
call sub.cygwin1.dll__getpwuid32
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll_strcat
mov dword [esp + 4], ebx
mov dword [esp], 0x4131c4
call fcn.004070b0
jmp 0x4077e7
call sub.cygwin1.dll___getreent
mov edx, dword [0x414170]
mov ebx, str._s:_Couldnt_load_fixed_font._Exiting__n
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
Function at 0x409580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [ebp + 8]
mov dword [esp], str.FVWM_VISUALID
mov dword [0x4142a0], esi
call sub.cygwin1.dll_getenv
test eax, eax
mov edx, eax
je 0x4095a8
cmp byte [eax], 0
jne 0x409600
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x8c]
lea eax, [eax + eax*4]
shl eax, 4
mov ebx, dword [eax + edx + 0x28]
mov ecx, dword [eax + edx + 0x24]
mov eax, dword [eax + edx + 0x30]
mov edx, 1
mov dword [0x4142d0], ebx
mov dword [0x4133b8], ebx
mov dword [0x4142b0], ecx
mov dword [0x4142c0], eax
mov dword [0x414290], edx
mov dword [0x4133d8], ecx
mov dword [0x4133c8], eax
add esp, 0x50
pop ebx
pop esi
pop ebp
ret
mov dword [esp], edx
lea eax, [ebp - 0x34]
lea ebx, [ebp - 0x38]
mov dword [esp + 8], eax
mov eax, 0x411c08
mov dword [esp + 4], eax
call sub.cygwin1.dll_sscanf
mov dword [esp + 8], ebx
lea eax, [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp], esi
mov esi, 0x4142c0
mov dword [esp + 4], eax
call sub.cygX11_6.dll_XGetVisualInfo
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax]
mov dword [esp], str.FVWM_COLORMAP
mov dword [0x4142b0], ecx
mov dword [0x4142d0], ebx
mov ebx, 0x411c08
call sub.cygwin1.dll_getenv
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call sub.cygwin1.dll_sscanf
xor ecx, ecx
mov ebx, dword [0x4142d0]
mov eax, dword [0x4142c0]
mov dword [0x414290], ecx
mov ecx, dword [0x4142b0]
mov dword [0x4133b8], ebx
mov dword [0x4133c8], eax
mov dword [0x4133d8], ecx
add esp, 0x50
pop ebx
pop esi
pop ebp
ret

Function at 0x409e60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0xffffffff
call sub.cygwin1.dll___errno
mov dword [eax], 4
mov ecx, 1
mov edx, 0x4134d4
mov dword [0x4134d0], ecx
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.cygwin1.dll_pthread_sigmask
mov dword [esp], 0x413400
call sub.cygwin1.dll_setjmp
test eax, eax
jne 0x409ec8
mov eax, 1
mov dword [0x4133f0], eax
mov eax, dword [0x4133e8]
test eax, eax
je 0x409ed0
xor eax, eax
mov dword [0x4133f0], eax
mov eax, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_select
mov dword [ebp - 4], eax
xor eax, eax
mov dword [0x4133f0], eax
jmp 0x409ec8
Function at 0x409f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0xc]
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, str._s:_Cause_of_next_X_Error._n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
movzx edx, byte [esi + 0x10]
mov al, dl
dec al
cmp al, 0x10
ja 0x40a030
movzx eax, dl
mov ebx, dword [eax*4 + 0x4111dc]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov ebx, str.___Error:__d___s__n
movzx edx, byte [esi + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
movzx edx, byte [esi + 0x11]
mov al, dl
dec al
cmp al, 0x76
ja 0x40a056
movzx eax, dl
mov ebx, dword [eax*4 + 0x41123c]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov ebx, str.___Minor_opcode_of_failed_request:___d__n
movzx edx, byte [esi + 0x11]
mov dword [esp + 8], edx
mov edx, str.___Major_opcode_of_failed_request:___d___s__n
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
movzx edx, byte [esi + 0x12]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov edx, dword [esi + 8]
mov ecx, str.___Resource_id_of_failed_request:__0x_lx__n
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov edx, 0x19
mov dword [esp + 8], edx
mov dword [esp], str._Leaving_a_core_dump_now_n
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
lea esi, [esi]
mov dword [esp], 0x4134e0
movzx eax, dl
mov ebx, 0x4134e0
mov dword [esp + 8], eax
mov eax, str.Unknown:__d
mov dword [esp + 4], eax
call sub.cygwin1.dll_sprintf
jmp 0x409f55
mov dword [esp], 0x4134e0
movzx eax, dl
mov ecx, str.Unknown:__d
mov dword [esp + 8], eax
mov ebx, 0x4134e0
mov dword [esp + 4], ecx
call sub.cygwin1.dll_sprintf
jmp 0x409f94

Function at 0x40a080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], esi
mov esi, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov edx, str._s_of__d_bytes_failed._Exiting_n
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
Function at 0x40c0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040be10
mov dword [ebp - 0x10], eax
cmp ebx, esi
jg 0x40c12c
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edi + ebx*4]
test eax, eax
jne 0x40c150
inc ebx
cmp ebx, esi
jle 0x40c120
mov dword [esp], edi
call sub.cygwin1.dll_free
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c15b
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
inc ebx
call sub.cygwin1.dll_free
jmp 0x40c128
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0x41276c
mov dword [esp + 0xc], eax
mov eax, 0x19
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
xor eax, eax
jmp 0x40c146

Function at 0x40fa50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, edx
mov dword [ebp - 0xc], ebx
mov dword [esp], eax
call fcn.0040a1a0
test eax, eax
mov esi, eax
je 0x40fb00
movzx eax, byte [eax]
cmp al, 0x24
sete al
movzx eax, al
lea ebx, [esi + eax]
cmp byte [ebx], 0x7b
je 0x40fae0
test edi, edi
jle 0x40fa96
mov dword [esp], esi
call sub.cygwin1.dll_strlen
cmp edi, eax
jb 0x40fac0
mov dword [esp], ebx
call sub.cygwin1.dll_getenv
test eax, eax
mov ebx, eax
je 0x40fad2
mov dword [esp], esi
call sub.cygwin1.dll_free
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov byte [esi + edi], 0
mov dword [esp], ebx
call sub.cygwin1.dll_getenv
test eax, eax
mov ebx, eax
jne 0x40faa4
mov ebx, dword [0x4114a0]
jmp 0x40faa4
inc ebx
mov ecx, 0x7d
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.cygwin1.dll_strchr
test eax, eax
je 0x40fa86
mov byte [eax], 0
jmp 0x40fa86
mov eax, dword [0x4114a0]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x4109b7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x410a7c
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x410a50
cmp eax, 4
je 0x410a50
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x4109aa
cmp eax, 4
je 0x4109aa
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4109aa
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x4109aa
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x410a2a
jmp 0x4109aa
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00410600
lea esi, [esi]
lea edi, [edi]
Function at 0x11e9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x11e938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1212074
push ecx
mov edi, eax
call fcn.011fd198
mov esi, eax
add esp, 8
test esi, esi
jne 0x11e93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.011fd02e
push esi
call fcn.011fcfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x11ec850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x11ec8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x1217720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x11ec8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.011fd1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x11ec8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1217720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x11ec92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.011fe082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x11ec957
mov word [eax], si
add eax, 2
push eax
call fcn.011fe030
add esp, 4
jmp 0x11ec959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x11ec8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x11ec8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x11ecff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret