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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4417c0]
je 0x421472
inc edi
cmp edi, 0x17
jb 0x421463
cmp edi, 0x17
jae 0x4215f2
push ebp
push 3
call fcn.00429ce0
cmp eax, 1
pop ecx
je 0x4215be
push 3
call fcn.00429ce0
test eax, eax
pop ecx
jne 0x4214a6
cmp dword [0x441608], 1
je 0x4215be
cmp ebx, 0xfc
je 0x4215f1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x444a30
push ebp
call fcn.00429c7b
add esp, 0xc
test eax, eax
je 0x4214dc
push esi
push esi
push esi
push esi
push esi
call fcn.00422aaf
add esp, 0x14
push 0x104
mov esi, 0x444a49
push esi
push 0
mov byte [0x444b4d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421520
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00429c7b
add esp, 0xc
test eax, eax
je 0x421520
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00422aaf
add esp, 0x14
push esi
call fcn.00429bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421565
push esi
call fcn.00429bf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x444d44
push 0x436ddc
sub ecx, eax
push ecx
push eax
call fcn.00429b30
add esp, 0x14
test eax, eax
je 0x421565
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00422aaf
add esp, 0x14
jmp 0x421567
xor esi, esi
push 0x436dd8
push ebx
push ebp
call fcn.00429abf
add esp, 0xc
test eax, eax
je 0x421587
push esi
push esi
push esi
push esi
push esi
call fcn.00422aaf
add esp, 0x14
push dword [edi*8 + 0x4417c4]
push ebx
push ebp
call fcn.00429abf
add esp, 0xc
test eax, eax
je 0x4215a9
push esi
push esi
push esi
push esi
push esi
call fcn.00422aaf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00429902
add esp, 0xc
jmp 0x4215f1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4215f1
cmp ebp, 0xffffffff
je 0x4215f1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4417c4]
push dword [esi]
call fcn.00429bf0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x429902
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00422007
xor ebx, ebx
cmp dword [0x445528], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4299d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x429ab8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x429ab8
push eax
call fcn.00421f99
mov dword [esp], 0x43701c
push edi
mov dword [0x445528], eax
call esi
push eax
call fcn.00421f99
mov dword [esp], 0x437008
push edi
mov dword [0x44552c], eax
call esi
push eax
call fcn.00421f99
mov dword [0x445530], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f424
test eax, eax
pop ecx
pop ecx
je 0x4299a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422aaf
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4299d8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00421f99
cmp eax, ebx
pop ecx
mov dword [0x445538], eax
je 0x4299d8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421f99
pop ecx
mov dword [0x445534], eax
mov eax, dword [0x445534]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x429a5d
cmp dword [0x445538], ecx
je 0x429a5d
push eax
call fcn.00422010
push dword [0x445538]
mov esi, eax
call fcn.00422010
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x429a5d
cmp edi, ebx
je 0x429a5d
call esi
cmp eax, ebx
je 0x429a2a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429a2a
test byte [ebp - 0x18], 1
jne 0x429a5d
lea eax, [ebp - 0x10]
push eax
call fcn.0041f45b
test eax, eax
pop ecx
je 0x429a45
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422aaf
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x429a54
or dword [ebp + 0x10], 0x200000
jmp 0x429a98
or dword [ebp + 0x10], 0x40000
jmp 0x429a98
mov eax, dword [0x44552c]
cmp eax, dword [ebp - 8]
je 0x429a98
push eax
call fcn.00422010
cmp eax, ebx
pop ecx
je 0x429a98
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429a98
mov eax, dword [0x445530]
cmp eax, dword [ebp - 8]
je 0x429a98
push eax
call fcn.00422010
cmp eax, ebx
pop ecx
je 0x429a98
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445528]
call fcn.00422010
cmp eax, ebx
pop ecx
je 0x429ab8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429aba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431364
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x441630]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004312f9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041ee30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4313b3
cmp dword [ebp - 0x1c], 5
jb 0x4313cb
jmp 0x4313c7
cmp dword [ebp - 0x10], 1
jne 0x4313cb
cmp dword [ebp - 0x1c], 4
ja 0x4313c7
jne 0x4313cb
cmp dword [ebp - 0x18], 0
jbe 0x4313cb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x438978
call fcn.004311cd
test eax, eax
jge 0x4313ec
mov byte [0x445619], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d4c0
add ebp, 0x78
leave
ret
Function at 0x10001e90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x46c], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10001ece
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100230a0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x470]
push edx
mov dword [esp + 0xc], 1
call fcn.100331a0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x474]
push eax
call fcn.100331a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10001f47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100230a0
add esp, 0x10
add esp, 0x14
ret
Function at 0x10002550
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10044054]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x100026c5
cmp dword [ebp + 0x1f8], 0
push ebx
push esi
jne 0x100026ba
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100025dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10027ba0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10023130
add esp, 0x18
jmp 0x100026c3
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10002629
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10027ba0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10023130
add esp, 0x18
jmp 0x100026c3
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.10002510
test eax, eax
jne 0x1000266a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10027ba0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.10023130
add esp, 0x18
jmp 0x100026c3
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.10002510
test eax, eax
jne 0x100026ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10027ba0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10023130
add esp, 0x18
jmp 0x100026c3
push ebp
call fcn.100024b0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.100377a6
add esp, 0x10c
ret

