joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4035ec
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4035f3
cmp ebx, dword [eax + 4]
jae 0x4035f3
xor eax, eax
jmp 0x4037e3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403604
xor eax, eax
inc eax
jmp 0x4037e2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40361a
cmp ecx, edx
jae 0x40375f
cmp dword [eax + 4], 0
je 0x403623
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40360b
cmp dword [ebp + 8], 0
je 0x403645
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40375f
cmp eax, esi
jae 0x40375f
mov eax, dword [0x4054e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40366a
cmp dword [esi*4 + 0x4054f0], edi
je 0x403763
inc esi
cmp esi, eax
jl 0x403658
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4037df
cmp dword [ebp - 8], 0x1000000
jne 0x4037df
test byte [ebp - 0xc], 0xcc
je 0x4036e8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4037df
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4037df
cmp word [eax + 0x18], 0x10b
jne 0x4037df
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4037df
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4036e8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4036e8
test byte [ecx + 0x27], 0x80
jne 0x40375f
push 1
push 0x405530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4035fc
mov ecx, dword [0x4054e8]
test ecx, ecx
mov edx, ecx
jle 0x40371c
lea eax, [ecx*4 + 0x4054ec]
cmp dword [eax], edi
je 0x40371c
dec edx
sub eax, 4
test edx, edx
jg 0x403710
test edx, edx
jne 0x40374d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403729
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403741
lea eax, [edx*4 + 0x4054f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40372f
cmp ecx, 0x10
jge 0x40374d
inc ecx
mov dword [0x4054e8], ecx
push 0
push 0x405530
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4035fc
xor eax, eax
jmp 0x4037e2
test esi, esi
jle 0x4035fc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x405530
call ebx
test eax, eax
jne 0x4035fc
cmp dword [esi*4 + 0x4054f0], edi
je 0x4037b9
mov eax, dword [0x4054e8]
lea esi, [eax - 1]
test esi, esi
jl 0x4037a7
cmp dword [esi*4 + 0x4054f0], edi
je 0x4037a3
dec esi
jns 0x403797
test esi, esi
jge 0x4037b7
cmp eax, 0x10
jge 0x4037b2
inc eax
mov dword [0x4054e8], eax
lea esi, [eax - 1]
jmp 0x4037b9
je 0x4037d1
xor ecx, ecx
test esi, esi
jl 0x4037d1
lea eax, [ecx*4 + 0x4054f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4037bf
push 0
push 0x405530
call ebx
jmp 0x4035fc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013b4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013c6
mov eax, dword [0x49508b]
shl eax, 2
mov dword [0x49508f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00476a00
pop edx
call fcn.00476964
call fcn.00476a40
push 0
call fcn.00477e4c
pop ecx
push 0x495034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x495093], eax
push 0
jmp fcn.0047bc7c

Function at 0x403108
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov ebx, eax
mov eax, 0x495be8
call fcn.004771ac
mov word [ebp - 0x1c], 0x14
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebx + 0x310]
call fcn.00409efc
mov word [ebp - 0x1c], 8
mov word [ebp - 0x1c], 0x20
mov edx, str.http:__www.alwindoor.com_
lea eax, [ebp - 8]
call fcn.0047fe5c
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
push 0
push 1
cmp dword [ebp - 8], 0
je 0x403168
mov ecx, dword [ebp - 8]
jmp 0x40316d
mov ecx, 0x49543e
push ecx
call sub.WININET.DLL_InternetCheckConnectionA
test eax, eax
je 0x4031a7
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x10]
call fcn.0047fed0
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047fed0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4031d5
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x10]
call fcn.0047fed0
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047fed0
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b0c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x408c48
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x408c60
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00409be0
mov eax, dword [ebp - 4]
call fcn.00409470
xor edx, edx
push ebp
push 0x408c2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x408bca
test si, si
jne 0x408b7c
mov eax, dword [ebp - 8]
call fcn.00428838
mov esi, eax
cmp esi, 0xffff
jbe 0x408b7c
call fcn.00439e98
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.WSOCK32.DLL_send
test eax, eax
je 0x408bca
cmp eax, 0xffffffff
jle 0x408bab
sub ebx, eax
jmp 0x408bba
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.00409b14
test ebx, ebx
je 0x408bca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x408b7f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x408c15
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x408c78
mov dl, 1
mov eax, dword [0x4082a8]
call fcn.0042b92c
call fcn.0043a704
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x408c15
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c32
mov eax, dword [ebp - 4]
call fcn.004094c8
ret
Function at 0x409a1c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x409ae8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x409afc
mov dl, 4
mov eax, ebx
call fcn.00409be0
mov byte [ebx + 0x10298], 0
mov si, word [ebx + 0x10290]
cmp si, 0xffff
je 0x409ad2
movzx eax, si
push eax
call sub.WSOCK32.DLL_closesocket
test eax, eax
jne 0x409ac4
test byte [ebx + 0x1c], 8
jne 0x409a81
cmp word [ebx + 0x10052], 0
je 0x409a81
mov edx, ebx
mov eax, dword [ebx + 0x10054]
call dword [ebx + 0x10050]
cmp byte [ebx + 0x10091], 0
jne 0x409ad2
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x409aa4
call fcn.00439e98
mov word [ebx + 0x10290], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10294]
push eax
movzx eax, si
push eax
call sub.WSOCK32.DLL_WSAAsyncSelect
jmp 0x409ad2
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.00409b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409aef
lea eax, [ebp - 4]
call fcn.0043aaa4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x409cc4
mov dl, 8
mov eax, ebx
call fcn.00409be0
push 2
push 1
lea eax, [ebx + 0x30]
push eax
movzx eax, word [ebx + 0x10290]
push eax
call sub.WSOCK32.DLL_recv
test eax, eax
jle 0x409cb6
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x409cd4
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x409e64
mov dl, 8
mov eax, ebx
call fcn.00409be0
cmp dword [ebx + 0x100a4], 0
jne 0x409d0a
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 0x10274]
call fcn.004288d0
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10268], eax
jmp 0x409d24
lea eax, [ebx + 0x30]
mov edx, dword [ebx + 0x100a4]
call fcn.004288d0
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 0x10268], eax
cmp dword [ebx + 0x10268], 0xffffffff
jne 0x409e5a
xor eax, eax
mov dword [ebx + 0x10268], eax
mov eax, ebx
call fcn.00409470
mov byte [ebx + 0x100d0], 0
push 0x400
mov eax, dword [ebx + 0x10278]
push eax
lea eax, [ebx + 0x30]
push eax
push 0x466
mov eax, dword [ebx + 0x10294]
push eax
call sub.WSOCK32.DLL_WSAAsyncGetHostByName
push 2
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4a0d34]
mov eax, dword [eax]
call fcn.0046197c
cmp byte [ebx + 0x100d0], 0
jne 0x409d96
cmp byte [ebx + 0x100b1], 0
jne 0x409d96
cmp byte [ebx + 0x10090], 0
je 0x409d68
mov eax, ebx
call fcn.004094c8
cmp byte [ebx + 0x100b1], 0
je 0x409dbc
mov ecx, 0x409e7c
mov dl, 1
mov eax, dword [0x408250]
call fcn.0042b92c
call fcn.0043a704
cmp byte [ebx + 0x10090], 0
je 0x409ddb
mov ecx, 0x409e9c
mov dl, 1
mov eax, dword [0x408250]
call fcn.0042b92c
call fcn.0043a704
cmp byte [ebx + 0x100b0], 0
jne 0x409dfa
mov ecx, 0x409ebc
mov dl, 1
mov eax, dword [0x408250]
call fcn.0042b92c
call fcn.0043a704
lea eax, [ebx + 0x10268]
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx]
mov byte [eax], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x10278]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
cmp word [ebx + 0x1006a], 0
je 0x409e5a
mov edx, ebx
mov eax, dword [ebx + 0x1006c]
call dword [ebx + 0x10068]
pop ebx
ret
Function at 0x409efc
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov dword [ebp - 4], edx
mov ecx, 0x409fbc
mov dl, 8
call fcn.00409be0
mov eax, 0xc8
call fcn.00427e7c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x409fa7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xc8
mov eax, dword [ebp - 8]
push eax
call sub.WSOCK32.DLL_gethostname
mov eax, dword [ebp - 8]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x28]
mov ecx, 3
mov eax, 0x409fd8
call fcn.00428f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fae
mov eax, dword [ebp - 8]
call fcn.00438fc0
ret

