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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
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 0x45c122
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x45c10c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x45bfbf
lea ebp, [eax + 0xe]
jmp 0x45bfcb
cmp eax, 0x17
jne 0x45c079
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x45c079
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x45c079
cmp eax, ebp
jb 0x45c079
push 0x20
call dword [0x7a90d4]
mov edi, eax
add esp, 4
test edi, edi
je 0x45c101
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x7a90d4]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x45c0f0
push ebp
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x45c065
push eax
call dword [0x7a90e0]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x45c0d6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x45c075
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x45bfb2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x45c098
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x45c108
test esi, esi
je 0x45c0c5
push dword [esi + 0x18]
call dword [0x7a90d8]
push dword [esi + 0x14]
call dword [0x7a90d8]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x7a90d8]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x45c0a0
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x7a90d8]
push edi
call dword [0x7a90d8]
add esp, 8
jmp 0x45c088
push edi
mov ebx, 8
call dword [0x7a90d8]
add esp, 4
jmp 0x45c088
mov ebx, 8
jmp 0x45c088
test esi, esi
jne 0x45c118
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x45c580
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x45c5a2
cmp eax, 0xffffffff
jne 0x45c5a4
xor eax, eax
ret
Function at 0x45fdc0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x7a90dc]
mov edi, eax
add esp, 8
test edi, edi
je 0x45fe17
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x45fe2f
cmp esi, ebx
je 0x45fe2f
cmp esi, 0x8000
ja 0x45fe2f
cmp esi, ebx
jb 0x45fe28
push esi
push edi
call dword [0x7a90dc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x45fde0
push ebp
call dword [0x7a90d8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x7a90d8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x465890
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x7a9080]
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 + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4658f2
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.0044ac20
add esp, 8
cmp esi, 0xffffffff
jne 0x465916
push str.Error_accept__ing_server_connect
push ebx
call fcn.0044a040
add esp, 8
mov eax, 0x1e
jmp 0x465985
push str.Connection_accepted_from_server_n
push ebx
call fcn.0044a120
push 1
push esi
mov byte [edi + 0x514], 0
mov dword [edi + 0x424], esi
call fcn.004580f0
add esp, 0x10
mov byte [edi + 0x7f0], 1
cmp dword [ebx + 0x610], 0
je 0x465983
push 1
push ebx
call fcn.0043be30
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.0043be30
add esp, 0x1c
test esi, esi
je 0x465983
push edi
call fcn.00465e20
add esp, 4
mov eax, 0x2a
jmp 0x465985
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004365e1
add esp, 0x88
ret
Function at 0x46cda0
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 + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46cdec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0044a040
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.0046c9b0
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x14c]
jne 0x46d07e
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x46cf7e
lea eax, [ebp + 1]
mov byte [ebp], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x46cf7e
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46cf7e
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 + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x46cfe9
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46cfe9
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46cfe9
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46cfe9
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46cfe9
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x46cfe9
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
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.0046cab0
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x46d03d
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0044a040
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.0046ce10
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46d07b
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0044a040
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x47fcd0
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 [0x7a90d4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47fcf7
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 0x47fd42
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 0x47fd46
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 0x47fda6
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 0x47fd65
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x47fdd7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push str.6Unknown_exception
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4a1ab7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x47fdb0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1e70058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01e701a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1e7007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1e7006a
add dl, dl
jne 0x1e70089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1e700dc
xor eax, eax
add dl, dl
jne 0x1e70096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1e7017d
add dl, dl
jne 0x1e700a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e700b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e700bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e700c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1e700d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1e70075
mov eax, 1
add dl, dl
jne 0x1e700ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e700f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1e700e1
sub eax, ebx
mov ebx, 1
jne 0x1e70128
mov ecx, 1
add dl, dl
jne 0x1e7010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1e70119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1e70105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1e70075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1e7013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1e7014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1e70136
cmp eax, 0x7d00
jae 0x1e7016d
cmp eax, 0x500
jb 0x1e70168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1e70075
cmp eax, 0x7f
ja 0x1e70170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1e70075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1e7019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1e70075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x405a12
pop dword [ebp - 0x48]
mov eax, 0x4857cf8d
sub eax, 0x4817757b
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x398afb07
sub dword [ebp - 0x58], 0xeb38b5bc
mov dword [ebp - 0x54], 0x56772774
add dword [ebp - 0x54], 0xdbbc24d1
mov dword [ebp - 0x50], 0x60ff0c70
sub dword [ebp - 0x50], 0x14b2c842
mov dword [ebp - 0x4c], 0xc052a31e
add dword [ebp - 0x4c], 0x3fad5ce2
lea eax, [ebp - 0x58]
push eax
mov eax, 0xe3135568
add eax, 0x1d2d2b9c
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x9bfc0258
add dword [ebp - 0x58], 0xd87666fe
mov dword [ebp - 0x54], 0x9ae27635
sub dword [ebp - 0x54], 0x597614c0
mov dword [ebp - 0x50], 0x9d31ecf
sub dword [ebp - 0x50], 0xa663b263
mov dword [ebp - 0x4c], 0x3ea08cff
add dword [ebp - 0x4c], 0xc15f7301
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x30aff6aa
add eax, 0xcf908a56
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x36b1c
push 0
call eax
mov ecx, 0x38764dc0
add ecx, 0xc789f91b
mov ebx, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x48]
mov edx, 0x1dcd113c
xor dword [ebp - 0x1c], edx
mov esi, dword [edi]
xor dword [ebp - 0x3c], 0x16df40fa
sub esi, edx
mov dword [ebp - 0xc], 0x3a92176a
mov dword [ebx], esi
mov dword [ebp - 0x38], 0x72c89071
add ebx, 4
add edi, 0x2f2ee4ba
sub edi, 0x2f2ee4b6
loop 0x405b28
add eax, 0x7b27571d
add eax, 0x84d9b722
xor ebx, ebx
add ebx, eax
add eax, 0xe4c16b6f
sub eax, 0xe4c16b6a
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4111d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x431bfc
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x200
call esi
test eax, eax
jne 0x411235
lea eax, [ebp - 8]
push eax
push str.EnableJavaUpdate
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call main
add esp, 0xc
test eax, eax
je 0x411227
cmp dword [ebp - 8], ebx
je 0x41122a
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x411243
push str.ISAUDisabled__:_Error_opening_HKLM_Policy_key_for_reading
call main
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jne 0x4112d5
call fcn.00410107
test eax, eax
jne 0x4112d2
call main
test eax, eax
je 0x4112d2
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x431c74
push 0x80000001
call esi
test eax, eax
jne 0x4112d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x431c9c
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
jne 0x4112d5
mov dword [ebp - 8], edi
call fcn.0040feb9
test eax, eax
je 0x4112c7
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff5d
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4112cd
mov eax, dword [ebp - 0x210]
cmp eax, 0x64
jne 0x4112d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4187e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a210]
jne 0x4187ee
repz ret
jmp fcn.00420617

