joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441090
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
lea eax, [ecx - 0xc8]
xor esi, esi
mov edx, dword [ebx]
cmp eax, 0x64
jb 0x4410bd
push str.Couldnt_set_desired_mode
push edx
call fcn.00428f80
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x4410d4
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00429070
add esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push edi
cmp eax, 0x13
jne 0x4410ef
push ebx
call fcn.00440fa0
add esp, 4
mov esi, eax
pop edi
pop ebp
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x4411fc
mov esi, dword [ebx]
xor edi, edi
cmp dword [esi + 0x318], 2
jne 0x441164
mov eax, dword [esi + 0x4768]
test eax, eax
je 0x441164
cmp byte [eax], 0
je 0x441164
push 0x2f
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x441164
push dword [esi + 0x4768]
call dword [0x46d00c]
mov edi, eax
add esp, 4
test edi, edi
je 0x4411b6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441141
sub ecx, edx
cmp byte [ecx + edi - 1], 0x2f
je 0x441164
push 0x2f
push edi
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x441164
mov byte [eax + 1], 0
mov ecx, dword [esi + 0x388]
test ecx, ecx
jne 0x441182
cmp byte [esi + 0x32d], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x4653a0
test edi, edi
mov eax, edx
cmovne eax, edi
push eax
mov eax, 0x466024
cmove eax, edx
push eax
push ecx
push str._s_s_s
call fcn.00434cf0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4411c2
push edi
call dword [0x46d004]
add esp, 4
pop edi
mov esi, 0x1b
pop ebp
mov eax, esi
pop esi
pop ebx
ret
push ebp
lea eax, [ebx + 0x5c0]
push 0x46684c
push eax
call fcn.00451df0
push edi
mov esi, eax
call dword [0x46d004]
push ebp
call dword [0x46d004]
add esp, 0x14
test esi, esi
jne 0x441229
pop edi
pop ebp
mov eax, esi
mov dword [ebx + 0x628], 0x1f
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x441215
push 0xd
push 1
push ebx
call fcn.00440b90
add esp, 0xc
mov esi, eax
pop edi
pop ebp
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x441229
push 0xe
push 1
push ebx
call fcn.00440b90
add esp, 0xc
mov esi, eax
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4442a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
push 0
mov byte [esp + 0x12], al
lea eax, [esp + 0x10]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x190]
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x1d], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4442fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00428f80
add esp, 0xc
push dword [esp + 0x20]
push ebx
push str.SENT
push dword [esi]
call fcn.00443eb0
mov ecx, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 8
ret

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

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x14], 0x1f
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebx
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ebx, dword [eax + 0x114]
jne 0x444574
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x44445d
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x444468
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x444473
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
movzx eax, ax
cmp ecx, edi
jae 0x4444a6
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4444b0
mov byte [ecx], dh
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4444ba
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4444c7
shr eax, 8
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4444d2
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4444dd
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.00443fc0
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x444533
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00428f80
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.00444320
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x444571
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00428f80
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x445980
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x5c0]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x445a06
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x445a41
push str.Received_too_short_packet
push edi
call fcn.00428f80
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x88
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x445a66
jmp dword [edx*4 + 0x445b5c]
cmp ebx, 4
jle case.0x445a66.4
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x445a66.4
lea eax, [ebx - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.00428e60
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x445ac4
push 5
push esi
call fcn.004463b0
add esp, 8
mov eax, ebx
jmp 0x445a28
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004327d0
jmp 0x445b33
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
add edx, 4
push edx
or ecx, eax
push 0x45ab80
push edi
mov dword [esi + 8], ecx
call fcn.00429070
jmp 0x445b33
lea eax, [ebx - 2]
add ecx, 2
push eax
push ecx
push esi
call fcn.00445710
add esp, 0xc
test eax, eax
je case.0x445a66.4
jmp 0x445a28
push str.Internal_error:_Unexpected_packet
push 0x46684c
push edi
call fcn.00428f80
add esp, 0xc
push ebp
call fcn.00432b40
add esp, 4
test eax, eax
je 0x445a26
push 5
push esi
call fcn.004463b0
add esp, 8
mov eax, 0x2a
jmp 0x445a28
Function at 0x449ec0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x449f26
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x449f26
lea eax, [esp]
push eax
call dword [0x46d00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00456d98
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00456d98
add esp, 0x108
ret
Function at 0x44c860
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 4], eax
xor eax, eax
cmp dword [esp + 0x10], eax
setne al
mov dword [esp], eax
lea eax, [esp]
push eax
push 0x8004667e
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00456d98
add esp, 8
ret
Function at 0x44d880
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x44d8ab
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x44d89a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x44d8e2
cmp dword [esi + 8], 0
jne 0x44d8cf
push 0x45adb4
push dword [eax + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x44d8cf
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44d905
mov eax, dword [esi + 8]
test eax, eax
je 0x44d8ff
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4540d0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4540f0
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [esp + 0x14], eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x454126
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00456d98
add esp, 0x14
ret
xor ecx, ecx
test esi, esi
je 0x454140
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x454130
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4541b9
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4541ad
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 0x10
push edi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push 2
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp + 0x10], 0
push edi
mov byte [ebp + 0x14], 0
call dword [0x46d004]
mov ecx, dword [esp + 0x24]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00456d98
add esp, 0x14
ret
Function at 0x4541f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x46d060]
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 + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4542ff
push esi
mov esi, dword [esp + 0x38]
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0
push 8
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [esp + 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [esp + 0x1d], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [esp + 0x1e], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [esp + 0x1f], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [esp + 0x20], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [esp + 0x21], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov word [esp + 0x10], 0x208
mov byte [esp + 0x22], al
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
mov byte [esp + 0x27], cl
call fcn.00456a70
add esp, 8
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x454311
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.00456d98
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0x20]
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x20]
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.00456d98
add esp, 0x24
ret
Function at 0x456b10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x46d060]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x456b57
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00456d98
add esp, 0xc
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 + 0x28]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x456b99
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [esi + 0xc]
push dword [edi + 4]
add ebp, dword [edi + 8]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x456c01
mov dword [esp + 0x10], eax
mov ebx, eax
nop word [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x17], al
lea eax, [esp + 0x17]
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 + 0x23], al
lea eax, [esp + 0x23]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x456bc0
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x456c2d
mov eax, dword [esi + 4]
push 1
push 0x464ee7
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x464ee8
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x456c06
mov ecx, dword [esp + 0x18]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00456d98
add esp, 0xc
ret
Function at 0x10001000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001027
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10001030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop ebp
ret 0xc
Function at 0x1000a409
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 0x1000a4a6
push ebx
push esi
call fcn.1000a3d2
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.1000a31b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a453
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a4a5
push edi
push eax
call fcn.10007215
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a473
call fcn.100071db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a4a4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a31b
add esp, 0x20
test eax, eax
jne 0x1000a492
push edi
call fcn.100071db
jmp 0x1000a49a
push ebx
call fcn.100071db
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 0x1000a711
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b68
push 0x10014b60
push str.FlsAlloc
push 0x1e
call fcn.1000a62f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a745
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001311c]
call esi
jmp 0x1000a74b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000a78f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014b78
push 0x10014b70
push str.FlsGetValue
push 0x20
call fcn.1000a62f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a7c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001311c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10011e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x409ab7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x409ac6
pop dword [ebp - 0x40]
mov eax, 0xc2dce234
sub eax, 0xc29c476e
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x38f76
push 0
mov eax, 0x2984fd64
sub eax, 0x29441c8c
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x46e4
mov edi, eax
mov esi, 0x4a034d5c
sub esi, 0x49c21198
add esi, dword [ebp - 0x40]
mov ebx, 0x6704d62c
add ebx, 0x42f6f02b
sub dword [ebp - 0x20], ecx
mov edx, dword [esi]
mov dword [ebp - 0x3c], 0xadef9883
xor edx, ebx
add dword [ebp - 0x28], 0x8574d84d
mov dword [edi], edx
add edi, 0x8a9478bf
add edi, 0x756b8745
add esi, 0xd352e356
sub esi, 0xd352e352
loop 0x409b1f
add eax, 0xa17cf1d
add eax, 0xf5e93f46
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401ff5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
call fcn.00401f2f
push 0x13
pop eax
xor esi, esi
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x23
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0xc], 0xb
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xf
call dword [0x40e008]
call dword [0x40e01c]
cmp eax, 0x57
je 0x402066
push esi
call dword [0x40e024]
mov ecx, esi
mov edx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
xor byte [edx + 0x414250], al
inc ecx
xor eax, eax
cmp ecx, 0xb
cmove ecx, eax
inc edx
cmp edx, 0x13000
jb 0x40206a
call fcn.00401e43
push esi
test eax, eax
jne 0x402060
call dword [0x40e018]
int3