Function at 0x423844
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a11a8
cmp dword [edi], 0
jne 0x4238c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4a11a4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49baac
mov ecx, 2
call fcn.00439204
mov edx, 0x42381c
lea eax, [esi + 5]
call fcn.0042383c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042383c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x423895
mov dword [0x4a11a4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42615c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4160d8]
call fcn.0043b4b0
xor eax, eax
push ebp
push 0x4262a0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49baec], 0
jne 0x4261af
mov ecx, dword [0x4a0b30]
mov dl, 1
mov eax, dword [0x4271d0]
call fcn.0042b9e8
call fcn.0043a704
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0043986c
mov eax, ebx
call fcn.0043b320
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4262b0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0043c830
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0043b330
test eax, eax
jle 0x426247
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x426240
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0043ad24
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0043ad0c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004280ac
test eax, eax
jne 0x426240
mov ebx, 0x15
jmp 0x42624c
mov ebx, 0x10
jmp 0x42624c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49baec]
call fcn.004260b4
mov eax, dword [ebp - 8]
call fcn.004260b4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0043c848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4262a7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0043aac8
lea eax, [ebp - 0x10]
mov edx, dword [0x4160d8]
call fcn.0043b580
ret

Function at 0x42b174
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x42b1ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0043ab94
jmp 0x42b1b6
mov eax, ebx
mov edx, esi
call fcn.0043aaf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42b1c0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x42b1e1
mov al, byte [esp]
jmp 0x42b1e3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42c68c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x42c6f0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0043ad0c
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004282ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c6f7
lea eax, [ebp - 0xc]
call fcn.0043aaa4
ret

Function at 0x439330
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.0043aaa4
test esi, esi
jne 0x439366
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.0043ab94
jmp 0x439384
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00439244
mov edi, eax
test esi, esi
je 0x439384
cmp dword [ebx], 0
je 0x439384
dec esi
jmp 0x43936d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x439dc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49c014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x439e60
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x439e40
xor eax, eax
push ebp
push 0x439e39
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 0x439e7c
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 0x439e40
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x49c014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49c014], ax
mov esp, ebp
pop ebp
ret

Function at 0x43a928
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a153c], 0
je 0x43a989
cmp word [0x4a1710], 0xd7b2
jne 0x43a951
cmp dword [0x4a1718], 0
jbe 0x43a951
mov eax, 0x4a170c
call dword [0x4a1728]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x43a9b0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x49c024], 0
jne 0x43a9a5
push 0
push 0x49c07c
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x43c454
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43c684
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x43c4d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43c684
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x43c4d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x43c6a0
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x43c560
xor eax, eax
push ebp
push 0x43c559
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0043c29c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x43c53e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x43c6c0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x43c53e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c560
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x43c67a
cmp byte [ebp - 0xd], 0
jne 0x43c5a7
cmp byte [ebp - 0x12], 0
je 0x43c67a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x43c5c0
dec ebx
cmp byte [ebx], 0x2e
je 0x43c5cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x43c5bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x43c67a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x43c60c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x43c67a
cmp byte [ebp - 0xd], 0
je 0x43c67a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x43c67a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cdf8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4a1ab0], 1
jae 0x43ce7e
mov byte [0x49c010], 2
mov dword [0x4a1500], 0x493e18
mov dword [0x4a1504], 0x493e2a
mov byte [0x4a153e], 2
mov dword [0x4a14ec], 0x43ba84
call fcn.00439d98
test al, al
je 0x43ce3b
call fcn.00439dc8
call fcn.00439e8c
mov word [0x4a1544], 0xd7b0
mov word [0x4a1710], 0xd7b0
mov word [0x4a18dc], 0xd7b0
call fcn.0043b954
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4a1530], eax
call fcn.00437c3c
mov dword [0x4a152c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4a1524], eax
ret

Function at 0x43d894
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x43d7e0
call sub.USER32.DLL_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x43da35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043d404
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x43d9dd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043d05c
cmp dword [ebp - 4], 0
je 0x43da1f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0043af54
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43da3c
lea eax, [ebp - 4]
call fcn.0043aaa4
ret

Function at 0x446b20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0043aaa4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446b6f
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0043ad0c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d234
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44d23a
ret

Function at 0x44f708
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x44f759
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x44f740
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x44f730
jmp 0x44f759
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x44f741
pop ebx
mov esp, ebp
pop ebp
ret