Function at 0x4197b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4197c6
pop dword [ebp - 0x50]
mov eax, 0x667e8edf
sub eax, 0x663cf719
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x46383
push 0
mov eax, 0x5eaa2d26
sub eax, 0x5e676b02
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x1168a059
sub ecx, 0x116845e2
mov edx, eax
mov ebx, 0xbb21e867
add ebx, 0x45221f99
add ebx, dword [ebp - 0x50]
mov edi, 0xfdd671c
add edi, 0x50bc9117
add dword [ebp - 8], edx
mov esi, dword [ebx]
sub dword [ebp - 0x3c], 0x2f84bede
add esi, edi
add dword [ebp - 0x18], esi
mov dword [edx], esi
xor dword [ebp - 0x38], 0x11d90c1f
add edx, 0x1bb9f4ac
sub edx, 0x1bb9f4a8
add ebx, 0x23ad7b55
add ebx, 0xdc5284af
loop 0x419825
add eax, 0x15caf
xor ebx, ebx
add ebx, eax
add eax, 0x7ece6e65
sub eax, 0x7ece6e60
mov ecx, 0xb4d2b0fa
add ecx, 0x4b6d4f06
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4126ca
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4126f8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412716
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00412630
jmp 0x412716
mov eax, dword [esi + 0x14]
test eax, eax
je 0x412716
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00412630
test edi, edi
mov eax, edi
jne 0x412700
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x479922f7
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2755074d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1002cd49
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002c523

Function at 0x1002cd54
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002c75e

Function at 0x10037f5e
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10037cd4
Function at 0x1003f0f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, edx
push edi
mov edi, ecx
mov al, byte [edi + 0x2e6]
mov cl, al
and cl, 3
cmp cl, 3
jne 0x1003f186
movzx ecx, word [esi + 6]
sub ecx, 1
je 0x1003f16a
sub ecx, 1
je 0x1003f14e
sub ecx, 2
je 0x1003f130
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
movzx eax, al
shr eax, 5
add eax, 0x90
mov dword [esi + 0x10], eax
mov eax, ebp
or dword [esi], 0x80
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
movzx eax, al
shr eax, 5
sub eax, 0xffffff80
mov dword [esi + 0x10], eax
mov eax, ebp
or dword [esi], 0x80
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
movzx eax, al
shr eax, 5
add eax, 0x70
mov dword [esi + 0x10], eax
mov eax, ebp
or dword [esi], 0x80
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test cl, cl
jne 0x1003f2bf
mov cl, al
and cl, 0xe0
cmp cl, 0xc0
jne 0x1003f2bf
movzx ecx, word [ebp]
movsx eax, cx
cdq
mov dword [esp + 0x14], edx
mov dword [edi + 0x314], edx
movsx edx, cx
mov dword [esp + 0x10], eax
mov dword [edi + 0x310], eax
cmp edx, 0x10000
jb 0x1003f223
cmp edx, 0x7fff0000
jae 0x1003f223
or byte [edi + 0x306], 0x40
test byte [edi + 0x309], 2
je 0x1003f1ef
mov al, byte [edi + 0x394]
test al, 0x10
jne case.default.0x1003f1fa
or al, 0x10
mov byte [edi + 0x394], al
jmp case.default.0x1003f1fa
mov eax, dword [edi + 0x2f0]
cmp eax, 5
ja case.default.0x1003f1fa
jmp dword [eax*4 + 0x1003f488]
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
jmp case.default.0x1003f1fa
call fcn.1003e410
cdq
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
or dword [esi], 0x80000
mov eax, dword [esi]
test eax, 0x4000
je 0x1003f265
movzx eax, byte [edi + 0x307]
or byte [edi + 0x306], 2
shr eax, 4
and eax, 3
mov byte [eax + edi + 0x2f7], bl
mov al, byte [edi + 0x307]
lea ecx, [eax + 0x10]
and al, 0xcc
and cl, 0x30
or cl, al
mov al, bl
and al, 3
or cl, al
mov byte [edi + 0x307], cl
mov eax, dword [esi]
test eax, 0x2000
je 0x1003f2a4
movzx eax, byte [edi + 0x307]
or byte [edi + 0x306], 4
shr eax, 6
mov byte [eax + edi + 0x2f4], bl
and bl, 3
mov cl, byte [edi + 0x307]
shl bl, 2
lea eax, [ecx + 0x40]
and cl, 0x33
and al, 0xc0
or al, bl
or al, cl
mov byte [edi + 0x307], al
mov eax, dword [esi]
or eax, 0x10000
mov dword [esi], eax
add dword [edi + 0x128], 2
add ebp, 2
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
movzx ecx, al
mov eax, ecx
and eax, 3
sub eax, 1
je 0x1003f30b
sub eax, 1
jne 0x1003f323
movsx eax, word [ebp]
cdq
mov dword [edi + 0x310], eax
mov dword [edi + 0x314], edx
cmp eax, 0x10000
je 0x1003f2f2
jb 0x1003f2ff
cmp eax, 0x7fff0000
jae 0x1003f2ff
or dword [esi], 0x80000
or byte [edi + 0x306], 0x40
add dword [edi + 0x128], 2
add ebp, 2
jmp 0x1003f323
movsx eax, byte [ebp]
cdq
mov dword [edi + 0x310], eax
mov dword [edi + 0x314], edx
inc dword [edi + 0x128]
inc ebp
shr ecx, 5
jmp dword [ecx*4 + 0x1003f4a0]