joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11270
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push esi
push edi
mov dword [0x22040], 0x64
mov esi, dword [esp + 0x40]
mov dword [0x22048], esi
push 0x2404c
push section..bss
call sub.KERNEL32.dll_lstrcpyA
mov dword [0x22350], 0
mov dword [0x22658], 0
mov dword [0x2203c], 0xffffffff
push 0x24050
push 0x22458
call sub.KERNEL32.dll_lstrcpyA
mov dword [0x22454], 0xffffffff
push 0x24054
push 0x22558
call sub.KERNEL32.dll_lstrcpyA
push 0x24060
push 0x22250
call sub.KERNEL32.dll_lstrcpyA
push 0x24064
push 0x2214c
call sub.KERNEL32.dll_lstrcpyA
push 0x24068
push 0x2204c
call sub.KERNEL32.dll_lstrcpyA
mov dword [0x22660], 0
mov dword [0x2265c], 0
call fcn.00016cb0
lea eax, [esp + 0x1c]
push 0x1f
push eax
push 1
push esi
call sub.USER32.dll_LoadStringA
push 0
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
lea eax, [esp + 0x3c]
push 0xef0000
push eax
push 0x2406c
push 0
call sub.USER32.dll_CreateWindowExA
mov edi, eax
or edi, edi
jne 0x11372
sub eax, eax
pop edi
pop esi
add esp, 0x34
ret
push edi
call fcn.00013140
lea eax, [esp + 0xc]
push eax
push edi
call sub.USER32.dll_GetClientRect
push 0
push esi
push 0
mov eax, dword [esp + 0x24]
push edi
push eax
mov eax, dword [esp + 0x28]
push eax
push 0
push 0
push 0x402000c4
push 0x2407c
push str.EDIT
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x22350], eax
or eax, eax
jne 0x113c0
sub eax, eax
pop edi
pop esi
add esp, 0x34
ret
mov dword [0x22350], eax
mov dword [esp + 8], 0x20
lea ecx, [esp + 8]
push ecx
push 1
push 0xcb
push eax
call sub.USER32.dll_SendMessageA
push 0
push 0x2710
push 0xc5
mov eax, dword [0x22350]
push eax
call sub.USER32.dll_SendMessageA
mov eax, dword [esp + 0x44]
push eax
push edi
call sub.USER32.dll_ShowWindow
mov eax, edi
pop edi
pop esi
add esp, 0x34
ret
Function at 0x11410
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push esi
push edi
mov esi, dword [esp + 0x10c]
push 0x24088
push esi
push 0x24094
push 0x240a0
call sub.odbccp32.dll_SQLWritePrivateProfileString
push 0x240ac
lea eax, [esp + 0xc]
push 0x100
push eax
push 0x240b8
push 0x240bc
push esi
call sub.odbccp32.dll_SQLGetPrivateProfileString
lea eax, [esp + 8]
push 0x240c4
push eax
push 0x240d0
push 0x240e0
call sub.odbccp32.dll_SQLWritePrivateProfileString
push 0x240ec
lea eax, [esp + 0xc]
push 0x100
push eax
push 0x240f8
push 0x240fc
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, eax
or edi, edi
je 0x114bf
push 0x24108
push esi
push 0x24114
push 0x24120
call sub.KERNEL32.dll_WritePrivateProfileStringA
lea eax, [esp + 8]
push 0x2412c
push eax
push 0x24138
push 0x24148
call sub.KERNEL32.dll_WritePrivateProfileStringA
lea eax, [esp + 8]
push 0x100
push eax
mov eax, dword [0x22048]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ecx, [esp + eax + 8]
lea eax, [esp + 8]
cmp ecx, eax
je 0x114fb
cmp byte [ecx], 0x5c
je 0x114fa
dec ecx
lea eax, [esp + 8]
cmp ecx, eax
jne 0x114ea
jmp 0x114fb
inc ecx
push str.ODBCSP32.DLL
push ecx
call sub.KERNEL32.dll_lstrcpyA
lea eax, [esp + 8]
push 0x24164
push eax
push 0x24170
push esi
call sub.odbccp32.dll_SQLWritePrivateProfileString
or edi, edi
je 0x11534
lea eax, [esp + 8]
push 0x24178
push eax
push 0x24184
push esi
call sub.KERNEL32.dll_WritePrivateProfileStringA
pop edi
pop esi
add esp, 0x100
ret 4
Function at 0x12d80
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
sub esp, 0x104
push esi
push edi
cmp dword [0x22040], 0x64
je 0x12e66
cmp dword [esp + 0x114], 0
mov dword [esp + 8], 0xffffffff
jne 0x12daf
mov dword [esp + 8], 1
lea eax, [esp + 8]
push eax
mov esi, dword [esp + 0x114]
push 0x12fd0
push esi
call sub.USER32.dll_EnumChildWindows
cmp dword [esp + 8], 0
jne 0x12dda
sub eax, eax
pop edi
pop esi
add esp, 0x104
ret 8
push esi
call sub.USER32.dll_GetMenu
mov edi, eax
push 0
push 0x6b
push edi
call sub.USER32.dll_CheckMenuItem
push 0
push 0x6c
push edi
call sub.USER32.dll_CheckMenuItem
mov dword [0x22040], 0x64
push esi
call fcn.00013140
push 0
mov eax, dword [0x22350]
push eax
call sub.USER32.dll_ShowWindow
push 0x242a0
mov eax, dword [0x22350]
push eax
call sub.USER32.dll_SetWindowTextA
push 1
push 1
push esi
call sub.USER32.dll_ShowScrollBar
mov dword [0x22658], 0
push esi
call fcn.000146f0
push 1
push 0
push esi
call sub.USER32.dll_InvalidateRect
lea eax, [esp + 0xc]
push 0x1f
push eax
push 1
mov eax, dword [0x22048]
push eax
call sub.USER32.dll_LoadStringA
lea eax, [esp + 0xc]
push eax
push esi
call sub.USER32.dll_SetWindowTextA
push 0x242a4
lea eax, [esp + 0x10]
push 0x100
push eax
push 0x242b0
push 0x242b4
push 0x242c4
call sub.odbccp32.dll_SQLGetPrivateProfileString
push 0x242d0
push 0x21
push section..bss
push 0x242dc
push 0x242e0
push 0x242ec
call sub.odbccp32.dll_SQLGetPrivateProfileString
push 0x242f8
push section..bss
call sub.KERNEL32.dll_lstrcmpA
or eax, eax
je 0x12ed5
lea eax, [esp + 0xc]
push 0x242fc
push eax
push 0x24308
push section..bss
call sub.odbccp32.dll_SQLWritePrivateProfileString
push 0x24310
push 0x2431c
push 0x24320
push 0x2432c
call sub.odbccp32.dll_SQLWritePrivateProfileString
push 0x24338
push 0x24344
push 0x24348
push 0x24358
call sub.odbccp32.dll_SQLWritePrivateProfileString
push 0x24364
lea eax, [esp + 0x10]
push 0x100
push eax
push 0x24370
push 0x24374
push 0x24384
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x12fac
push 0x24390
push 0x21
push section..bss
push 0x2439c
push 0x243a0
push 0x243ac
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x243b8
push section..bss
call sub.KERNEL32.dll_lstrcmpA
or eax, eax
je 0x12f7a
lea eax, [esp + 0xc]
push 0x243bc
push eax
push str.Driver32
push section..bss
call sub.KERNEL32.dll_WritePrivateProfileStringA
push 0x243d4
push 0x243e0
push str.TargetDSN
push 0x243f0
call sub.KERNEL32.dll_WritePrivateProfileStringA
push 0x243fc
push 0x24408
push str.TargetDriver
push str.ODBCSP32
call sub.KERNEL32.dll_WritePrivateProfileStringA
push 0x24428
push section..bss
call sub.KERNEL32.dll_lstrcpyA
call fcn.00017060
mov eax, 1
pop edi
pop esi
add esp, 0x104
ret 8
Function at 0x130a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xa0
push esi
push edi
lea eax, [esp + 8]
push 0x1f
push eax
push 1
mov eax, dword [0x22048]
push eax
call sub.USER32.dll_LoadStringA
lea eax, [esp + 0x28]
push 0x7f
push eax
push 0x10
mov eax, dword [0x22048]
push eax
call sub.USER32.dll_LoadStringA
lea eax, [esp + 8]
push 0x30
push eax
lea eax, [esp + 0x30]
mov edi, dword [esp + 0xb8]
push eax
push edi
call sub.USER32.dll_MessageBoxA
push 0x10
call sub.USER32.dll_GetAsyncKeyState
or ax, ax
mov esi, dword [esp + 0xac]
jge 0x13122
push esi
lea eax, [esp + 0x2c]
push 0x2442c
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [esp + 8]
push 0
push eax
lea eax, [esp + 0x30]
push eax
push 0
call sub.USER32.dll_MessageBoxA
push edi
push esi
call fcn.00013090
pop edi
pop esi
add esp, 0xa0
ret 8
Function at 0x20a00
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 0x20], ebp
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], 0x23000
mov dword [ebp - 0x2c], 0x20cf4
mov eax, dword fs:[0]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword fs:[0], eax
call sub.KERNEL32.dll_GetCommandLineA
mov dword [0x22968], eax
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x22970], eax
call sub.KERNEL32.dll_GetVersion
mov dword [0x27b50], eax
mov al, ah
and eax, 0xff
mov dword [0x27b5c], eax
mov eax, dword [0x27b50]
and eax, 0xff
mov dword [0x27b58], eax
shl eax, 8
add eax, dword [0x27b5c]
mov dword [0x27b54], eax
shr dword [0x27b50], 0x10
call fcn.000213d0
call fcn.000212e0
call fcn.000210d0
call fcn.00021000
call fcn.00020bb0
mov dword [ebp - 0x24], 0
mov esi, dword [0x22968]
mov al, byte [esi]
cmp al, 0x22
jne 0x20ac6
mov al, byte [ebp - 0x14]
inc esi
mov al, byte [esi]
or al, al
je 0x20abe
cmp al, 0x22
jne 0x20ab3
cmp byte [esi], 0x22
jne 0x20ad0
inc esi
jmp 0x20ad0
cmp al, 0x20
jbe 0x20ad0
inc esi
cmp byte [esi], 0x20
ja 0x20aca
cmp byte [esi], 0
je 0x20ae0
cmp byte [esi], 0x20
ja 0x20ae0
inc esi
cmp byte [esi], 0
jne 0x20ad5
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x74]
push eax
call sub.KERNEL32.dll_GetStartupInfoA
test byte [ebp - 0x48], 1
mov eax, 0xa
je 0x20b03
mov eax, dword [ebp - 0x44]
and eax, 0xffff
push eax
push esi
push 0
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call section..text
push eax
call fcn.00020be0
jmp 0x20b4c
add esp, 4
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x30]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4412bd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4412eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441309
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00441227
jmp 0x441309
mov eax, dword [esi + 0x14]
test eax, eax
je 0x441309
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00441227
test edi, edi
mov eax, edi
jne 0x4412f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56b4b4]
test ecx, ecx
je 0x4413bc
jmp 0x4412bc
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401de0
Capabilities:
Get socket status