Function at 0x100026e0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10002723
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10027ba0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100230a0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100230a0
add esp, 8
pop esi
pop ecx
ret
Function at 0x10002740
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x10044054]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x10044068]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x100027e3
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x1c], 0x9c
mov dword [esp + 0x20], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x100027d7
mov dword [0x10044068], 2
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100377a6
add esp, 0xac
ret
mov dword [0x10044068], 1
jmp 0x100027e8
cmp eax, 2
je 0x10002832
push esi
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10002819
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x10002831
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100377a6
add esp, 0xac
ret

Function at 0x10002870
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5d0]
test esi, esi
je 0x100028c9
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x1000288f
cmp dword [edi + 0x40], eax
je 0x100028c9
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x100028a2
mov eax, dword [edi + 0x40]
push 0x10002850
lea ecx, [esp + 0xc]
add eax, 0x60
push ecx
push eax
call fcn.10001dc0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x100028d2
mov dword [edi + 0x5d0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100028dc
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x10002901
push esi
call fcn.10036f30
add esp, 4
test eax, eax
jne 0x10002915
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x100028c9
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x100056b0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x100056e3
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x100056e1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x10008610
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x10008634
cmp eax, 0xffffffff
jne 0x10008636
xor eax, eax
ret

Function at 0x10008c70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10044054]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10008cc2
mov eax, dword [esp]
cmp al, 2
jne 0x10008cbc
shr eax, 8
cmp al, 2
jne 0x10008cbc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100377a6
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.100377a6
add esp, 0x194
ret

