joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fba0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push ebx
push esi
push eax
mov ebx, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41fbef
push str.WSAStartup_failed_
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x3e9
push 0
push 0x1389
call fcn.00417e80
add esp, 0x14
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x294
ret 4
push edi
mov ecx, 0x20
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
pop edi
jne 0x41fc34
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x294
ret 4
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
jne 0x41fc53
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x294
ret 4
lea eax, [esp + 8]
push str._Specify_Ip_
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
jne 0x41fc77
pop esi
mov eax, 0xfffffffc
pop ebx
add esp, 0x294
ret 4
lea ecx, [esp + 8]
push 0x44da70
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41fcb1
push esi
push 0x7f
push ebx
call dword [sym.imp.MSVCRT.dll_fgets]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
xor eax, eax
pop esi
pop ebx
add esp, 0x294
ret 4
mov eax, dword [esp + 0x2a0]
test eax, eax
jne 0x41fce5
push str.pszSvrAddr_is_NULL_
push eax
push 0x3f7
push eax
push 0xbb8
call fcn.00417e80
add esp, 0x14
mov eax, 0xfffffffb
pop esi
pop ebx
add esp, 0x294
ret 4
push eax
push 0x44d534
push 0x7f
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
xor eax, eax
pop esi
pop ebx
add esp, 0x294
ret 4
Function at 0x41fe00
Capabilities:
Resolve dns

Disassembly:
push ebp
push esi
mov esi, ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
test ebp, ebp
jne 0x41fe87
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esi + 0x80]
cmp eax, 0xffffffff
mov dword [ecx], eax
je 0x41fe30
test eax, eax
je 0x41fe30
pop edi
pop esi
xor eax, eax
pop ebp
ret
push ecx
push esi
mov dword [ecx], 0
call fcn.004238f0
add esp, 8
test eax, eax
jge 0x41fe66
push str.gethostbyname_failed_and_GetIPFromIPList_Fail_
push 0
push 0x3ed
push 0
push 0xbb8
call fcn.00417e80
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
push str.gethostbyname_failed_and_GetIPFromIPList_Success_
push 0
push 0x3ea
push 0
push 0xbb8
call fcn.00417e80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [eax], 0
je 0x41fea0
mov ecx, dword [eax + 4]
add eax, 4
inc edi
test ecx, ecx
jne 0x41fe91
test edi, edi
jne 0x41fec4
push str.no_ip_got_
push 0
push 0x3e9
push 0
push 0xbb8
call fcn.00417e80
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
ret
push ebx
push 0
lea ebx, [esi + 0x80]
call dword [sym.imp.MSVCRT.dll_time]
xor edx, edx
div edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx]
push eax
push esi
mov dword [ebx], eax
call fcn.004239f0
add esp, 0xc
test eax, eax
je 0x41ff16
mov edx, dword [ebx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0
push 0x3f6
push 0
push 0xbb8
call fcn.00417e80
push ebx
push esi
call fcn.004238f0
add esp, 0x1c
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x4202a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x84], eax
je 0x42048e
cmp dword [esp + 0x124], 5
jae 0x4202de
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x10c
ret 8
mov ebx, dword [esp + 0x120]
push 5
push ebx
mov ecx, esi
call fcn.004204f0
xor ebp, ebp
cmp eax, ebp
jge 0x42030e
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x10c
ret 8
jne 0x420322
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x10c
ret 8
cmp eax, 5
mov edi, eax
jae 0x42038a
mov eax, 5
lea ecx, [edi + ebx]
sub eax, edi
push eax
push ecx
mov ecx, esi
call fcn.004204f0
cmp eax, ebp
jl 0x4203be
jle 0x420346
add edi, eax
jmp 0x420385
mov eax, dword [esi + 0x84]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], eax
push ebp
lea ecx, [esp + 0x20]
push ebp
inc eax
push ecx
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x16
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4203d7
cmp eax, ebp
je 0x42040f
cmp edi, 5
jb 0x420329
mov edx, dword [ebx + 1]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
mov eax, dword [esp + 0x124]
cmp eax, ebx
jae 0x420428
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10c
ret 8
push str.select_error
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x3e9
push ebp
push 0x138a
call fcn.00417e80
add esp, 0x14
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffff9
pop ebx
add esp, 0x10c
ret 8
cmp edi, ebx
jae 0x42048c
mov ecx, dword [esp + 0x120]
mov eax, ebx
sub eax, edi
lea edx, [edi + ecx]
push eax
push edx
mov ecx, esi
call fcn.004204f0
cmp eax, ebp
jl 0x42049b
jle 0x42044d
add edi, eax
jmp 0x420488
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
push ebp
lea edx, [esp + 0x20]
push ebp
inc eax
push edx
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x16
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4204b4
cmp eax, ebp
je 0x4204cd
cmp edi, ebx
jb 0x42042c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x10c
ret 8
Function at 0x4204f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx + 0x84]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x420541
jne 0x420530
push str.server_close_connection_
push 0
push 0x3f7
push 0
push 0x138c
call fcn.00417e80
add esp, 0x14
or eax, 0xffffffff
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfe
ret 8