Disassembly:
push ebp
mov eax, 0x3e8
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov esi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x34], 0
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00410e90
mov dword [ebp - 0x18], eax
mov eax, 0x3e8
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00410ff0
mov dword [ebp - 0x40], eax
mov ecx, 0x3e8
mov dword [ebp - 0x3c], edx
mul ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, 7
lea esi, [esi]
mov byte [edx], 0
inc edx
dec eax
jns 0x401e50
lea esi, [ebp - 0x28]
mov eax, 7
mov edx, esi
jmp 0x401e70
mov byte [edx], 0
inc edx
dec eax
jns 0x401e70
lea ebx, [ebp - 0x30]
mov eax, 7
mov edx, ebx
jmp 0x401e90
mov byte [edx], 0
inc edx
dec eax
jns 0x401e90
test byte [ebp + 0xc], 1
je 0x401eb2
mov ecx, edi
mov edx, edi
and ecx, 0x1f
mov eax, 1
shr edx, 5
shl eax, cl
or dword [ebp + edx*4 - 0x20], eax
test byte [ebp + 0xc], 2
je 0x401ecc
mov ecx, edi
mov edx, edi
and ecx, 0x1f
mov eax, 1
shr edx, 5
shl eax, cl
or dword [esi + edx*4], eax
test byte [ebp + 0xc], 4
je 0x401ee6
mov ecx, edi
mov edx, edi
and ecx, 0x1f
mov eax, 1
shr edx, 5
shl eax, cl
or dword [ebx + edx*4], eax
mov dword [esp + 0xc], ebx
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], eax
lea eax, [edi + 1]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_select
test eax, eax
jle 0x401f4a
mov eax, edi
mov ecx, edi
shr eax, 5
lea edx, [eax*4]
and ecx, 0x1f
mov eax, dword [edx + ebp - 0x20]
sar eax, cl
test al, 1
je 0x401f2d
mov dword [ebp - 0x34], 1
mov eax, dword [edx + esi]
sar eax, cl
test al, 1
je 0x401f3a
or dword [ebp - 0x34], 2
mov eax, dword [edx + ebx]
sar eax, cl
test al, 1
je 0x401f47
or dword [ebp - 0x34], 4
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402090
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov eax, 4
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 6
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
xor edx, edx
inc eax
je 0x4020d3
leave
mov eax, edx
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov eax, str.setsockopt_TCP_NODELAY:__s_n
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401fc0
leave
mov edx, 0xffffffff
mov eax, edx
ret
Function at 0x402280
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
xor eax, eax
push esi
mov esi, edx
push ebx
sub esp, 0x4c
mov dword [esp + 8], eax
mov eax, 1
mov dword [ebp - 0x2c], 1
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.cygwin1.dll_socket
cmp eax, 0xffffffff
mov ebx, eax
je 0x4023cd
mov dword [esp], ebx
mov eax, 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, 4
mov dword [esp + 8], eax
mov eax, 0xffff
mov dword [esp + 4], eax
call sub.cygwin1.dll_setsockopt
movzx eax, word [ebp + 8]
xchg ah, al
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x24]
mov word [ebp - 0x28], 2
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_inet_aton
test eax, eax
je 0x4023b2
test byte [ebp + 0xc], 1
jne 0x402338
mov dword [esp], ebx
mov ecx, 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.cygwin1.dll_connect
inc eax
mov edx, ebx
je 0x40236a
add esp, 0x4c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00401ff0
test eax, eax
mov edx, 0xffffffff
jne 0x40232e
mov dword [esp], ebx
mov ecx, 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.cygwin1.dll_connect
inc eax
mov edx, ebx
jne 0x40232e
call sub.cygwin1.dll___errno
cmp dword [eax], 0x77
jne 0x40237c
test byte [ebp + 0xc], 1
mov edx, ebx
jne 0x40232e
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov edx, str.connect:__s_n
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.00401fc0
mov dword [esp], ebx
call sub.cygwin1.dll_close
mov edx, 0xffffffff
jmp 0x40232e
mov dword [esp], esi
call sub.cygwin1.dll_gethostbyname
test eax, eax
je 0x4023fb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x40230b
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov eax, str.creating_socket:__s_n
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00401fc0
mov edx, 0xffffffff
jmp 0x40232e
mov dword [esp + 8], esi
mov esi, str.cant_resolve:__s_n
mov dword [esp + 4], esi
jmp 0x402398

Function at 0x402410
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], 0
pop ebp
jmp fcn.00402280
Function at 0x402760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
lea ebx, [ebp + 0xc]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp], str._nDICT_LIBRARY_PANIC:
mov dword [esp + 0xc], eax
mov eax, 0x15
mov dword [esp + 8], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov edx, 2
mov dword [esp + 8], edx
mov dword [esp], 0x4136da
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x402870
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov edx, 0x1505
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x40288f
mov eax, edx
shl eax, 5
add eax, edx
movzx edx, byte [ebx]
inc ebx
lea edx, [eax + edx]
dec ecx
cmp ecx, 0xffffffff
jne 0x402881
pop ebx
mov eax, edx
pop ebp
ret

Function at 0x403b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, eax
cmp byte [eax + 5], 0
je 0x403c09
cmp word [eax + 4], 0x100
jne 0x403c16
mov eax, dword [eax]
lea ebx, [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, 0x413a82
mov dword [esp + 8], eax
mov eax, 0x20
mov dword [esp + 4], eax
call sub.cygwin1.dll_snprintf
mov edx, ebx
lea esi, [esi]
mov eax, dword [edx]
add edx, 4
lea ecx, [eax - 0x1010101]
not eax
and ecx, eax
and ecx, 0x80808080
je 0x403bd0
test ecx, 0x8080
jne 0x403bf5
shr ecx, 0x10
add edx, 2
add cl, cl
mov eax, ebx
sbb edx, 3
sub edx, ebx
call fcn.00403ab0
add esp, 0x34
pop ebx
pop ebp
ret
call fcn.00403b30
add esp, 0x34
mov eax, ebx
pop ebx
pop ebp
ret
mov eax, str.1___1
call fcn.004039e0
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
Function at 0x403e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x5c], eax
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov eax, 0xffffffff
cmp byte [edx + 5], 0
jne 0x403ef0
cmp dword [edx + 8], 1
jg 0x403ef0
cmp byte [edx + 4], 0
jne 0x403f64
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov esi, 0xa
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_strtol
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
cmp byte [eax], 0
je 0x403f00
mov eax, 0xffffffff
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov ecx, 0x20
lea edx, [ebp - 0x38]
mov dword [esp + 4], ecx
mov ebx, 0x413a82
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_snprintf
mov dword [esp], edi
mov ebx, eax
call fcn.0040f720
cmp eax, ebx
jne 0x403eeb
cld
cmp eax, eax
lea esi, [ebp - 0x38]
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403eeb
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], edi
mov byte [eax + 5], 1
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov dword [esp], eax
call fcn.0040f760
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x5c]
mov dword [edi], eax
xor eax, eax
jmp 0x403ef0
mov eax, str.o__type__REDIS_STRING
call fcn.004039e0
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]

Function at 0x403f80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
cmp byte [eax + 4], 0
jne 0x403fa0
cmp byte [edx + 4], 0
je 0x403fb6
mov eax, str.a__type__REDIS_STRING__b__type__REDIS_STRING
call fcn.004039e0
mov dword [esp], 1
call sub.cygwin1.dll_exit
xor edx, edx
cmp eax, esi
mov ecx, 1
je 0x403fe3
cmp byte [eax + 5], 0
jne 0x403ff2
mov edi, dword [eax]
cmp byte [esi + 5], 0
jne 0x40401e
test ecx, ecx
mov eax, dword [esi]
jne 0x404048
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_strcmp
mov edx, eax
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
lea ebx, [ebp - 0x98]
mov edi, ebx
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, 0x413a82
mov dword [esp + 8], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 4], eax
call sub.cygwin1.dll_snprintf
xor ecx, ecx
jmp 0x403fc9
mov eax, dword [esi]
lea ebx, [ebp - 0x118]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, 0x413a82
mov dword [esp + 8], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 4], eax
call sub.cygwin1.dll_snprintf
mov eax, ebx
jmp 0x403fd5
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040fc80
jmp 0x403fe1
Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
lea eax, [ebp - 1]
mov byte [ebp - 1], dl
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
leave
cmp eax, 1
sbb eax, eax
ret

Function at 0x4040a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
cmp edx, 0x3f
mov dword [ebp - 0xc], edx
mov ebx, eax
jbe 0x404168
cmp edx, 0x3fff
jbe 0x404140
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
lea eax, [ebp - 6]
mov byte [ebp - 6], pe_nt_image_headers32
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
test eax, eax
mov edx, 0xffffffff
je 0x404133
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0xc]
mov ecx, 1
xchg dh, dl
ror edx, 0x10
xchg dh, dl
mov dword [ebp - 0xc], edx
mov edx, 4
lea eax, [ebp - 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
lea esi, [esi]
lea edi, [edi]
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
test eax, eax
mov edx, 0xffffffff
je 0x404133
xor edx, edx
add esp, 0x24
mov eax, edx
pop ebx
pop ebp
ret
mov byte [ebp - 5], dl
mov eax, edx
shr eax, 8
mov dword [esp + 0xc], ebx
or al, 0x40
mov byte [ebp - 6], al
mov eax, 1
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
lea eax, [ebp - 6]
jmp 0x404120
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 1
mov byte [ebp - 6], dl
jmp 0x40415f
Function at 0x4047d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
lea eax, [ebp - 1]
mov dword [esp], eax
call sub.cygwin1.dll_fread
test eax, eax
mov edx, 0xffffffff
je 0x404804
movzx edx, byte [ebp - 1]
leave
mov eax, edx
ret

Function at 0x404810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x404827
mov dword [esi], 0
test edx, edx
je 0x404870
mov dword [esp + 0xc], ebx
mov edx, 1
mov ecx, 1
mov dword [esp + 4], edx
lea eax, [ebp - 0xe]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.cygwin1.dll_fread
test eax, eax
mov edx, 0xffffffff
je 0x4048a4
movzx eax, byte [ebp - 0xe]
mov edx, eax
shr edx, 6
je 0x4048c0
cmp edx, 3
je 0x4048ad
dec edx
je 0x4048ce
nop
lea esi, [esi]
mov dword [esp + 0xc], ebx
mov eax, 1
mov dword [esp + 8], eax
mov eax, 4
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fread
test eax, eax
mov edx, 0xffffffff
je 0x4048a4
mov edx, dword [ebp - 0xc]
xchg dh, dl
ror edx, 0x10
xchg dh, dl
add esp, 0x20
mov eax, edx
pop ebx
pop esi
pop ebp
ret
test esi, esi
je 0x4048c0
mov dword [esi], 1
mov esi, esi
lea edi, [edi]
add esp, 0x20
mov edx, eax
and edx, 0x3f
pop ebx
mov eax, edx
pop esi
pop ebp
ret
mov dword [esp + 0xc], ebx
mov eax, 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
lea eax, [ebp - 0xd]
mov dword [esp], eax
call sub.cygwin1.dll_fread
test eax, eax
mov edx, 0xffffffff
je 0x4048a4
movzx edx, byte [ebp - 0xe]
movzx eax, byte [ebp - 0xd]
and edx, 0x3f
shl edx, 8
or edx, eax
jmp 0x4048a4