Function at 0x1000ad70
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x1000ad92
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1000ad86
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x1000adc4
cmp dword [esi + 8], 0
jne 0x1000adb6
mov ecx, dword [eax + 8]
push 0x1003a564
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1000adb6
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1000ade7
mov eax, dword [esi + 8]
test eax, eax
je 0x1000ade1
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x1000b5e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x10044054]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1000b634
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.10002920
add esp, 8
cmp edi, 0xffffffff
jne 0x1000b668
push str.Error_accept__ing_server_connect
push ebp
call fcn.10023130
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100377a6
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.100230a0
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.1001e460
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x1000b6d6
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x1000b6d6
push edi
push esi
call fcn.10002920
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100377a6
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100377a6
add esp, 0x18
ret
Function at 0x1000ee60
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x1000ee96
push str.Couldnt_set_desired_mode
push ebx
call fcn.10023130
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x1000eead
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.100230a0
add esp, 0xc
cmp ebp, 0x13
jne 0x1000eec1
push edi
call fcn.1000edf0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x1000eed5
push edi
call fcn.1000c130
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x1000eee7
mov eax, edi
call fcn.1000ee40
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x1000eef5
mov eax, edi
call fcn.1000ee50
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x10010e30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10044054]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10010e96
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10010e96
lea edx, [esp]
push edx
call dword [0x10044014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100377a6
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.100377a6
add esp, 0x108
ret
jmp 0x10010e30

Function at 0x10010eb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10044054]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10010e96
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10010e96
lea edx, [esp]
push edx
call dword [0x10044014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100377a6
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.100377a6
add esp, 0x108
ret
jmp 0x10010e30
Function at 0x10011b80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x10044008]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10011ba5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x10011bec
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10011bf0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x10011c4e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x10011c13
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x10011c91
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push str.6xn__
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x1003b663
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x10011c60
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1001dec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
call fcn.1002adc0
mov edi, edx
mov ebx, eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x28], esi
je 0x1001df1a
mov eax, dword [esp + 0x34]
push eax
push ebp
call sym.libcurl.dll_curl_multi_perform
mov edi, eax
add esp, 8
cmp edi, 1
je 0x1001df10
mov esi, dword [ebp + 4]
test esi, esi
je 0x1001df10
push esi
push ebp
call fcn.1001bfd0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x1001df00
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x2c], 0xffffffff
je 0x1001e067
push 4
lea ecx, [esp + 0x30]
push ecx
lea edx, [ebp + 0x40]
push edx
call fcn.10011900
add esp, 0xc
test eax, eax
je 0x1001dffc
mov esi, dword [eax]
cmp dword [esi + 0x87d4], 0xc0dedbad
je 0x1001df5b
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x30]
test ecx, ecx
je 0x1001df98
test dl, 2
je 0x1001df80
mov eax, dword [ecx + 0x2ac]
test eax, eax
je 0x1001df80
cmp dword [eax], 0
je 0x1001df80
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x1001df98
test dl, 1
je 0x1001df98
mov eax, dword [ecx + 0x2b0]
test eax, eax
je 0x1001df98
cmp dword [eax], 0
je 0x1001df98
mov ecx, dword [eax]
mov esi, dword [ecx]
mov eax, dword [esi + 8]
test eax, eax
je 0x1001dfb1
mov ecx, dword [eax + 0x268]
test byte [ecx + 0x40], 8
jne 0x1001dfb1
mov dword [eax + 0x4c0], edx
push edi
push ebx
push ebp
call fcn.1001cf80
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x1001dfdd
mov edx, dword [ecx + 0x268]
test byte [edx + 0x40], 8
jne 0x1001dfdd
mov dword [ecx + 0x4c0], 0
test eax, eax
jg 0x1001dfeb
push esi
push ebp
call fcn.1001bfd0
add esp, 8
xor esi, esi
call fcn.1002adc0
mov ebx, eax
mov dword [esp + 0x1c], edx
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x1001e01d
push edi
push ebx
push ebp
call fcn.1001cf80
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jg 0x1001e01d
push esi
push ebp
call fcn.1001bfd0
add esp, 8
mov ecx, dword [ebp + 0x3c]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push ebx
call fcn.10026e90
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x1001e052
mov esi, dword [eax + 0x14]
push ebp
push edi
push ebx
mov edi, esi
call fcn.1001c2b0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x1001dff8
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret
xor eax, eax
mov dword [ebp + 0xb4], eax
mov dword [ebp + 0xb8], eax
jmp 0x1001dffc
Function at 0x1001ec30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x1001ec49
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.1002adc0
push edx
push eax
call fcn.1002adf0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1001ec96
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.1002adc0
push edx
push eax
call fcn.1002adf0
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x1001ec98
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x100216e0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x100216ef
jmp dword [ecx*4 + 0x10021744]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret