joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43faa1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push esi
push edi
lea ecx, [esp + 0x234]
call fcn.0040cac0
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 0x45c], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x128]
or edi, 0xffffffff
push eax
mov word [esp + 0x2c], 0x2008
mov word [esp + 0x2e], 0xffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0x4710b0
call fcn.00401890
add esp, 4
push 0x20
mov ecx, eax
mov byte [esp + 0x460], 1
call fcn.0040e730
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0041c790
add esp, 0xc
lea ecx, [esp + 0x128]
mov byte [esp + 0x45c], 0
call fcn.0040cd10
push 0x44a0a8
lea edx, [esp + 0x238]
push 0x44a584
push edx
call fcn.0040d2a0
add esp, 0xc
lea ecx, [esp + 0x234]
push 0x28
call fcn.0040e730
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041c790
lea ecx, [esp + 0x134]
push 0
push ecx
call fcn.0040eac0
add esp, 0x14
push 0x20
mov ecx, eax
mov byte [esp + 0x460], 2
call fcn.0040e730
lea edx, [esp + 0x60]
push eax
push edx
call fcn.0040edc0
add esp, 0xc
lea ecx, [esp + 0x128]
mov byte [esp + 0x45c], 0
call fcn.0040cd10
lea eax, [esp + 0x340]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00417f60
mov esi, eax
add esp, 8
test esi, esi
jle 0x4026e4
mov dx, word [esp + 0x340]
mov word [0x470f90], dx
lea ecx, [esp + 0x234]
mov dword [esp + 0x45c], edi
call fcn.0040cd10
mov ecx, dword [esp + 0x454]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x458
ret

Function at 0x4053c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x440238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.0040f250
mov ecx, dword [esi + 0x274]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
xor eax, eax
mov di, word [ecx + 2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
push edi
push ebp
push ebx
push edx
mov ecx, 0x4715c8
call fcn.00402900
mov esi, eax
test esi, esi
jge 0x40543d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x405403
test esi, esi
jge 0x40543d
push ebx
call fcn.00404680
add esp, 4
call fcn.00404700
jmp 0x40545c
push ebx
jne 0x40544f
call fcn.00404680
add esp, 4
call fcn.00404700
jmp 0x40545c
call fcn.004044a0
add esp, 4
call fcn.00404520
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040f2b0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x40d930
Capabilities:
Initialize winsock library

Disassembly:
xor ecx, ecx
sub esp, 0x190
mov ch, byte [esp + 0x198]
lea eax, [esp]
mov cl, byte [esp + 0x194]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40d962
call fcn.0040ebf0
add esp, 0x190
ret
mov eax, 1
add esp, 0x190
ret

Function at 0x40d9b0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4410cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0xc], ebx
mov ebp, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], ebp
call fcn.0040e730
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x40da6d
lea ecx, [esp + 0x34]
call fcn.0040e730
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x40da19
mov esi, dword [esp + 0x30]
push 0x471c7c
mov ecx, esi
call fcn.0040cb60
mov dword [esp + 0xc], ebp
jmp 0x40da81
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
push edi
lea edi, [esp + 0x18]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
push eax
push esi
call fcn.0040d980
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x2c], bl
call fcn.0040cd10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0040cc00
mov dword [esp + 0xc], ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.0040cd10
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x40dab0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 4]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x40dacf
jmp fcn.0040ebf0
mov eax, 1
ret
Function at 0x40db20
Capabilities:
Connect socket

Disassembly:
push 0xffffffffffffffff
push 0x4410fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x238], 0
call fcn.0040cac0
sub esp, 0x10c
lea eax, [esp + 0x350]
mov ecx, esp
mov dword [esp + 0x120], esp
push eax
mov byte [esp + 0x348], 1
call fcn.0040cc00
lea ecx, [esp + 0x230]
push ecx
call fcn.0040d9b0
add esp, 0x110
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 2
call fcn.0040cd40
lea ecx, [esp + 0x124]
mov byte [esp + 0x238], 1
call fcn.0040cd10
lea ecx, [esp + 0x18]
mov word [esp + 4], 2
call fcn.0040e730
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0x350]
mov dword [esp + 8], eax
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x240]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40dc3c
call fcn.0040ebf0
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x238], 0
call fcn.0040cd10
lea ecx, [esp + 0x244]
mov dword [esp + 0x238], 0xffffffff
call fcn.0040cd10
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop esi
add esp, 0x238
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 0
call fcn.0040cd10
lea ecx, [esp + 0x244]
mov dword [esp + 0x238], 0xffffffff
call fcn.0040cd10
mov ecx, dword [esp + 0x230]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x238
ret

Function at 0x40dd40
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x40ddae
mov ecx, dword [esp + 0x20]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 4], edx
mov eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 4]
shl edx, 3
mov dword [esp + 8], edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
inc esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x40dda4
call fcn.0040ebf0
pop esi
add esp, 8
ret
mov eax, 1
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40dde1
jmp fcn.0040ebf0
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40de11
jmp fcn.0040ebf0
ret
Function at 0x40e2f0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4411a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x1388
mov dword [esp + 0x14], 0
mov byte [0x471cc8], 0
call fcn.0040e3e0
mov ecx, esi
mov byte [esi + 0xc1], 0
call fcn.0040e0a0
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
lea eax, [esp + 4]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0041d91c
add esp, 0x18
mov dword [esi + 0xc8], eax
test eax, eax
jne 0x40e389
call fcn.0040ebf0
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.0040cd10
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x118
mov eax, dword [esp + 4]
lea ecx, [esp + 0x18]
mov dword [esi + 0x48], eax
call fcn.0040e730
push eax
mov ecx, esi
call fcn.0040f060
cmp byte [esp + 0x12c], 1
jne 0x40e3b2
mov ecx, esi
call fcn.0040f030
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0040cd10
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x118

Function at 0x40e3e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x58]
mov byte [esi + 0xc1], 1
call fcn.0040f400
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x40e43a
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40e414
cmp eax, 0xffffffff
jne 0x40e423
mov edx, dword [esi + 0xc8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc8], 0
mov ecx, esi
call fcn.0040f050
pop esi
ret 4
Function at 0x4110f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
lea eax, [edi + 0x14]
mov dword [edi], 0x443300
mov dword [edi + 4], eax
mov eax, 0x4e20
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0x71
mov dword [edi + 0x10], eax
lea ecx, [esi + 0x102c]
mov dword [esp + 0x3c], ebx
mov dword [esi + 0x1018], 0x4432dc
mov dword [esi + 0x101c], ecx
mov dword [esi + 0x1020], ebx
mov dword [esi + 0x1024], 0x3c
mov dword [esi + 0x1028], eax
lea edx, [esi + 0x3040]
mov dword [esi + 0x302c], 0x4432b8
mov dword [esi + 0x3030], edx
mov dword [esi + 0x3034], ebx
mov dword [esi + 0x3038], 0x1c7
mov dword [esi + 0x303c], eax
lea ecx, [esi + 0x4054]
mov dword [esi + 0x4040], 0x443294
mov dword [esi + 0x4044], ecx
mov dword [esi + 0x4048], ebx
mov dword [esi + 0x404c], 0x1000
mov dword [esi + 0x4050], eax
lea ecx, [esi + 0x505c]
mov byte [esp + 0x3c], 3
call fcn.0040cac0
push 0x20
lea edx, [esp + 0x14]
push 0x471c7c
push edx
mov byte [esp + 0x48], 4
mov dword [esi], 0x443290
mov dword [esi + 0x5054], 0xffffffff
mov dword [esi + 0x5058], 0xffffffff
mov byte [esi + 0x5168], bl
call fcn.0040edc0
mov eax, dword [edi]
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
push 1
push ecx
mov ecx, edi
call dword [eax + 8]
cmp eax, ebx
jl 0x411225
mov dword [esi + 0x5054], eax
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x414990
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4149a2
mov eax, 0xa0000006
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4149cf
call fcn.0040ebf0
pop ecx
ret 8
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x4149e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4149f2
mov eax, 0xa0000007
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x414a1f
call fcn.0040ebf0
pop ecx
ret 8
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x414b60
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4419c8
push eax
mov dword fs:[0], esp
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call fcn.0040e730
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x414bbc
call fcn.0040ebf0
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call fcn.0040cd10
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0040cd10
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x414bf0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4419e8
push eax
mov dword fs:[0], esp
push esi
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
call fcn.0040e730
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x414c4e
call fcn.0040ebf0
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call fcn.0040cd10
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0040cd10
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x414c80
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x441a08
push eax
mov dword fs:[0], esp
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call fcn.0040e730
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x414cdc
call fcn.0040ebf0
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call fcn.0040cd10
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0040cd10
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x415b40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jbe 0x415b81
mov eax, dword [esp + 0x10]
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ebx, eax
xor edx, edx
mov dl, byte [ecx + edi]
and ebx, 0xffff
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
mov ax, word [edx*2 + 0x44c104]
xor ax, bx
inc ecx
cmp ecx, esi
jb 0x415b55
pop edi
pop ebx
pop esi
ret 0xc
mov ax, word [esp + 0x10]
pop esi
ret 0xc
Function at 0x41acc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x442228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 2
call fcn.0040f250
lea eax, [ebx + 0x5284]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x24], 0
call fcn.0040f2c0
mov esi, dword [esp + 0x28]
mov al, byte [esi + 0xd6]
test al, al
jne 0x41ad3c
mov cx, word [esi + 0x20]
push ecx
mov ecx, ebx
call fcn.0041abe0
and eax, 0xffff
cmp eax, 0x1115
mov dword [esp + 8], eax
je 0x41ad3c
mov dword [esp + 0xc], 3
jmp 0x41add2
mov ecx, ebx
call fcn.0041b5b0
test eax, eax
mov dword [esp + 8], eax
jge 0x41ad83
push 0x44cb88
push 0
push 0
call fcn.004183d0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040f2b0
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*8]
lea ecx, [eax + edx*4]
mov edx, dword [ebx + 0x52f4]
mov word [edx + ecx*2 + 0x52], 0xffff
mov ecx, dword [0x4928d4]
test ecx, ecx
je 0x41adbd
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [0x4928d4]
xor edx, edx
mov dx, word [esi + 0x20]
mov eax, dword [ecx]
push edx
call dword [eax + 0x20]
jmp 0x41adce
push 0x44cb28
push 0
push 0
call fcn.004183d0
add esp, 0xc
mov eax, dword [esp + 8]
lea ecx, [eax + eax*2]
mov edx, dword [ebx + 0x52f4]
push ebp
push edi
lea ecx, [ecx + ecx*8]
add esi, 0x54
lea ebp, [eax + ecx*4]
mov ecx, 0x20
shl ebp, 1
lea edi, [edx + ebp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x52f4]
mov esi, dword [esp + 0x30]
mov word [ecx + ebp], ax
mov edx, dword [ebx + 0x52f4]
mov ax, word [esi + 0x20]
mov word [edx + ebp + 2], ax
mov cx, word [esi + 0x20]
push ecx
mov ecx, ebx
call fcn.0041a9b0
mov edx, dword [ebx + 0x52f4]
mov dword [esp + 0x28], 0xffffffff
mov dword [edx + ebp + 6], eax
mov eax, dword [ebx + 0x52f4]
mov cx, word [esi + 0x22]
mov word [eax + ebp + 4], cx
mov edx, dword [ebx + 0x52f4]
mov eax, dword [esi + 0x28]
mov dword [edx + ebp + 0xd6], eax
mov ecx, dword [ebx + 0x52f4]
mov dl, byte [esi + 0xd6]
mov byte [ecx + ebp + 0xd4], dl
mov eax, dword [ebx + 0x52f4]
mov ecx, 8
lea edi, [eax + ebp + 0xa]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x52f4]
lea esi, [ecx + 0x2c]
lea edi, [edx + ebp + 0x2a]
mov edx, dword [esp + 0x34]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x44
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [esp + 0x10]
lea ecx, [esp + 0x18]
mov word [edx], ax
call fcn.0040f2b0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x41e0be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41e0de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e039
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41e101
test byte [esp + 8], 2
je 0x41e101
call fcn.0041e0ac
mov dword [eax], 0xd
call fcn.0041e0b5
mov dword [eax], 5
jmp 0x41e0da
xor eax, eax
ret
Function at 0x402b68
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.00404448
test esi, esi
jne 0x402b9e
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.00404538
jmp 0x402bbc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a7c
mov edi, eax
test esi, esi
je 0x402bbc
cmp dword [ebx], 0
je 0x402bbc
dec esi
jmp 0x402ba5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033a4
Capabilities:
Query or enumerate registry value

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

Function at 0x404228
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55a04c], 0
je 0x404289
cmp word [0x55a220], 0xd7b2
jne 0x404251
cmp dword [0x55a228], 0
jbe 0x404251
mov eax, 0x55a21c
call dword [0x55a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x55506c
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 0x4042b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x555030], 0
jne 0x4042a5
push 0
push 0x555064
push 0x55506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402808
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x55a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043c4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405f14
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 0x406144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406144
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406160
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406020
xor eax, eax
push ebp
push 0x406019
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d5c
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 0x405ffe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406180
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ffe
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 0x406020
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 0x40613a
cmp byte [ebp - 0xd], 0
jne 0x406067
cmp byte [ebp - 0x12], 0
je 0x40613a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406080
dec ebx
cmp byte [ebx], 0x2e
je 0x40608f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40607f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40613a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4060cc
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 0x40613a
cmp byte [ebp - 0xd], 0
je 0x40613a
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 0x40613a
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