joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055b0
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 0x405616
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.00403ba0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405600
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40561d
lea eax, [ebp - 0x10]
call fcn.00403930
ret

Function at 0x406670
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40677a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4066c3
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403a20
jmp 0x406761
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00406624
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406644
mov ebx, eax
test esi, esi
je 0x4066eb
dec esi
test esi, esi
jl 0x4066eb
cmp edi, ebx
jne 0x4066ca
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403b28
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403e2c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403bcc
cmp eax, 2
jl 0x406761
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406761
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403bcc
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406761
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403bcc
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406781
lea eax, [ebp - 0x110]
call fcn.00403930
ret

Function at 0x406844
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x429934]
mov byte [eax], 1
mov edx, dword [0x405d30]
xor eax, eax
call fcn.0040864c
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x406834
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x406908
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x406923
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x406932
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x406934
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x408ffc
Capabilities:
Get file attributes

Disassembly:
call fcn.00405fb0
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x409010
dec eax
and al, 0x10
sete al
ret

Function at 0x40a0d8
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x40a0e4
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x40a100
push eax
je 0x40a101
call dword [0x42912c]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x42912c]
ret

Function at 0x40b538
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040b3cc
je 0x40b56a
mov eax, ebx
push edx
call fcn.00407eec
pop edx
cmp eax, edx
je 0x40b56a
test edx, edx
mov eax, ebx
jne 0x40b55c
pop ebx
inc edx
jmp fcn.00407edc
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.00407edc
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040b588
ret
Function at 0x40f5a4
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 0x40f5dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a20
jmp 0x40f5e6
mov eax, ebx
mov edx, esi
call fcn.00403984
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f5f0
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 0x40f611
mov al, byte [esp]
jmp 0x40f613
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fc98
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40fb10
mov eax, dword [0x429ae0]
cmp byte [eax], 0
je 0x40fd14
mov eax, dword [0x429978]
call fcn.00402834
call fcn.00402698
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.0040cf64
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 0x40fd5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40fd4a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x42993c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42a668]
call fcn.00404d9c
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 0x410a40
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 0x410aa4
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.00403ba0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040cc2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410aab
lea eax, [ebp - 0xc]
call fcn.00403930
ret
Function at 0x411c08
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x411df2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x411c3c
mov eax, dword [ebp - 8]
call fcn.00403930
jmp 0x411ddc
mov eax, dword [ebp - 4]
call fcn.00403bcc
mov dword [ebp - 0xc], eax
test byte [ebp - 0xc], 3
je 0x411c7b
push 0x411e08
push dword [ebp - 4]
push 0x411e2c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403c8c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x40bf58]
call fcn.0040fd60
call fcn.00403370
mov eax, dword [ebp - 0xc]
shr eax, 2
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.00403a20
mov ebx, 1
mov esi, 1
cmp ebx, dword [ebp - 0xc]
jg 0x411db1
mov edx, 4
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx - 1]
cmp ecx, 0x3d
jg 0x411cd0
je 0x411d16
sub ecx, 0x2b
je 0x411d0c
sub ecx, 4
je 0x411d11
dec ecx
sub ecx, 0xa
jb 0x411cfe
jmp 0x411d1b
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x411ce2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x411cf0
jmp 0x411d1b
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x41
mov byte [eax], cl
jmp 0x411d46
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
sub cl, 0x47
mov byte [eax], cl
jmp 0x411d46
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + ebx - 1]
add cl, 4
mov byte [eax], cl
jmp 0x411d46
mov byte [eax], 0x3e
jmp 0x411d46
mov byte [eax], 0x3f
jmp 0x411d46
mov byte [eax], 0
jmp 0x411d46
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, 0x411e3c
mov dl, 1
mov eax, dword [0x40bf58]
call fcn.0040fd9c
call fcn.00403370
inc ebx
inc eax
dec edx
jne 0x411caf
mov eax, dword [ebp - 8]
call fcn.00403e24
xor edx, edx
mov dl, byte [ebp - 0x14]
shl edx, 2
xor ecx, ecx
mov cl, byte [ebp - 0x13]
shr ecx, 4
or edx, ecx
mov byte [eax + esi - 1], dl
mov eax, dword [ebp - 8]
call fcn.00403e24
xor edx, edx
mov dl, byte [ebp - 0x13]
shl edx, 4
xor ecx, ecx
mov cl, byte [ebp - 0x12]
shr ecx, 2
or edx, ecx
mov byte [eax + esi], dl
mov eax, dword [ebp - 8]
call fcn.00403e24
xor edx, edx
mov dl, byte [ebp - 0x12]
shl edx, 6
xor ecx, ecx
mov cl, byte [ebp - 0x11]
or edx, ecx
mov byte [eax + esi + 1], dl
add esi, 3
cmp ebx, dword [ebp - 0xc]
jle 0x411ca7
mov edx, dword [ebp - 4]
mov eax, 0x411e60
call fcn.00403eb4
mov ebx, eax
test ebx, ebx
je 0x411ddc
mov eax, dword [ebp - 0xc]
sub eax, ebx
inc eax
mov ebx, eax
mov edx, dword [ebp - 0x10]
sub edx, ebx
inc edx
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.00403e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411df9
lea eax, [ebp - 0x18]
call fcn.00403930
ret

Function at 0x4127a8
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402898
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x41b720
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov byte [0x429738], 1
push esp
xor edx, edx
mov al, 1
call fcn.00405c5c
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x41b75c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403dbc
xor eax, eax
push ebp
push 0x41b991
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.00408e90
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00408e58
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.004039c8
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00407648
test eax, eax
jl 0x41b80d
lea ecx, [ebp - 0x110]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.0040773c
cmp dword [ebp - 0x110], 0
je 0x41b80d
mov ecx, esi
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.0040773c
jmp 0x41b95b
cmp byte [0x429738], 0
jne 0x41b822
mov eax, esi
call fcn.00403930
jmp 0x41b95b
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402898
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x104]
mov edx, dword [ebp - 4]
call fcn.00408ef8
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x41b8e1
mov edx, dword [eax + 0xc]
test edx, edx
je 0x41b8d8
mov edi, dword [edx]
test edi, edi
je 0x41b8cf
push esi
xor eax, eax
mov al, byte [edi]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], 0
lea edx, [ebp - 0x130]
mov ecx, 3
mov eax, 0x41b9a8
call fcn.00408f90
jmp 0x41b8e8
mov eax, esi
call fcn.00403930
jmp 0x41b8e8
mov eax, esi
call fcn.00403930
jmp 0x41b8e8
mov eax, esi
call fcn.00403930
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00407648
test eax, eax
jl 0x41b906
mov ecx, dword [esi]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.004077e8
jmp 0x41b92e
push dword [ebp - 4]
push 0x41b9bc
push dword [esi]
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00403c8c
mov edx, dword [ebp - 0x134]
mov eax, dword [ebx + 0x40]
call fcn.0040adb8
cmp dword [esi], 0
jne 0x41b95b
lea eax, [ebp - 0x138]
mov ecx, 0x41b9c8
mov edx, dword [ebp - 4]
call fcn.00403c18
mov edx, dword [ebp - 0x138]
mov eax, dword [0x4299bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
call fcn.0041d34c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b998
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.00403954
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00403954
lea eax, [ebp - 4]
call fcn.00403930
ret
Function at 0x41bc70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403dbc
xor eax, eax
push ebp
push 0x41bdda
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41bcb6
inc eax
jne 0x41bce4
push 0x41bdf4
push dword [esi + 0xc]
push 0x41be10
lea edx, [ebp - 0x18]
mov eax, edi
call fcn.00408da4
push dword [ebp - 0x18]
lea eax, [esi + 4]
mov edx, 4
call fcn.00403c8c
xor ebx, ebx
jmp 0x41bdbc
push 4
lea eax, [esi + 0x4c]
push eax
push 0x1005
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_setsockopt
inc eax
je 0x41bd1c
push 4
lea eax, [esi + 0x4c]
push eax
push 0x1006
push 0xffff
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x41bd3d
lea eax, [esi + 4]
mov edx, 0x41be1c
call fcn.00403984
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [esi + 8], 0xffffffff
xor ebx, ebx
jmp 0x41bdbc
cmp dword [esi + 0x58], 0
je 0x41bd6a
mov eax, dword [esi + 0x58]
call fcn.00403dcc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
mov ax, word [esi + 0x5c]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], 2
jmp 0x41bd8b
mov eax, dword [ebp - 4]
call fcn.00403dcc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], 2
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x41bdbc
lea eax, [esi + 4]
mov edx, 0x41be3c
call fcn.00403984
mov eax, dword [esi + 8]
push eax
call sub.wsock32.dll_closesocket
mov dword [esi + 8], 0xffffffff
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bde1
lea eax, [ebp - 0x18]
call fcn.00403930
lea eax, [ebp - 4]
call fcn.00403930
ret
Function at 0x422748
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
lea esi, [esp + 4]
mov eax, ebx
call fcn.00403930
push esp
push 0x20019
push 0
push 0x422830
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4227c2
xor eax, eax
mov dword [esi], eax
lea eax, [esp + 8]
mov byte [eax], 0
inc dword [esi]
inc eax
cmp dword [esi], 0x100
jne 0x422780
mov dword [esi], 0xff
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0x422858
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4227c2
mov eax, ebx
lea edx, [esp + 8]
mov ecx, pe_nt_image_headers32
call fcn.00403ba0
jmp 0x422825
push esp
push 0x20019
push 0
push 0x422830
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x422825
xor eax, eax
mov dword [esi], eax
lea eax, [esp + 8]
mov byte [eax], 0
inc dword [esi]
inc eax
cmp dword [esi], 0x100
jne 0x4227e5
mov dword [esi], 0xff
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0x422858
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x422825
mov eax, ebx
lea edx, [esp + 8]
mov ecx, pe_nt_image_headers32
call fcn.00403ba0
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x401404
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0x400
mov dword [esp], 0x80000002
mov dword [esp + 4], 0x4012e0
lea eax, [ebp - 4]
mov dword [esp + 8], eax
call sub.ADVAPI32.DLL_RegOpenKeyA
sub esp, 0xc
test eax, eax
je 0x401466
mov dword [esp], 0
mov dword [esp + 4], 0x401320
mov dword [esp + 8], 0x401341
mov dword [esp + 0xc], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
jmp 0x401546
mov eax, dword [ebp - 4]
mov dword [esp], eax
mov dword [esp + 4], 0x401360
lea eax, [ebp - 8]
mov dword [esp + 8], eax
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
test eax, eax
je 0x4014ba
mov dword [esp], 0
mov dword [esp + 4], 0x4013a0
mov dword [esp + 8], 0x401341
mov dword [esp + 0xc], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
jmp 0x401546
mov eax, dword [ebp - 8]
mov dword [esp], eax
mov dword [esp + 4], 0x4013c3
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
je 0x401523
mov dword [esp], 0
mov dword [esp + 4], 0x4013e0
mov dword [esp + 8], 0x401341
mov dword [esp + 0xc], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
jmp 0x401546
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebp - 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x401600
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00402da0
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
lea edx, [ebp - 0x58]
mov ebx, eax
mov dword [esp], edx
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x40166e
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4016e0
cmp al, 9
je 0x4016e0
cmp al, 0x22
je 0x4016be
cmp al, 0x20
je 0x4016b0
cmp al, 9
je 0x401666
test al, al
je 0x401666
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4016b0
cmp al, 9
je 0x401666
test al, al
jne 0x401656
cmp al, 0x20
je 0x4016b0
cmp al, 9
je 0x4016b0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
je 0x4016a7
movzx eax, word [ebp - 0x28]
mov dword [esp + 0xc], eax
call sym._WinMain_16
mov ebx, dword [ebp - 4]
sub esp, 0x10
leave
ret
mov eax, 0xa
jmp 0x401696
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4016b0
cmp al, 9
je 0x4016b0
jmp 0x40166e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x22
je 0x4016cc
test al, al
jne 0x4016be
jmp 0x401666
inc ebx
movzx eax, byte [ebx]
jmp 0x401666
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4016e0
cmp al, 9
je 0x4016e0
jmp 0x401642
Function at 0x402be0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x404070]
test eax, eax
je 0x402bfd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x61616161
push eax
mov dword [ebp - 0x44], 0x61616161
mov dword [ebp - 0x40], 0x61616161
mov dword [ebp - 0x3c], 0x61616161
mov dword [ebp - 0x38], 0x61616161
mov dword [ebp - 0x34], 0x61616161
mov dword [ebp - 0x30], 0x61616161
mov dword [ebp - 0x2c], 0x61616161
mov byte [ebp - 0x28], 0
call sub.KERNEL32.dll_FindAtomA
add esp, 0xc
test ax, ax
jne 0x402d54
sub esp, 0xc
xor esi, esi
lea ebx, [ebp - 0x78]
push 0x14
call sym._malloc
lea ecx, [ebp - 0xa8]
mov dword [0x404070], eax
add esp, 0x10
mov dword [eax], 0
mov edx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], sym._abort
mov dword [eax + 8], sym._abort
mov edi, ecx
test eax, eax
jne 0x402d40
lea ecx, [ebp - 0xa7]
mov byte [ebp - 0xa8], 0x30
cmp ecx, edi
jbe 0x402cbb
lea esi, [esi]
dec ecx
inc esi
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
cmp ecx, edi
ja 0x402cb0
mov eax, 0x20
mov byte [ebx], 0
sub eax, esi
push edi
lea edx, [ebp - 0x48]
push eax
push 0x61
push edx
call sym._memset
add esp, 0x10
xor edx, edx
cmp edx, esi
jae 0x402cf6
nop
lea esi, [esi]
mov eax, edx
sub eax, esi
cmp byte [ebp + edx - 0x78], 0x30
je 0x402d35
mov cl, 0x41
inc edx
mov byte [ebp + eax - 0x28], cl
cmp edx, esi
jb 0x402ce0
sub esp, 0xc
lea eax, [ebp - 0x48]
mov byte [ebp - 0x28], 0
push eax
call sub.KERNEL32.dll_AddAtomA
add esp, 0xc
mov edx, dword [0x404070]
lea eax, [edx + 4]
mov dword [0x404074], eax
lea eax, [edx + 8]
mov dword [0x404078], eax
lea eax, [edx + 0xc]
add edx, 0x10
mov dword [0x40407c], eax
mov dword [0x404080], edx
jmp 0x402bf5
mov cl, 0x61
jmp 0x402ced
mov eax, edx
and eax, 1
add eax, 0x30
mov byte [ecx], al
inc ecx
shr edx, 1
jne 0x402d40
jmp 0x402ca9
lea edx, [ebp - 0x48]
push ebx
and eax, 0xffff
push 0x21
push edx
push eax
call sub.KERNEL32.dll_GetAtomNameA
xor edx, edx
pop ecx
lea esi, [esi]
cmp byte [ebp + edx - 0x48], 0x61
setne al
add eax, 0x30
mov byte [ebp + edx - 0x48], al
inc edx
cmp edx, 0x1f
jbe 0x402d70
push eax
lea eax, [ebp - 0x48]
push 2
push 0
push eax
call sym._strtoul
add esp, 0x10
mov dword [0x404070], eax
jmp 0x402d09