Function at 0x420550
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
or eax, 0xffffffff
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x84], eax
je 0x4205f8
mov ebx, dword [esp + 0x124]
test ebx, ebx
jne 0x420588
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x10c
ret 8
xor edi, edi
test ebx, ebx
jbe 0x4205f6
mov ebp, dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x120]
mov eax, ebx
sub eax, edi
lea edx, [edi + ecx]
push eax
push edx
mov ecx, esi
call fcn.00420650
test eax, eax
jl 0x420605
jle 0x4205b5
add edi, eax
jmp 0x4205f2
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x16
mov dword [esp + 0x28], 0
call ebp
cmp eax, 0xffffffff
je 0x42061e
test eax, eax
je 0x420637
cmp edi, ebx
jb 0x420594
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x10c
ret 8
mov ecx, esi
call fcn.00420260
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10c
ret 8

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

Disassembly:
mov eax, dword [ecx + 0x84]
sub esp, 0x14
cmp eax, 0xffffffff
jne 0x4206c4
xor eax, eax
add esp, 0x14
ret
xor ecx, ecx
lea edx, [esp]
mov dword [esp + 4], ecx
push edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 8]
inc eax
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x14
ret

Function at 0x420d70
Capabilities:
Create thread

Disassembly:
call fcn.00420db0
test eax, eax
mov dword [0x456fac], eax
jne 0x420d9d
push eax
push eax
push eax
push 0x420de0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x420d96
or eax, 0xffffffff
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x456fa8], 1
xor eax, eax
ret
Function at 0x4236e0
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x456fc4]
test eax, eax
je 0x4236f2
mov eax, dword [0x456fd4]
test eax, eax
jne 0x4236ff
call fcn.00423760
test eax, eax
je 0x4236ff
or eax, 0xffffffff
ret
mov eax, dword [0x44e434]
cmp eax, 0xffffffff
jne 0x423725
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x44e434], eax
jne 0x423725
mov eax, 0xfffffffe
ret
mov cl, byte [esp + 0xc]
test cl, cl
mov ecx, 0x456fc0
jne 0x423737
mov ecx, 0x456fd0
mov edx, dword [esp + 4]
push 0x10
push ecx
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42375d
call fcn.00423850
mov eax, 0xfffffffd
ret
xor eax, eax
ret

Function at 0x423760
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x423784
or eax, 0xffffffff
add esp, 0x190
ret
mov ecx, dword [str.tss_qos_stat.gamesafe.qq.com]
push 0x456fc0
push ecx
call fcn.004237d0
add esp, 8
test eax, eax
je 0x4237a8
mov eax, 0xfffffffe
add esp, 0x190
ret
mov edx, dword [str.tss_qos_alarm.gamesafe.qq.com]
push 0x456fd0
push edx
call fcn.004237d0
add esp, 8
neg eax
sbb eax, eax
and al, 0xfd
add esp, 0x190
ret

Function at 0x4237d0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x4237e9
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [eax], 0
je 0x423802
mov ecx, dword [eax + 4]
add eax, 4
inc esi
test ecx, ecx
jne 0x4237f3
test esi, esi
jne 0x42380a
pop edi
mov eax, 0xfffffffe
pop esi
ret
push 0
call dword [sym.imp.MSVCRT.dll_time]
xor edx, edx
mov ecx, dword [edi + 0xc]
div esi
mov esi, dword [esp + 0x14]
add esp, 4
push 0x1f90
mov edx, dword [ecx + edx*4]
mov eax, dword [edx]
mov word [esi], 2
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
pop edi
xor eax, eax
pop esi
ret
Function at 0x423c80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 1
mov byte [esp + 0x1e], 2
mov byte [esp + 0x1f], 4
mov byte [esp + 0x20], 5
mov byte [esp + 0x21], 7
mov byte [esp + 0x22], 8
mov byte [esp + 0x23], 0xa
mov byte [esp + 0x24], 0xb
mov byte [esp + 0x25], 0xc
mov byte [esp + 0x26], 0x10
mov byte [esp + 0x27], 0x16
mov byte [esp + 0x28], 0x17
mov byte [esp + 0x29], 0x1a
xor eax, eax
mov dl, byte [esp + eax + 0x1c]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x423cd7
xor ecx, ecx
mov edx, ebp
mov eax, ecx
mov edi, 8
test al, 1
je 0x423d06
shr eax, 1
xor eax, esi
jmp 0x423d08
shr eax, 1
dec edi
jne 0x423cfc
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x423cf5
lea edi, [ebp + 0x400]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], edi
mov ecx, dword [edi - 0x400]
mov edx, ecx
mov eax, ecx
and edx, 0xff
mov esi, ecx
mov ebx, edx
and eax, 0xff00
shl ebx, 0x10
shr esi, 8
add eax, ebx
mov ebx, esi
shl eax, 8
and ebx, 0xff00
add eax, ebx
mov ebx, 3
shr ecx, 0x18
add eax, ecx
mov dword [edi + 0xc00], eax
mov ecx, dword [esp + 0x18]
add edi, 0x400
mov ecx, dword [ecx + edx*4]
xor ecx, esi
mov edx, ecx
mov eax, ecx
and edx, 0xff
mov esi, ecx
mov ebp, edx
and eax, 0xff00
shl ebp, 0x10
shr esi, 8
add eax, ebp
mov ebp, esi
shl eax, 8
and ebp, 0xff00
mov dword [edi - 0x400], ecx
add eax, ebp
shr ecx, 0x18
add eax, ecx
dec ebx
mov dword [edi + 0xc00], eax
jne 0x423d69
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jne 0x423d2b
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4258a0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
shr eax, 3
je 0x42591f
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor eax, eax
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, edx
sub eax, 0x61c88647
add ebp, ecx
lea ecx, [ebx + ebp]
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, ecx
add ebp, edx
cmp eax, 0xc6ef3720
lea edx, [ebx + ebp]
jne 0x4258c0
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [edi + 4], edx
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x4258b9
pop edi
pop ebp
pop ebx
call fcn.00425810
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push 0x10
push ecx
push 1
push esi
mov ecx, eax
call dword [edx]
pop esi
ret 0xc

Function at 0x425940
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
shr eax, 3
je 0x4259bd
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, 0xc6ef3720
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, edx
add eax, 0x61c88647
add ebx, ebp
sub ecx, ebx
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, ecx
add ebx, ebp
sub edx, ebx
test eax, eax
jne 0x425963
mov eax, dword [esp + 0x14]
mov dword [edi], edx
mov dword [edi + 4], ecx
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x425959
pop edi
pop ebp
pop ebx
call fcn.00425810
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push 0x10
push ecx
push 0
push esi
mov ecx, eax
call dword [edx]
pop esi
ret 0xc

Function at 0x439260
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x44c834]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x4399a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x439a0d
mov al, byte [esp + 0x14]
test al, al
je 0x439a0d
cmp al, 0x20
je 0x439a05
cmp al, 9
jne 0x439a50
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4399fd
mov esi, dword [esp + 0x120]
test esi, esi
je 0x439a43
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x439a43
test ebx, ebx
je 0x439a43
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x439a43
push ebx
push edx
push esi
call dword [0x44c848]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call sub.MSVCRT.dll__mbschr
add esp, 8
test eax, eax
jne 0x439b13
cmp byte [esp + 0x14], 0x5c
je 0x439b13
test ebx, ebx
je 0x439a43
mov edi, dword [esp + 0x120]
test edi, edi
je 0x439a43
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x439a43
push 0x5c
push ebx
call sub.MSVCRT.dll__mbsrchr
add esp, 8
test eax, eax
jne 0x439aa6
push 0x2f
push ebx
call sub.MSVCRT.dll__mbsrchr
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x439aea
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x439acb
cmp ebp, esi
jle 0x439acb
push esi
push ebx
push ebp
push edi
call dword [0x44c844]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.00439e20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.00439db0
test eax, eax
je 0x439b03
push ebx
push ebp
push edi
call dword [0x44c848]
add esp, 0xc
push 0x4538b4
push ebp
push edi
mov ecx, esi
call fcn.00439e20
jmp 0x439acf
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004399a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x443580
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4435a9
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x45a9b8]
add esp, 4
test eax, eax
je 0x4435a9
mov eax, dword [0x45a9b4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

Function at 0x4f64ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc al
test bl, 0x29
or edx, 0x1315cea
mov byte [esp + 4], ah
seto dl
neg al
shld dx, cx, 8
clc
and al, 0x3c
neg dx
test ch, 0x7a
pop edx
mov edx, dword [ebp]
clc
cmp ch, dh
bt bx, bp
add ebp, 4
jmp loc.0040d6ee

Function at 0x4f7f73
Capabilities:
Execute anti-debugging instructions

Disassembly:
lahf
mov dword [esp + 0x44], 0
seta al
pushfd
xchg ch, dl
pop edx
mov dword [esp + 0x40], 0
movzx ax, bl
bswap dx
mov dword [esp + 0x3c], 0
movzx dx, dl
lea esp, [esp + 0x3c]
jne 0x4ff175
bswap dx
mov eax, dword [ebp + 8]
xchg dh, ch
call fcn.004f7985
loop 0x4f7fcf
mov al, cl
jle 0x4f8017
sub byte [0x54ed917e], dl
xor al, 0xab
push eax
push dword [sym.imp.WININET.dll_InternetSetOptionA]
pop dword [esp + 0x30]
push dword [esp]
xor al, 0x24
push dword [esp + 4]
pushfd
push dword [esp + 0x3c]
ret 0x40
adc dword [esi + 0xf666d43], 0xffffffbe
retf
Function at 0x4fd94f
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 4]
jge 0x504d61
aaa
sub ah, bh
adc ah, 0xa8
mov eax, dword [ebp - 0x20]
shrd cx, bp, cl
add eax, dword [ebp - 0x14]
add cx, 0x23b6
mov ecx, dword [ebp - 0x14]
cmp sp, 0x618b
mov dl, byte [ebp + ecx - 0x10]
test cl, 0x60
stc
bt edi, 0xa
xor dl, byte [eax]
pushal
bswap ax
mov eax, dword [ebp - 0x14]
push 0x6ea0b85b
pushal
mov byte [ebp + eax - 0x10], dl
push dword [esp]
pushfd
pushfd
mov word [esp], 0x92a5
lea esp, [esp + 0x50]
jmp 0x5028c5
or dl, 0x66
bsf dx, ax
mov edx, dword [ebp - 0x14]
bt ax, bx
add edx, 1
cmp dx, ax
jmp 0x4fa10b

Function at 0x500c2d
Capabilities:
Execute anti-debugging instructions

Disassembly:
cmp sp, 0x538f
mov dword [ebp - 0x20], ecx
mov dword [esp], 0x6ac12b23
aad 0x7b
lahf
rcl ax, cl
mov edx, dword [ebp + 0xc]
setl ah
sub edx, 8
pushfd
cmp dl, dh
neg ax
mov dword [ebp + 0xc], edx
sar ah, 6
mov eax, dword [ebp + 8]
cmc
pushal
clc
add eax, 8
push ebp
push ebx
mov dword [ebp + 8], eax
lea esp, [esp + 0x30]
jae 0x50633a
push edi
mov dword [ebp - 0x10], 0
lea esp, [esp + 4]
push 0xe6cf7ebe
push eax
call fcn.00503f8c

Function at 0x50934d
Capabilities:
Packed with generic packer

Disassembly:
push 0x188117b3
call fcn.004047b4
fnstcw word [ecx - 0x6f181588]
add al, 0xa7
mov esp, 0xd2df3c33
invalid
Function at 0x402a84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404090
test esi, esi
jne 0x402aba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404180
jmp 0x402ad8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402998
mov edi, eax
test esi, esi
je 0x402ad8
cmp dword [ebx], 0
je 0x402ad8
dec esi
jmp 0x402ac1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403228
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403208
xor eax, eax
push ebp
push 0x403201
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403244
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403208
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ef4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49104c], 0
je 0x403f55
cmp word [0x491220], 0xd7b2
jne 0x403f1d
cmp dword [0x491228], 0
jbe 0x403f1d
mov eax, 0x49121c
call dword [0x491238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48e06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e030], 0
jne 0x403f71
push 0
push 0x48e064
push 0x48e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret