joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4916a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x6124f0
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esi + 4]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
call fcn.004925d0
test al, al
je 0x491722
mov eax, dword [ebx + 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
mov esi, 0x6124f0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
mov byte [ebx + eax], 0
add ebx, eax
lea ecx, [ebp - 0x210]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x49174c
lea edx, [ebp - 0x30]
push 0x5e4eb0
push edx
mov dword [ebp - 0x30], 4
call fcn.004c13ac
push 0
mov ebx, 2
push 1
push ebx
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x58], eax
jne 0x491778
lea eax, [ebp - 0x2c]
push 0x5e4eb0
push eax
mov dword [ebp - 0x2c], 1
call fcn.004c13ac
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4917f3
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x40], bx
push ecx
call sub.WS2_32.dll_htons
mov edi, dword [ebp + 8]
mov word [ebp - 0x3e], ax
push edi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jne 0x4917b5
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4917de
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x40]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x491af9
lea edx, [ebp - 0x28]
push 0x5e4eb0
push edx
mov dword [ebp - 0x28], ebx
call fcn.004c13ac
lea edx, [ebp - 0x20]
push 0x5e4eb0
push edx
mov dword [ebp - 0x20], 3
call fcn.004c13ac
lea ecx, [ebp - 0x80]
call fcn.00499c70
mov edx, dword [esi + 0x34]
lea eax, [esi + 0x48]
lea ecx, [esi + 0x38]
push eax
push ecx
push edx
sub esp, 0x10
lea eax, [esi + 0x24]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call fcn.00492360
mov ecx, dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00499d80
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xf]
push edx
mov edx, dword [ebp + 8]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push edx
call fcn.00492480
mov eax, dword [esi + 0x58]
lea ecx, [ebp - 0x80]
push eax
call fcn.00499f80
test eax, eax
jne 0x491862
lea ecx, [ebp - 0x24]
push 0x5e4eb0
push ecx
mov dword [ebp - 0x24], ebx
call fcn.004c13ac
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00499ce0
jmp 0x491af9
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x14], al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x492070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
mov al, byte [ecx + 0x14]
mov dword [ebp - 4], 0
test al, al
jne 0x492110
lea ebx, [ecx + 4]
mov edi, 0x5f6fd0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.004925d0
test al, al
je 0x4920ea
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x5f6fd0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
push 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00490f40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
mov byte [ebp - 4], bl
jne 0x492121
mov eax, 0x510880
mov edx, dword [ebp + 0x10]
push 0
push edx
push eax
mov eax, dword [ecx + 0x58]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x492265
lea ecx, [ebp - 0x1c]
push 0x5e4eb0
push ecx
mov dword [ebp - 0x1c], 1
call fcn.004c13ac
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x11], 0
dec eax
jne 0x4921a4
mov edi, 0x5f6fe4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + 4]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [ebp - 0x18], esi
call fcn.004925d0
test al, al
je 0x4921a4
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x5f6fe4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov eax, 0x492262
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x492288
mov al, byte [ecx - 1]
test al, al
je 0x49227e
cmp al, 0xff
je 0x49227e
dec al
mov byte [ecx - 1], al
jmp 0x492288
dec ecx
push ecx
call fcn.004d080b
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4922a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x118]
xor bl, bl
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 0xc], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x58]
lea ecx, [esp + 8]
mov dword [esp + 8], edx
push ecx
mov dword [esp + 0x18], eax
push 0
lea edx, [esp + 0x18]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x492302
pop esi
xor al, al
pop ebx
add esp, 0x10c
ret 4
test eax, eax
jle 0x49231a
mov ecx, dword [esi + 0x58]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov al, 1
jne 0x49231c
mov al, bl
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x49a070
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ax, word [esi + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x49a098
mov eax, 0x510a2c
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x49a0c8
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x49a0b3
mov esi, 0x510a2c
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x49a0ea
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
pop esi
add esp, 0x10
ret 4
Function at 0x49c460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e2558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov dword [esp + 4], ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.004935b0
add esp, 8
lea ecx, [esp + 0xc]
push 1
call fcn.00490f40
mov edi, str.BASE64
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BASE64
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.0049d500
test eax, eax
je 0x49c51c
mov edi, str.QUOTED_PRINTABLE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x38]
not ecx
dec ecx
push ecx
push str.QUOTED_PRINTABLE
push eax
push 0
lea ecx, [esp + 0x40]
call fcn.0049d500
test eax, eax
je 0x49c51c
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00490f40
mov eax, dword [esp + 0x2c]
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x40]
push ebx
push ebp
push ecx
call fcn.004c0237
mov ebx, eax
mov edi, str.BASE64
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov edx, dword [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
mov ebp, ecx
mov ecx, edx
cmp edx, ebp
jb 0x49c54e
mov ecx, ebp
push esi
mov esi, dword [esp + 0x40]
mov edi, str.BASE64
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x49c563
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x49c61b
cmp edx, ebp
jb 0x49c61b
cmp edx, ebp
setne al
test eax, eax
jne 0x49c61b
mov eax, dword [esp + 0x4c]
mov esi, ebx
mov ebx, dword [esp + 0x38]
xor ebp, ebp
xor edi, edi
mov ecx, ebx
test eax, eax
jle 0x49c60b
mov al, byte [ecx]
cmp al, 0xd
je 0x49c603
cmp al, 0xa
je 0x49c603
movsx edx, al
movsx eax, byte [edx + 0x510a78]
movsx edx, byte [ecx + 1]
shl eax, 0x12
inc ecx
movsx edx, byte [edx + 0x510a78]
shl edx, 0xc
add eax, edx
inc ecx
mov edx, eax
sar edx, 0x10
mov byte [esi], dl
mov dl, byte [ecx]
inc esi
inc edi
cmp dl, 0x3d
je 0x49c5fe
movsx edx, dl
movsx edx, byte [edx + 0x510a78]
shl edx, 6
add eax, edx
inc ecx
mov edx, eax
sar edx, 8
mov byte [esi], dl
mov dl, byte [ecx]
inc esi
inc edi
cmp dl, 0x3d
je 0x49c5fe
movsx edx, dl
movsx edx, byte [edx + 0x510a78]
add eax, edx
inc ecx
mov byte [esi], al
inc esi
inc edi
add ebp, 4
jmp 0x49c605
inc ecx
inc ebp
cmp ebp, dword [esp + 0x4c]
jl 0x49c594
mov eax, dword [esp + 0x10]
mov byte [esi], 0
mov edx, dword [esp + 0x44]
mov dword [eax + 0x18], edi
jmp 0x49c61f
mov ebx, dword [esp + 0x38]
mov edi, str.QUOTED_PRINTABLE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, edx
cmp edx, ebp
jb 0x49c638
mov ecx, ebp
mov esi, dword [esp + 0x40]
mov edi, str.QUOTED_PRINTABLE
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x49c64c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x49c6cf
cmp edx, ebp
jb 0x49c6cf
cmp edx, ebp
setne al
test eax, eax
jne 0x49c6cf
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
mov esi, ebx
xor ebp, ebp
xor ebx, ebx
test eax, eax
jle 0x49c6bf
Function at 0x49e4d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x49e573
test eax, eax
jbe 0x49e573
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x49e573
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49e51e
xor esi, esi
jmp 0x49e524
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49e54f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004a0480
add esi, eax
push esi
mov ebx, esi
call fcn.004a0480
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x49e530
pop ebp
test edi, edi
pop edi
jne 0x49e573
test ebx, ebx
je 0x49e573
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004c0050
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x49e6b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49e7cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49e7cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004d2517
mov esi, eax
test esi, esi
je 0x49e7cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49e7cd
mov ecx, esi
call fcn.0049e620
cmp edi, eax
jge 0x49e7cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x49e753
mov dword [esp + 0x34], 1
jmp 0x49e7ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49e7cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0049dbe0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4a19b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5f749c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a19c3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a1a04
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5f7544]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a1a36
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a1a3a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a1a2b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a1a58
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a1a5c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a1a4d
xor ecx, ecx
mov eax, 0x5f74ac
xor ebx, ebx
mov bl, byte [ecx + 0x5f7554]
cmp byte [esp + ebx + 0x14], 0
je 0x4a1a87
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5f756c]
cmp byte [esp + ebx + 0x14], 0
je 0x4a1a9e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a1a6e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a19f7
lea edx, [esp + 0x84]
push edx
call fcn.004a1ae0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4a62f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511e30
push 0x4c12d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004bf610
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a64a0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x4a64e1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4a654e
cmp dword [esp + 0x1c], 2
jne 0x4a654e
cmp dword [esp + 0x10], 5
jne 0x4a654e
cmp dword [esp + 0x14], 1
jne 0x4a654e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a6538
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4a6529
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4a6531
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4a654e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x4a6c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a6c96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a6c96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a6c77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4a7460
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a7498
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a8120
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a8169
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a85e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e2ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a8190
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a8210
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a8210
lea ecx, [esi + 0xc]
call fcn.004d0a2c
lea ecx, [esi + 0x10]
call fcn.004d0a2c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a97a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a97a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a97a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004d0aa1
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d0aa1
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d2ebb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d2ef3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d0f48
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d0f20
jmp 0x4d2eff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d45ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d45ef
call fcn.004da553
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d45ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d45e6
xor eax, eax
jmp 0x4d45f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d45fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4daa83
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 0x4daab1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4daacf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004da9e9
jmp 0x4daacf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4daacf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004da9e9
test edi, edi
mov eax, edi
jne 0x4daab9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403026
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x429ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.004286dd
mov eax, dword [eax + 0xc]
push 0x40004
push eax
push 0x3e9
call dword [sym.imp.WINMM.dll_PlaySoundA]
push str.NOTEPAD.EXE
lea ecx, [esp + 8]
call fcn.0041d976
mov eax, dword [esi + 0x68]
mov dword [esp + 0x10], 0
add eax, 2
mov ecx, eax
shl ecx, 3
sub ecx, eax
movsx eax, word [esi + ecx*8]
lea ecx, [esi + ecx*8]
cmp eax, 3
ja case.default.0x403071
jmp dword [eax*4 + 0x4030e0]
push 1
call fcn.004034d0
jmp case.default.0x403071
mov ecx, esi
call fcn.00403730
jmp case.default.0x403071
add esi, 0x814
lea ecx, [esp + 4]
push esi
call fcn.0041dbf1
push str.Readme.txt
lea ecx, [esp + 8]
call fcn.0041dbf1
mov edx, dword [esp + 4]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp case.default.0x403071
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041d908
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403680
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x6b0]
lea edi, [esi + 0x6b0]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 4]
cmp dword [edx + 0x4c], 0xffffffff
jne 0x4036ca
lea ebx, [esi + 0x5b0]
lea eax, [esi + 0x914]
push ebx
push 0
push 0x434208
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [0x42fea8]
push ecx
push 2
push ebx
mov ecx, edi
call fcn.00417070
mov edx, dword [esp + 0x10]
add esi, 0x6bc
push edx
mov ecx, esi
call fcn.00417560
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4036f9
push 0x403720
push 0xa
mov ecx, esi
call fcn.00417350
mov ecx, eax
call fcn.00403700
pop edi
pop esi
pop ebx
ret 8