joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094350
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100944e2
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100944cc
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x1009439f
lea ebp, [eax + 0xe]
jmp 0x100943ab
cmp eax, 0x17
jne 0x10094459
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x10094459
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10094459
cmp eax, ebp
jb 0x10094459
push 0x20
call dword [0x101330a8]
mov esi, eax
add esp, 4
test esi, esi
je 0x100944c1
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x101330a8]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100944b0
push ebp
push dword [edi + 0x18]
push eax
call fcn.100cd1c0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x10094445
push eax
call dword [0x101330b4]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x10094496
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10094455
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10094392
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x10094478
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x100944c8
push ebx
call fcn.10094310
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x101330ac]
push esi
call dword [0x101330ac]
add esp, 8
jmp 0x10094468
push esi
mov ebp, 8
call dword [0x101330ac]
add esp, 4
jmp 0x10094468
mov ebp, 8
jmp 0x10094468
test ebx, ebx
jne 0x100944d8
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10094f00
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10094f1a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x10107cd4
push esi
call fcn.100e3da0
add esp, 8
test eax, eax
je 0x10094f62
test ebp, ebp
je 0x10094f53
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10094f88
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10094f88
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1009503f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10094fa5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x101330a8]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10095035
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10095035
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10094fd7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10094ff0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10095000
test ebp, ebp
je 0x1009502c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x101330ac]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x101330ac]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10098740
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.100e40df
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100987a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100987a5
lea eax, [esp]
push eax
call dword [0x101330b4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10070d87
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.10070d87
add esp, 0x108
ret

Function at 0x1009a070
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1009a0bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.100851a0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.10099c80
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x1009a1f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x150]
jne 0x1009a340
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x1009a22b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x1009a22d
mov eax, ebx
cmp eax, edi
jae 0x1009a241
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a241
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a2ab
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a2ab
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a2ab
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a2ab
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a2ab
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1009a2ab
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.10099d80
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1009a2ff
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100851a0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.1009a0e0
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1009a33d
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100851a0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x1009b730
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
lea eax, [esp + 8]
push esi
push edi
push eax
mov edi, dword [ebp + 0x530]
lea eax, [esp + 0x1c]
mov ebx, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x1009b7b6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.100cd1c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x1009b7f1
push str.Received_too_short_packet
push ebx
call fcn.100851a0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10070d87
add esp, 0x8c
ret
mov eax, dword [edi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x1009b812
jmp dword [ecx*4 + 0x1009b938]
cmp edx, 4
jle case.0x1009b812.4
mov esi, dword [edi + 0x15c]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1009b812.4
lea eax, [edx - 4]
push eax
lea eax, [esi + 4]
push eax
push 1
push ebp
call fcn.100850e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009b870
push 5
push edi
call fcn.1009c210
add esp, 8
mov eax, esi
jmp 0x1009b7d8
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.10090bf0
jmp 0x1009b90c
mov eax, dword [edi + 0x15c]
lea esi, [edx - 4]
push esi
lea ecx, [eax + 4]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
push dword [esp + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
call fcn.1009b420
add esp, 8
cmp eax, esi
jae case.0x1009b812.4
push dword [esp + 0x14]
push str.TFTP_error:__s_n
push ebx
call fcn.10085280
jmp 0x1009b90c
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x15c]
add eax, 2
push eax
push edi
call fcn.1009b4c0
add esp, 0xc
test eax, eax
je case.0x1009b812.4
jmp 0x1009b7d8
push str.Internal_error:_Unexpected_packet
push 0x1011c7cc
push ebx
call fcn.100851a0
add esp, 0xc
push ebp
call fcn.10090fa0
add esp, 4
test eax, eax
je 0x1009b7d6
push 5
push edi
call fcn.1009c210
add esp, 8
mov eax, 0x2a
jmp 0x1009b7d8
Function at 0x100a2340
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x1ac]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100a23a2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.10085c30
add esp, 8
cmp esi, 0xffffffff
jne 0x100a23c6
push str.Error_accept__ing_server_connect
push ebx
call fcn.100851a0
add esp, 8
mov eax, 0x1e
jmp 0x100a2435
push str.Connection_accepted_from_server_n
push ebx
call fcn.10085280
push 1
mov byte [edi + 0x28c], 0
push esi
mov dword [edi + 0x1ac], esi
call fcn.100ac640
add esp, 0x10
mov byte [edi + 0x1b9], 1
cmp dword [ebx + 0x610], 0
je 0x100a2433
push 1
push ebx
call fcn.10076160
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.10076160
add esp, 0x1c
test esi, esi
je 0x100a2433
push edi
call fcn.100a28e0
add esp, 4
mov eax, 0x2a
jmp 0x100a2435
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10070d87
add esp, 0x88
ret
Function at 0x100b3f40
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x100b3f50
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x100b403e
test esi, esi
je 0x100b3f75
lea eax, [esi + esi]
push eax
call dword [0x101330a8]
jmp 0x100b3f80
push 0x1011bac0
call dword [0x101330b4]
mov edi, eax
add esp, 4
test edi, edi
je 0x100b403e
xor ecx, ecx
test esi, esi
je 0x100b3fa3
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x100b3f93
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x100b4020
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100b4014
push 0
lea eax, [esi + esi]
mov dword [esp + 0x18], 0x10
push eax
push edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push 2
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x101330ac]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x100b4050
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x20], eax
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100b4150
push esi
mov esi, dword [esp + 0x38]
push 8
mov dword [esp + 0x18], 0x208
mov dword [esp + 0x1c], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [esp + 0x24], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [esp + 0x25], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [esp + 0x26], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [esp + 0x27], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [esp + 0x28], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [esp + 0x29], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [esp + 0x20], 8
mov byte [esp + 0x2a], al
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2f], cl
call fcn.100b6a70
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x100b4162
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10070d87
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
push dword [esp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
xor ecx, esp
call fcn.10070d87
add esp, 0x24
ret
Function at 0x100b6b20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x101330a8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100b6b47
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x100b6b92
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x100b6b96
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100b6bf6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x100b6bb5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x100b6c27
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push str.6hS
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1010fec7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100b6c00
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x100b8673
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x100e98d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100e9754
Function at 0x100018b6
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x100018eb
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x100018e8
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x100018f4
add edx, 0x28
cmp edx, esi
jne 0x100018d6
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100018f1

Function at 0x10003392
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100033d1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100033d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100033d1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100033d1
cmp dword [ecx + 0x74], 0xe
jbe 0x100033d1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100051f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000521d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000521d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10008724
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100087c1
push ebx
push esi
call fcn.100087c4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000862a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000876e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100087c0
push edi
push eax
call fcn.10007350
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000878e
call fcn.100069a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100087bf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000862a
add esp, 0x20
test eax, eax
jne 0x100087ad
push edi
call fcn.100069a0
jmp 0x100087b5
push ebx
call fcn.100069a0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x7eef1d
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xd2ccf1
push ebp
push esp
mov ebp, dword [esp]
add esp, 4
add ebp, 4
sub ebp, 4
xchg dword [esp], ebp
mov esp, dword [esp]
mov dword [esp], edx
jmp 0xd25f26
jmp 0xd2613d
jmp 0xd261ef
rdtsc
jmp 0xd26245
jmp 0xd27254
jmp 0xd272d6
push edx
not dword [esp]
pop edx
sub edx, 0x1300be25
add ecx, edx
pop edx
sub ecx, 4
xchg dword [esp], ecx
pop esp
jmp 0xd272cb
push ecx
mov ecx, esp
push edx
mov edx, 0x7dffe339
add edx, 0x6eff5e9d
jge 0xd272b1
jmp 0xd272b1
jmp 0xd273a3
pop esp
jmp 0xd274d7
push ebp
mov dword [esp], eax
mov eax, esp
push ecx
mov ecx, 0x3dc71722
add ecx, 0xc238e8e2
add eax, ecx
pop ecx
push ebp
mov ebp, 0x14
sub eax, ebp
mov ebp, dword [esp]
add esp, 4
xchg dword [esp], eax
jmp 0xd2739d
jmp 0xd30b1b
jmp 0xd2aa24
push esi
push esp
pop dword [esp]
push edx
mov edx, 4
add dword [esp + 4], edx
pop edx
mov ebp, dword [esp]
add esp, 4
jmp 0xd2aa42
jmp 0xd27398
push edi
push esp
pop edi
add edi, 4
sub edi, 4
push edi
push dword [esp + 4]
pop edi
pop dword [esp]
pop esp
mov dword [esp], edi
mov dword [esp], ebp
jmp 0xd2ce2f
jmp 0xd2a908
jmp 0xd30c1d
push ebp
push eax
mov dword [esp], esp
add dword [esp], 4
mov ebp, dword [esp]
add esp, 4
add ebp, 4
sub ebp, 4
xchg dword [esp], ebp
pop esp
mov dword [esp], ebx
jmp 0xd30c47
jmp 0xd312d4
jmp 0xd3132b
mov dword [esp + 4], ebx
pop ebx
mov dword [esp], ecx
jmp 0xd313f7
push edi
mov dword [esp], 0x6a3f8693
mov dword [esp], ebp
push ebx
mov ebx, 0x4fdee59f
jmp 0xd312d9
jmp 0xd25df1
Function at 0x438cc4
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x438a14
and edx, edx
call fcn.00438cfb
and edx, eax
mov eax, eax
add edx, 1
xor dword [esi], edi
dec eax
inc esi
sub edx, 0x3ab08f57
push eax
pop eax
cmp esi, ebx
jne fcn.00438cc4
push 0xc6d22a4d
pop edx
add eax, edx
ret
Function at 0xfd1370
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 0xfd138e
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 0xffa074
push ecx
mov edi, eax
call fcn.00fe5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xfd13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00fe502e
push esi
call fcn.00fe4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret