joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e2d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov esi, ecx
mov eax, dword [ecx + 0x18]
mov dword [esp + 0xc], eax
mov ebx, dword [eax + 0x1ac]
mov dword [esp + 4], pe_nt_image_headers32
lea eax, [esp + 4]
lea edi, [esp + 0x10]
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44e326
push str.Error_accept__ing_server_connect
push esi
call fcn.00443930
add esp, 8
mov eax, 0x1e
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], pe_nt_image_headers32
push str.ftp.c
push 0x1bc
lea eax, [esp + 0xc]
push eax
push edi
push ebx
call fcn.00406230
add esp, 0x14
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x44e30b
test byte [esi + 0x6eb], 0x20
mov ebx, esi
je 0x44e37d
mov ecx, dword [ebx + 0xd20]
test ecx, ecx
je 0x44e36b
cmp dword [ecx + 4], 0
jle 0x44e37d
push str.Connection_accepted_from_server
push ebx
mov esi, eax
call fcn.004439c0
mov eax, esi
add esp, 8
mov esi, dword [esp + 0xc]
and byte [esi + 0x2a1], 0xef
push 1
push eax
call fcn.004651d0
add esp, 8
lea eax, [esp + 8]
push eax
push 1
push esi
push ebx
call fcn.00438c50
add esp, 0x10
test eax, eax
je 0x44e3c7
push str.ftp.c
push 0x1cc
push dword [esp + 0x10]
mov esi, eax
call fcn.004062a0
mov eax, esi
add esp, 0xc
jmp 0x44e31e
xor eax, eax
cmp dword [ebx + 0x19c], 0
je 0x44e31e
push 1
push ebx
call fcn.00411e00
add esp, 8
push 1
push dword [esp + 0xc]
push dword [ebx + 0x1a0]
call dword [ebx + 0x19c]
add esp, 0xc
mov edi, eax
push 0
push ebx
call fcn.00411e00
xor eax, eax
add esp, 8
test edi, edi
je 0x44e31e
test byte [ebx + 0x6eb], 0x20
je 0x44e45c
mov eax, dword [ebx + 0xd20]
test eax, eax
je 0x44e426
cmp dword [eax + 4], 0
jle 0x44e45c
mov eax, dword [0xb3a3d4]
cmp dword [eax + 4], 0
jle 0x44e45c
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x44e448
movzx eax, byte [eax + 0x3b6]
mov eax, dword [eax*4 + 0xa00f88]
jmp 0x44e44d
mov eax, 0xa01014
push eax
push str.__s__closing_DATA_connection
push ebx
call fcn.00443d30
add esp, 0xc
push 1
push ebx
call fcn.00439f60
add esp, 8
push 1
push dword [ebx + 0x18]
push ebx
call fcn.00439ef0
add esp, 0xc
mov eax, 0x2a
jmp 0x44e31e

Function at 0x44f780
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, 1
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop word cs:[eax + eax]
push str.getenv.c
push 0x30
push edi
push ebx
call fcn.00405ec0
add esp, 0x10
test eax, eax
je 0x44f7e2
mov esi, eax
push edi
push eax
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x44f7d8
cmp eax, edi
je 0x44f7d8
cmp eax, 0x8001
jae 0x44f7d8
mov ebx, esi
cmp eax, edi
mov edi, eax
jae 0x44f7a0
jmp 0x44f7f4
push str.getenv.c
push 0x3d
push esi
jmp 0x44f7ea
push str.getenv.c
push 0x32
push ebx
call fcn.00405f90
add esp, 0xc
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45e2e0
Capabilities:
Parse credit card information

Disassembly:
test edx, edx
je 0x45e47a
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
movzx eax, byte [edi]
mov ecx, eax
add cl, 0xd0
cmp cl, 0xa
jb 0x45e3f0
mov ecx, eax
and cl, 0xdf
add cl, 0xbf
cmp cl, 0x19
jbe 0x45e3f0
cmp eax, 0x5e
jg 0x45e3e0
lea ecx, [eax - 0x2d]
cmp ecx, 2
jb 0x45e3f0
cmp eax, 0x25
jne 0x45e40a
movzx eax, byte [edi + 1]
mov ecx, eax
add cl, 0xd0
cmp cl, 0xa
jb 0x45e365
movzx eax, al
lea ecx, [eax - 0x61]
cmp ecx, 6
jb 0x45e365
add eax, 0xffffffbf
cmp eax, 5
ja 0x45e469
movzx eax, byte [edi + 2]
mov ecx, eax
add cl, 0xd0
cmp cl, 0xa
jb 0x45e38a
movzx eax, al
lea ecx, [eax - 0x61]
cmp ecx, 6
jb 0x45e38a
add eax, 0xffffffbf
cmp eax, 5
ja 0x45e469
lea ebx, [edi + 2]
mov byte [esp + 6], 0
mov word [esp + 4], 0x25
movsx eax, byte [edi + 1]
push eax
call fcn.0041b6a0
add esp, 4
mov byte [esp + 5], al
movsx eax, byte [edi + 2]
push eax
call fcn.0041b6a0
add esp, 4
mov byte [esp + 6], al
push 3
lea eax, [esp + 8]
push eax
push ebp
call fcn.00446cb0
add esp, 0xc
add esi, 0xfffffffe
mov edi, ebx
dec esi
jne 0x45e3ff
jmp 0x45e472
cmp eax, 0x7e
je 0x45e3f0
cmp eax, 0x5f
jne 0x45e40a
nop word [eax + eax]
push 1
push edi
push ebp
call fcn.00446cb0
add esp, 0xc
dec esi
je 0x45e472
inc edi
test eax, eax
je 0x45e300
jmp 0x45e472
mov byte [esp + 2], 0
mov word [esp], 0x25
movzx eax, byte [edi]
cmp dword [esp + 0x20], 0
je 0x45e43c
cmp eax, 0x3d
jne 0x45e441
push 1
push edi
push ebp
call fcn.00446cb0
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov byte [ecx], 1
dec esi
jne 0x45e3ff
jmp 0x45e472
cmp eax, 0x2f
je 0x45e3f0
shr eax, 4
movzx eax, byte [eax + 0xa04a3f]
mov byte [esp + 1], al
movzx eax, byte [edi]
and eax, 0xf
movzx eax, byte [eax + 0xa04a3f]
mov byte [esp + 2], al
push 3
lea eax, [esp + 4]
push eax
jmp 0x45e3f3
push 3
push 0xa04a3b
jmp 0x45e3f3
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
ret

Function at 0x4651d0
Capabilities:
Set socket configuration

Disassembly:
push eax
mov eax, dword [esp + 8]
xor ecx, ecx
cmp dword [esp + 0xc], 0
setne cl
mov dword [esp], ecx
mov ecx, esp
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret
Function at 0x47ad40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c0
mov ebp, edx
mov ebx, ecx
mov edi, dword [esp + 0x1d8]
mov eax, dword [ecx + 8]
mov dword [esp], eax
lea esi, [esp + 0x5c]
push 0x100
push 0xa0a26c
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 4], ebp
push ebp
push ebx
call fcn.0042b8f0
add esp, 8
mov dword [esp + 8], eax
call fcn.005b4c90
mov ebp, eax
and eax, 0xff800000
cmp eax, 0xa000000
jne 0x47ae28
mov eax, ebp
and eax, 0x7fffff
cmp eax, 0x414
jg 0x47adcb
cmp eax, 0x86
je 0x47addd
cmp eax, 0xcf
jne 0x47ae28
mov eax, dword [esp]
or byte [eax + 0x2d8], 8
mov esi, str.QUIC_connection_has_been_shut_down
jmp 0x47af77
cmp eax, 0x45c
je 0x47af2d
cmp eax, 0x415
jne 0x47ae28
mov eax, dword [esp]
push dword [eax + 0x10c]
call fcn.00506120
add esp, 4
mov edi, 0x3c
test eax, eax
je 0x47af72
mov ecx, dword [esp + 8]
mov dword [ecx + 0x48], eax
push eax
call fcn.00630c50
add esp, 4
lea esi, [esp + 0x5c]
push eax
push str.SSL_certificate_problem:__s
push 0x100
push esi
call fcn.0040b350
add esp, 0x10
jmp 0x47af77
mov byte [esp + 0x5c], 0
push 0x100
push esi
push ebp
call fcn.005b54b0
add esp, 0xc
cmp byte [esp + 0x5c], 0
je 0x47ae51
mov eax, edi
xor eax, 0x23
or eax, ebp
je 0x47ae7b
jmp 0x47af77
test ebp, ebp
mov eax, 0xa0a40d
mov ecx, 0xa0a3ff
cmove ecx, eax
lea eax, [esp + 0x5c]
push ecx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov eax, edi
xor eax, 0x23
or eax, ebp
jne 0x47af77
mov ebp, dword [esp + 0x1d4]
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0xc], xmm0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edi, [esp + 0x15c]
push edi
push 0
push 0
push dword [esp + 0x10]
push dword [ebx + 4]
call fcn.00438e90
add esp, 0x14
test esi, esi
sete al
cmp ebp, 5
setne cl
or cl, al
jne 0x47aef2
lea ebx, [esp + 0xc]
push 0x50
push ebx
push esi
call fcn.0041ba80
add esp, 0xc
cmp byte [esp + 0xc], 0
mov eax, str.SSL_ERROR_SYSCALL
cmovne eax, ebx
mov ecx, dword [esp]
jmp 0x47af06
mov eax, str.SSL_ERROR_unknown
cmp ebp, 0xa
mov ecx, dword [esp]
ja 0x47af06
mov eax, dword [ebp*4 + 0xa0ad04]
push edi
push dword [esp + 0x1bc]
push dword [ecx + 0xf4]
push eax
push str.QUIC_connect:__s_in_connection_to__s:_d___s_
push dword [esp + 0x18]
call fcn.00443930
add esp, 0x18
mov edi, 0x23
jmp 0x47af89
mov byte [esp + 0x5c], 0
lea esi, [esp + 0x5c]
push 0x100
push esi
push ebp
call fcn.005b54b0
add esp, 0xc
mov edi, 0x62
cmp byte [esp + 0x5c], 0
jne 0x47af77
mov word [esp + 0x68], 0x72
mov dword [esp + 0x64], 0x6f727265
mov dword [esp + 0x60], 0x206e776f
mov dword [esp + 0x5c], 0x6e6b6e55
jmp 0x47af77
mov esi, str.SSL_certificate_verification_failed
push esi
push 0xa0a3fc
push dword [esp + 0xc]
call fcn.00443930
add esp, 0xc
mov eax, edi
add esp, 0x1c0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x484b50
Capabilities:
Get hostname

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov byte [esi], 0
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
je 0x484b71
pop esi
pop edi
ret
push 0x2e
push esi
mov esi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov ecx, eax
mov eax, esi
test ecx, ecx
je 0x484b6e
mov byte [ecx], 0
pop esi
pop edi
ret

Function at 0x487030
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x14]
lea eax, [ecx + eax*2]
add eax, 0xc
push str.hmac.c
push 0x43
push eax
call fcn.00405bd0
add esp, 0xc
mov esi, eax
test eax, eax
je 0x487146
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esi], edi
add eax, 0xc
mov dword [esi + 4], eax
mov ecx, dword [edi + 0xc]
add ecx, eax
mov dword [esi + 8], ecx
cmp dword [edi + 0x10], ebx
jae 0x4870a5
push eax
call dword [edi]
add esp, 4
push ebx
push ebp
push dword [esi + 4]
call dword [edi + 4]
add esp, 0xc
mov ebp, dword [esi + 8]
add ebp, dword [edi + 0xc]
push dword [esi + 4]
push ebp
call dword [edi + 8]
add esp, 8
mov ebx, dword [edi + 0x14]
mov eax, dword [esi + 4]
push eax
call dword [edi]
add esp, 4
push dword [esi + 8]
call dword [edi]
add esp, 4
test ebx, ebx
mov ecx, edi
je 0x48710a
xor edi, edi
mov dword [esp + 4], ebx
nop
movzx eax, byte [ebp + edi]
xor al, 0x36
mov byte [esp + 3], al
push 1
lea eax, [esp + 7]
push eax
push dword [esi + 4]
mov ebx, esi
mov esi, ebp
mov ebp, ecx
call dword [ecx + 4]
add esp, 0xc
movzx eax, byte [esi + edi]
xor al, 0x5c
mov byte [esp + 3], al
push 1
lea eax, [esp + 7]
push eax
push dword [ebx + 8]
call dword [ebp + 4]
mov ecx, ebp
mov ebp, esi
mov esi, ebx
mov ebx, dword [esp + 0x10]
add esp, 0xc
inc edi
cmp ebx, edi
jne 0x4870c0
cmp ebx, dword [ecx + 0x10]
jae 0x487146
mov edi, ecx
nop word cs:[eax + eax]
push 1
push str.6_s__s_s_s_s_HTTP_1._d_r_n
push dword [esi + 4]
call dword [edi + 4]
add esp, 0xc
push 1
push 0xa0c2c5
push dword [esi + 8]
call dword [edi + 4]
add esp, 0xc
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x487120
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x487890
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push esi
sub esp, 0xc
mov dword [esp], 0
mov dword [esp + 4], 0
sub esp, 0x14
movaps xmm0, xmmword [0xa0c2f0]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, 2
test eax, eax
je 0x48795e
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x487965
mov esi, dword [esp + 0x18]
push dword [esp + 0x1c]
call fcn.00426230
add esp, 4
push 0
push eax
push esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [esp + 8], 0
lea esi, [esp + 8]
push 0
push esi
push 0
push 2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp + 8], 0x10
jne 0x48793d
push 0
push esi
push dword [esp + 0x1c]
push 2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 4]
test eax, eax
je 0x48794c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp]
test eax, eax
je 0x48795c
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
mov eax, esi
add esp, 0xc
pop esi
ret
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
add esp, 0xc
pop esi
ret
Function at 0x4991d0
Capabilities:
Parse credit card information

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
mov ecx, eax
and ecx, 3
jmp dword [ecx*4 + 0xa15540]
Function at 0x4b3340
Capabilities:
Get hostname

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov dword [esp], 0
test byte [ecx + 0x44], 1
jne 0x4b3385
mov dword [esi], 0x100
cmp dword [esi + 0x38], 0
jne 0x4b338b
mov dword [esi + 0x38], 0x4d0
cmp dword [esi + 4], 0
jne 0x4b3391
mov dword [esi + 4], 0x7d0
cmp dword [esi + 8], 0
jne 0x4b3397
mov dword [esi + 8], 3
jmp 0x4b3397
cmp dword [esi + 0x38], 0
je 0x4b3362
cmp dword [esi + 4], 0
je 0x4b336f
cmp dword [esi + 8], 0
je 0x4b337c
push dword [esi + 0x84]
call fcn.004bdd90
add esp, 4
test eax, eax
je 0x4b33f5
xor ebx, ebx
cmp dword [esi + 0x28], 0
je 0x4b3464
cmp dword [esi + 0x30], 0
je 0x4b34c9
xor eax, eax
cmp dword [esi + 0x34], 0
je 0x4b34dc
test byte [esi + 0x46], 0x80
jne 0x4b3502
mov word [esi + 0xd0], 0xa
mov dword [esi + 0xd4], 0x1388
test ebx, ebx
jne 0x4b3506
jmp 0x4b3516
mov eax, 0x1a
test byte [esi + 1], 2
jne 0x4b3516
mov dword [esp + 4], 2
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov ecx, esp
push 0
push 0
push 0
push eax
push ecx
call fcn.004b9f80
add esp, 0x14
test eax, eax
jne 0x4b3516
push 0
push dword [esp + 4]
push esi
call fcn.004ba5d0
add esp, 0xc
mov edi, eax
push dword [esp]
call fcn.004bd5e0
add esp, 4
test edi, edi
je 0x4b33a9
mov eax, edi
jmp 0x4b3516
mov eax, dword [0xb3a40c]
push 0x40
call dword [eax]
add esp, 4
test eax, eax
je 0x4b351e
mov edi, 0x40
mov ebp, 0x40
nop word cs:[eax + eax]
mov ebx, eax
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4b3525
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x4b3529
add ebp, ebp
add edi, edi
push ebp
push ebx
mov eax, dword [0xb3a410]
call dword [eax]
add esp, 8
test eax, eax
jne 0x4b3490
jmp 0x4b357e
mov dword [esi + 0x2c], 0
xor eax, eax
cmp dword [esi + 0x34], 0
jne 0x4b33cb
push 0xa1e5a4
call fcn.004c6290
add esp, 4
mov dword [esi + 0x34], eax
xor ecx, ecx
test eax, eax
mov eax, 0xf
cmovne eax, ecx
test byte [esi + 0x46], 0x80
je 0x4b33d5
test ebx, ebx
je 0x4b3516
mov ecx, dword [0xb3a404]
push ebx
mov esi, eax
call dword [ecx]
mov eax, esi
add esp, 4
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0xf
jmp 0x4b3516
test eax, eax
je 0x4b352c
mov byte [ebx], 0
push 0x2e
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x4b33b5
mov edi, eax
push 4
mov eax, dword [0xb3a40c]
call dword [eax]
add esp, 4
mov ecx, eax
mov dword [esi + 0x24], eax
mov eax, 0xf
test ecx, ecx
je 0x4b3506
inc edi
push edi
call fcn.004c6290
add esp, 4
mov ecx, dword [esi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
cmp dword [eax], 0
je 0x4b357e
mov dword [esi + 0x28], 1
jmp 0x4b33b5
mov eax, 0xf
jmp 0x4b3506
Function at 0x4b48e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edi, dword [ebx + 0x28]
push dword [edi + 0x84]
call fcn.004bdd90
add esp, 4
mov esi, eax
mov dword [esp + 4], edi
imul esi, dword [edi + 8]
push dword [ebx + 0x2c]
call fcn.004bddf0
add esp, 4
push dword [ebx + 0x30]
call fcn.004bd4b0
add esp, 4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
test ebp, ebp
je 0x4b494b
mov dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x48]
cmp dword [esp + 8], 0
je 0x4b4959
inc eax
mov dword [ebx + 0x48], eax
cmp eax, esi
jae 0x4b4967
cmp dword [ebx + 0x5c], 0
je 0x4b4a27
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x4b497a
mov dword [ebx + 0x54], 0xc
mov esi, 0xc
mov edi, dword [esp]
push edi
push esi
push 0
push ebx
call fcn.004cad10
add esp, 0x10
push edi
push dword [ebx + 0x58]
push esi
push dword [ebx + 0x44]
call dword [ebx + 0x40]
add esp, 0x10
push dword [ebx + 0x2c]
call fcn.004bddf0
add esp, 4
push dword [ebx + 0x30]
call fcn.004bd4b0
add esp, 4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x28]
movzx ecx, word [ebx]
push ecx
push dword [eax + 0x90]
call fcn.004bd0e0
add esp, 8
push dword [ebx + 0x34]
call fcn.004bd4b0
add esp, 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
push dword [ebx + 0x3c]
call fcn.004c18c0
add esp, 4
mov eax, dword [0xb3a404]
push ebx
call dword [eax]
add esp, 4
push dword [esp + 4]
call fcn.004c7270
add esp, 4
mov eax, 0xc
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004b4a40
Function at 0x4b6d40
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14c
mov ebp, dword [esp + 0x168]
mov esi, dword [esp + 0x164]
mov ecx, dword [esp + 0x160]
mov dword [esp + 8], 0
test ecx, ecx
sete al
test esi, esi
sete dl
or dl, al
test ebp, ebp
sete al
or al, dl
mov eax, 2
jne 0x4b6e2f
mov dword [ebp], 0
mov eax, 4
test byte [ecx], 0x40
jne 0x4b6e2f
push 0x2e
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
mov ecx, eax
mov eax, 4
test ecx, ecx
jne 0x4b6e2f
push str.HOSTALIASES
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
xor ebx, ebx
test eax, eax
je 0x4b6e07
mov edi, eax
mov dword [esp], 4
call fcn.004c4690
test eax, eax
je 0x4b6e10
push eax
push edi
mov ebx, eax
call fcn.004c61a0
add esp, 8
test eax, eax
jne 0x4b6e02
lea eax, [esp + 8]
push eax
push 0
push 0x30
push 1
push 0xa1e688
push ebx
call fcn.004c53b0
add esp, 0x18
test eax, eax
je 0x4b6e3a
mov dword [esp], eax
jmp 0x4b6e17
mov dword [esp], 4
jmp 0x4b6e17
mov dword [esp], 0xf
push ebx
call fcn.004c46f0
add esp, 4
push dword [esp + 8]
call fcn.004bd5e0
add esp, 4
mov eax, dword [esp]
add esp, 0x14c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], ebx
push dword [esp + 8]
call fcn.004bd350
add esp, 4
test eax, eax
je 0x4b6fc1
mov edi, eax
jmp 0x4b6e69
push edi
call fcn.004bd3c0
add esp, 4
mov edi, eax
test eax, eax
je 0x4b6fc1
push edi
call fcn.004bd3e0
add esp, 4
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x13c], xmm0
movups xmmword [esp + 0x12c], xmm0
movups xmmword [esp + 0x11c], xmm0
movups xmmword [esp + 0x10c], xmm0
movups xmmword [esp + 0xfc], xmm0
movups xmmword [esp + 0xec], xmm0
movups xmmword [esp + 0xdc], xmm0
movups xmmword [esp + 0xcc], xmm0
movups xmmword [esp + 0xbc], xmm0
movups xmmword [esp + 0xac], xmm0
movups xmmword [esp + 0x9c], xmm0
movups xmmword [esp + 0x8c], xmm0
movups xmmword [esp + 0x7c], xmm0
movups xmmword [esp + 0x6c], xmm0
movups xmmword [esp + 0x5c], xmm0
movups xmmword [esp + 0x4c], xmm0
push eax
call fcn.004c4bf0
add esp, 4
push ebx
call fcn.004c51d0
add esp, 4
push 0x40
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004c4d10
add esp, 0xc
test eax, eax
jne 0x4b6e56
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4b6e56
push 1
push ebx
call fcn.004c5130
add esp, 8
push ebx
call fcn.004c4bf0
add esp, 4
push ebx
call fcn.004c51d0
add esp, 4
push 0x100
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.004c4d10
add esp, 0xc
test eax, eax
jne 0x4b6e56
lea eax, [esp + 0x4c]
push eax
call fcn.004c6280
add esp, 4
test eax, eax
je 0x4b6e56
lea eax, [esp + 0x4c]
push eax
call fcn.004c6560
add esp, 4
test eax, eax
je 0x4b6e56
lea eax, [esp + 0x4c]
push eax
call fcn.004c6290
add esp, 4
mov dword [ebp], eax
xor ecx, ecx
test eax, eax
mov eax, 0xf
cmovne eax, ecx
mov dword [esp], eax
mov ebx, dword [esp + 4]
jmp 0x4b6e17
Function at 0x4b8550
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x18]
push str.LOCALDOMAIN
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x4b860f
push eax
call fcn.004c6290
add esp, 4
mov esi, eax
mov eax, 0xf
test esi, esi
je 0x4b8642
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4b85ac
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4b85ac
push ecx
push eax
call fcn.004c6610
add esp, 8
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea ebx, [edi + 0x10]
push ebx
push 0xa1e78b
push esi
call fcn.004c66e0
add esp, 0xc
mov dword [edi + 0xc], eax
test eax, eax
je 0x4b8632
cmp dword [ebx], 2
jb 0x4b8604
mov dword [esp], ebx
mov ebp, 1
mov ebx, dword [0xb3a404]
nop dword [eax + eax]
mov eax, dword [edi + 0xc]
push dword [eax + ebp*4]
call dword [ebx]
add esp, 4
mov eax, dword [edi + 0xc]
mov dword [eax + ebp*4], 0
inc ebp
cmp ebp, dword [edi + 0x10]
jb 0x4b85e0
mov eax, dword [esp]
mov dword [eax], 1
mov eax, dword [0xb3a404]
push esi
call dword [eax]
add esp, 4
push str.RES_OPTIONS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x4b862e
push eax
push edi
call fcn.004b8270
add esp, 8
test eax, eax
jne 0x4b8642
xor eax, eax
jmp 0x4b8642
mov eax, dword [0xb3a404]
push esi
call dword [eax]
add esp, 4
mov eax, 0xf
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bbb10
Capabilities:
Check if file exists

Disassembly:
push esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, 0x17
je 0x4bbb3a
cmp eax, 2
jne 0x4bbb68
push 4
call fcn.004bb7e0
add esp, 4
mov esi, eax
cmp eax, 0xffffffff
jne 0x4bbb5e
jmp 0x4bbb4f
push 0x10
push edx
push ecx
push 0x17
call fcn.004bb2f0
add esp, 0x10
mov esi, eax
cmp eax, 0xffffffff
jne 0x4bbb5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 2
je 0x4bbb66
sar esi, 0x1f
or esi, 1
mov eax, esi
pop esi
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
pop esi
ret

Function at 0x4c61a0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
sete al
test ebx, ebx
sete dl
or dl, al
mov eax, 2
jne 0x4c6217
push 0xa1fb0d
push ecx
call fcn.00786c50
add esp, 8
test eax, eax
je 0x4c61fe
mov esi, eax
push 2
push 0
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
mov ebp, 0xe
test eax, eax
je 0x4c621f
push esi
call fcn.00786c28
add esp, 4
mov eax, ebp
jmp 0x4c6217
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
cmp eax, 2
mov ecx, 4
mov eax, 0xe
cmove eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
test eax, eax
js 0x4c61f1
mov edi, eax
push 0
push 0
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
test eax, eax
jne 0x4c61f1
test edi, edi
je 0x4c626d
mov dword [esp], edi
mov eax, esp
push eax
push ebx
call fcn.004c4a40
add esp, 8
test eax, eax
je 0x4c6271
push esi
push edi
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
mov dword [esp], eax
cmp eax, edi
jne 0x4c61f1
add dword [ebx + 4], edi
xor ebp, ebp
jmp 0x4c61f1
mov ebp, 0xf
jmp 0x4c61f1

Function at 0x4c6ed0
Capabilities:
Create thread

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test ebx, ebx
sete al
test edi, edi
sete cl
or cl, al
mov eax, 2
jne 0x4c6f2a
push 0x14
call fcn.004b39d0
add esp, 4
test eax, eax
je 0x4c6f2e
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov eax, esi
add eax, 4
push eax
push 0
push esi
push 0x4c6f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x4c6f37
mov dword [edi], esi
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, 0xf
pop esi
pop edi
pop ebx
ret
mov eax, dword [0xb3a404]
push esi
call dword [eax]
add esp, 4
mov eax, 3
pop esi
pop edi
pop ebx
ret