joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov ecx, 0x401000
call fcn.10052620
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1000be60
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1005249e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x100524b0
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10052670
cmp eax, 0x16197be9
jne 0x100524cb
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10052670
cmp eax, 0x94bf
jne 0x100524e6
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10052670
cmp eax, 0x94bf
jne 0x10052501
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10052670
cmp eax, 0x94bf
jne 0x1005251c
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10052670
cmp eax, 0x3539f633
jne 0x10052537
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10052670
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x10052670
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.10052620
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.1000be60
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x100526c9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10069196
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006900c

Function at 0x1006bc8a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006bc0c
Function at 0x1000b7a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10012385
call fcn.1001109f
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x1000b97f
push edi
call dword [sym.imp.MSVCR120.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1000b9b8
add esp, 0x10
test eax, eax
js 0x1000b979
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000b83d
push esi
call fcn.10006ae7
pop ecx
test al, al
je 0x1000b83d
mov eax, esi
call fcn.100110e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000b849
push esi
lea ecx, [ebp - 0x428]
call fcn.1000b9b8
push 3
push esi
push edi
push eax
call fcn.1000b9b8
mov esi, eax
test esi, esi
je 0x1000b979
push 0x60
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x1000b895
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x1000b895
call fcn.10002f77
mov esi, eax
jmp 0x1000b95e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000b8b8
call fcn.10002f77
jmp 0x1000b951
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1000b8ae
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000b8e8
mov esi, 0x8007000e
jmp 0x1000b953
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000b9b8
jmp 0x1000b90e
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000b8e1
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.1000b9b8
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + esi], bl
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.1000b9b8
mov esi, eax
test edi, edi
je 0x1000b95e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000b999
lea ecx, [ebp - 0x418]
call fcn.1000af68
jmp 0x1000b999
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000b994
lea ecx, [ebp - 0x418]
call fcn.1000af68
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10001f09
mov eax, esi
lea esp, [ebp - 0x440]
call fcn.10010ff1
ret 0x10
Function at 0x1000b9b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000b9c7
pop dword [ebp - 0x28]
mov eax, 0x1000b9c7
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3b701
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x9d900afe
add ecx, 0x6270455f
mov edx, eax
mov ebx, 0xa8f261e
sub ebx, 0xfa8d281e
add ebx, dword [ebp - 0x28]
mov esi, 0x1ead44b7
xor dword [ebp - 0x18], ebx
mov edi, dword [ebx]
xor dword [ebp - 0xc], ebx
sub edi, esi
add dword [ebp - 0x20], edi
mov dword [edx], edi
xor dword [ebp - 0x14], ebx
add edx, 0x1ccc58f6
add edx, 0xe333a70e
add ebx, 4
loop 0x1000ba16
add eax, 0x80671183
sub eax, 0x8065dd3c
xor ebx, ebx
add ebx, eax
add eax, 0xe0ff85f0
sub eax, 0xe0ff85eb
mov ecx, 0x165d9ca7
add ecx, 0xf9a26359
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1000d27a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__wcsicmp]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x100144f0
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push str.file:__
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push dword [ebp + 0xc]
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1000d2fd
push 0x38
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x38]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000d300
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000d2f9
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000d300
mov esi, edi
jmp 0x1000d300
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1000b9b8
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040bbb3
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040bbb3
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040bbb3
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040bbb3
mov dword [0x41203c], eax
call fcn.0040bbb3
test eax, eax
jge 0x402550
push 8
call fcn.0040bbb3
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040bbb3
pop ecx
push 1
call fcn.0040bbb3
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040bbb3
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040bbb3
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040bbb3
jmp 0x402495

Function at 0x40bbb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40bbc2
pop dword [ebp - 0x24]
mov eax, 0xe921768d
add eax, 0x171f4535
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3bdf5
push 0
mov eax, 0xe4651876
sub eax, 0xe424379e
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x51a4
xor esi, esi
add esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x24]
mov ebx, 0x7590502
sub ebx, 0xb032706f
xor dword [ebp - 8], 0xfcaa1786
mov edx, dword [edi]
add dword [ebp - 0x20], 0x10ee5300
sub edx, ebx
xor dword [ebp - 0x10], ecx
mov dword [esi], edx
add esi, 0xc9c7651c
add esi, 0x36389ae8
add edi, 0xdf0c09aa
sub edi, 0xdf0c09a6
loop 0x40bc17
add eax, 0x8e262a11
sub eax, 0x8e24f0ae
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10001a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], 0xffffffff
call fcn.10001ad0
add esp, 8
cmp eax, 6
jne 0x10001ab9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
lea edx, [esp + 4]
push esi
push edx
push eax
push 0
push 0
push str.PortName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x10001aab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
neg eax
sbb eax, eax
add eax, 8
add esp, 8
ret
mov eax, 5
add esp, 8
ret

Function at 0x10001b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 0xc], 0x200
mov dword [esp + 8], 0xffffffff
call fcn.10001ad0
add esp, 8
cmp eax, 6
jne 0x10001b79
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
lea edx, [esp + 4]
push esi
push edx
push eax
push 0
push 0
push str.SymbolicName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x10001b6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
neg eax
sbb eax, eax
add eax, 0xa
add esp, 8
ret
mov eax, 5
add esp, 8
ret

Function at 0x100056c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000b1b8
cmp edx, dword [eax]
je 0x100056eb
add eax, 8
inc ecx
cmp eax, 0x1000b248
jl 0x100056dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000b1b8]
jne 0x10005819
mov eax, dword [0x1000e63c]
cmp eax, 1
je 0x100057f3
test eax, eax
jne 0x1000571c
cmp dword [0x1000e640], 1
je 0x100057f3
cmp edx, 0xfc
je 0x10005819
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10005753
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10006470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10003480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10005796
lea eax, [ebp - 0x1a4]
push eax
call fcn.10003480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10009578
push edi
call fcn.10002d00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10006470
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10006480
lea eax, [ebp - 0xa0]
push 0x10009558
push eax
call fcn.10006480
push dword [esi + 0x1000b1bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.10006480
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10007269
add esp, 0x2c
pop edi
jmp 0x10005819
lea eax, [ebp + 8]
lea esi, [esi + 0x1000b1bc]
push 0
push eax
push dword [esi]
call fcn.10003480
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 0x42bb50
Capabilities:
Get socket status

Disassembly:
mov eax, 0x104
call fcn.004466f0
push esi
call sub.LIBEAY32.dll_Ordinal_91
push eax
call sub.LIBEAY32.dll_Ordinal_78_1
mov esi, eax
add esp, 4
test esi, esi
jne 0x42bb77
pop esi
add esp, 0x104
ret
mov eax, dword [str.localhost:4433]
push ebx
push edi
push eax
push 0
push 0x64
push esi
call sub.LIBEAY32.dll_Ordinal_52_1
mov ebx, dword [esp + 0x124]
add esp, 0x10
test ebx, ebx
jne 0x42bba7
mov ecx, dword [0x46206c]
push ecx
call sub.SSLEAY32.dll_Ordinal_75
mov edi, eax
jmp 0x42bbaf
push ebx
mov edi, ebx
call sub.SSLEAY32.dll_Ordinal_86
add esp, 4
push esi
push esi
push edi
call sub.SSLEAY32.dll_Ordinal_83
push edi
call sub.SSLEAY32.dll_Ordinal_43
mov esi, eax
push esi
call sub.LIBEAY32.dll_Ordinal_107
add esp, 0x14
test eax, eax
je 0x42bc33
mov ebx, dword [sym.imp.WS2_32.dll_select]
jmp 0x42bbe0
mov edx, dword [0x462574]
push str.DELAY_n
push edx
call sub.LIBEAY32.dll_Ordinal_86_1
push edi
call sub.SSLEAY32.dll_Ordinal_59
add esp, 0xc
push 0
push 0
lea ecx, [eax + 1]
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 1
call ebx
push edi
call sub.SSLEAY32.dll_Ordinal_43
mov esi, eax
push esi
call sub.LIBEAY32.dll_Ordinal_107
add esp, 8
test eax, eax
jne 0x42bbe0
mov ebx, dword [esp + 0x114]
test esi, esi
jg 0x42bc98
mov ecx, dword [0x462574]
push str.ERROR_n
push ecx
call sub.LIBEAY32.dll_Ordinal_86_1
mov eax, dword [0x4620ac]
add esp, 8
test eax, eax
je 0x42bc71
push eax
call sub.LIBEAY32.dll_Ordinal_680
mov edx, dword [0x462574]
push eax
push str.verify_error:_s_n
push edx
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 0x10
jmp 0x42bc7f
mov eax, dword [0x462574]
push eax
call sub.LIBEAY32.dll_Ordinal_250
add esp, 4
test ebx, ebx
jne 0x42bc8c
push edi
call sub.SSLEAY32.dll_Ordinal_48
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x104
ret
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x104
ret
Function at 0x42cb60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x404
call fcn.004466f0
mov eax, dword [0x4613d0]
xor eax, esp
mov dword [esp + 0x400], eax
push ebp
mov ebp, dword [esp + 0x40c]
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_strncmp]
push 5
mov esi, ecx
push str.pass:
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x42cbbf
add esi, 5
push esi
call sub.LIBEAY32.dll_Ordinal_170
add esp, 4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0044671b
add esp, 0x404
ret
push 4
push str.env:
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x42cc0d
add esi, 4
push esi
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
jne 0x42cbec
push esi
push str.Cant_read_environment_variable__s_n
jmp 0x42cd42
push eax
call sub.LIBEAY32.dll_Ordinal_170
add esp, 4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0044671b
add esp, 0x404
ret
test ebp, ebp
je 0x42cc1e
mov eax, dword [0x46209c]
test eax, eax
jne 0x42ccb9
push 5
push str.file:
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x42cc54
add esi, 5
push 0x448a2c
push esi
call sub.LIBEAY32.dll_Ordinal_82_1
add esp, 8
mov dword [0x46209c], eax
test eax, eax
jne 0x42ccb9
push esi
push str.Cant_open_file__s_n
jmp 0x42cd42
mov ecx, str.stdin
mov eax, esi
jmp 0x42cc60
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42cc80
test dl, dl
je 0x42cc7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42cc80
add eax, 2
add ecx, 2
test dl, dl
jne 0x42cc60
xor eax, eax
jmp 0x42cc85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42cd3c
push eax
call dword [sym.imp.MSVCR90.dll___iob_func]
push eax
call sub.LIBEAY32.dll_Ordinal_83_1
add esp, 8
mov dword [0x46209c], eax
test eax, eax
jne 0x42ccb9
push str.Cant_open_BIO_for_stdin_n
push ebx
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 8
jmp 0x42cd4b
push 0x400
lea ecx, [esp + 0x10]
push ecx
push eax
call sub.LIBEAY32.dll_Ordinal_76
add esp, 0xc
mov esi, eax
cmp ebp, 1
je 0x42ccec
mov edx, dword [0x46209c]
push edx
call sub.LIBEAY32.dll_Ordinal_67
add esp, 4
mov dword [0x46209c], 0
test esi, esi
jg 0x42cd00
push str.Error_reading_password_from_BIO_n
push ebx
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 8
jmp 0x42cd4b
lea eax, [esp + 0xc]
push 0xa
push eax
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x42cd17
mov byte [eax], 0
lea ecx, [esp + 0xc]
push ecx
call sub.LIBEAY32.dll_Ordinal_170
add esp, 4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0044671b
add esp, 0x404
ret
push esi
push str.Invalid_password_argument___s__n
push ebx
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 0xc
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0044671b
add esp, 0x404
ret
Function at 0x42ed60
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebp
push esi
push edi
xor ebp, ebp
call ebx
test eax, eax
jne 0x42ede2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42ed84
cmp eax, 0x50
jne 0x42ed9d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42ed97
push esi
push edi
call ebx
test eax, eax
jne 0x42ede2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42edd0
cmp eax, 3
je 0x42edd0
cmp eax, 5
jne 0x42edbe
call dword [sym.imp.MSVCR90.dll__errno]
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call dword [sym.imp.MSVCR90.dll__errno]
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
call dword [sym.imp.MSVCR90.dll__errno]
pop ebp
mov dword [eax], 2
or eax, 0xffffffff
pop ebx
ret
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x42ef60
Capabilities:
Read file on windows

Disassembly:
mov eax, 4
call fcn.004466f0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push ecx
push edx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ef93
mov eax, dword [esp]
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x42efa0
Capabilities:
Write file on windows

Disassembly:
mov eax, 4
call fcn.004466f0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push ecx
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42efd3
mov eax, dword [esp]
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x430d20
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x4624a8], 0
jne 0x430d85
push 0x430d00
push 2
call dword [sym.imp.MSVCR90.dll_signal]
push 0x190
push 0
push 0x462318
mov dword [0x4624a8], 1
call sub.MSVCR90.dll_memset
add esp, 0x14
push 0x462318
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x430d85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [0x462574]
push str.unable_to_start_WINSOCK__error_code_d_n
push eax
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret
Function at 0x430d90
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x18
call fcn.004466f0
mov eax, dword [0x4613d0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
call fcn.00430d20
test eax, eax
je 0x430e35
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 2
push ecx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
mov word [esp + 0xa], ax
movzx eax, byte [esi]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 3]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0xc], eax
cmp edi, 1
jne 0x430e14
push 6
push edi
jmp 0x430e18
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430e47
push str.socket
call dword [sym.imp.MSVCR90.dll_perror]
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044671b
add esp, 0x18
ret
cmp edi, 1
jne 0x430e91
push 4
lea eax, [esp + 8]
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 4], eax
test eax, eax
jge 0x430e91
push str.keepalive
call dword [sym.imp.MSVCR90.dll_perror]
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044671b
add esp, 0x18
ret
push 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x430ecb
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.connect
call dword [sym.imp.MSVCR90.dll_perror]
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044671b
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov dword [ebx], esi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044671b
add esp, 0x18
ret
Function at 0x430ef0
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x18
call fcn.004466f0
mov eax, dword [0x4613d0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ecx
xor ebx, ebx
call fcn.00430d20
test eax, eax
jne 0x430f2b
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044671b
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, 2
push ecx
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
test esi, esi
jne 0x430f61
mov dword [esp + 0x14], ebx
jmp 0x430f67
mov edx, dword [esi]
mov dword [esp + 0x14], edx
cmp ebp, 1
jne 0x430f71
push 6
push ebp
jmp 0x430f75
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x430fe5
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x430fe5
cmp ebp, 1
jne 0x430fca
push 0x80
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x430fe5
mov dword [edi], esi
pop esi
mov ebx, 1
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044671b
add esp, 0x18
ret
cmp esi, 0xffffffff
je 0x430ffa
push 0
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044671b
add esp, 0x18
ret