joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f13ec
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5f1475
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x61e7bc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x5f145f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00428198
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x5f1490
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x618b6c]
mov dl, 1
mov eax, dword [0x5efa70]
call fcn.00429300
call fcn.00408d90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f147c
lea eax, [ebp - 0x1c]
call fcn.004096d0
ret

Function at 0x5f1bac
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x5f1c08]
cmp al, byte [ebx + 0x28]
je 0x5f1bd0
mov esi, 0x401
mov eax, ebx
call fcn.005f1d18
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x5f1c08]
cmp al, byte [ebx + 0x28]
jne 0x5f1c00
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5f1ca0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.005f1bac
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00407d9c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x5f1d08
call fcn.005f1334
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x5f1cf6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00407d9c
pop esi
pop ebx
ret

Function at 0x5f2190
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x5f221c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, 0
call fcn.0040a254
mov eax, dword [ebp - 0xc]
call fcn.0040a118
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.004072e8
test ebx, ebx
je 0x5f2200
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2223
lea eax, [ebp - 0xc]
call fcn.004096f4
ret
Function at 0x5f2488
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5f24b9
mov ecx, dword [0x6189fc]
mov dl, 1
mov eax, dword [0x5efa70]
call fcn.00429230
call fcn.00408d90
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x5f24e6
mov ecx, dword [0x61894c]
mov dl, 1
mov eax, dword [0x5efa70]
call fcn.00429230
call fcn.00408d90
xor eax, eax
push ebp
push 0x5f2562
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00407d9c
cmp byte [ebp + 8], 0
je 0x5f253e
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005f22a4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.005f1ca0
jmp 0x5f2558
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005f1640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f257f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5f278c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005f1a50
xor eax, eax
push ebp
push 0x5f28ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5f28e9
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x5f27d8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5f27e2
call fcn.00408e84
jmp 0x5f2906
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004af0d4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x5f28de
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x5f2891
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x5f287e
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00407d9c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.005f2744
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x5f2914]
cmp dl, byte [eax + 0x28]
je 0x5f28e5
call fcn.004290d0
jmp 0x5f28e5
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004af0f4
jmp 0x5f28e5
cmp edi, ebx
jge 0x5f28ad
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004af0f4
jmp 0x5f27e2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004af0d4
cmp edx, dword [esp + 4]
jne 0x5f28cd
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5f27e2
push ebp
call fcn.005f2744
pop ecx
jmp 0x5f28e5
push ebp
call fcn.005f2744
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2906
mov eax, dword [ebp - 4]
call fcn.005f1a58
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f2948
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f2a6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005f1a50
xor eax, eax
push ebp
push 0x5f2a4d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5f2998
call fcn.00408e84
jmp 0x5f2a54
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5f2a37
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5f2a37
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00407d9c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x5f2a37
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00428198
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x5f2a88
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x618b6c]
mov dl, 1
mov eax, dword [0x5efa70]
call fcn.00429300
call fcn.00408d90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2a54
mov eax, dword [ebp - 4]
call fcn.005f1a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2a71
lea eax, [ebp - 0x28]
call fcn.004096d0
ret
Function at 0x5f2ad8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f2c49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005f1a50
xor eax, eax
push ebp
push 0x5f2c2c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x5f2b3d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5f2b3d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x5f2c16
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5f2b50
call fcn.00408e84
jmp 0x5f2c33
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x5f2b77
cmp dword [ebp - 0x10], 0
jle 0x5f2b77
cmp ebx, dword [ebp - 0x10]
jle 0x5f2b77
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5f2c16
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5f2c16
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00407d9c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x5f2c16
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.00428198
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x5f2c68
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x618b6c]
mov dl, 1
mov eax, dword [0x5efa70]
call fcn.00429300
call fcn.00408d90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2c33
mov eax, dword [ebp - 4]
call fcn.005f1a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2c50
lea eax, [ebp - 0x2c]
call fcn.004096d0
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437008]
jne 0x40100a
repz ret
jmp fcn.00401a2c

Function at 0x40569b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403053
and dword [ebp - 4], 0
cmp dword [0x438e74], 0
mov ebx, eax
jne 0x40574c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057fd
push eax
call fcn.00402fe1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438e74], eax
call esi
push eax
call fcn.00402fe1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x438e78], eax
call esi
push eax
call fcn.00402fe1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438e7c], eax
call esi
push eax
call fcn.00402fe1
pop ecx
mov dword [0x438e84], eax
test eax, eax
je 0x40574c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402fe1
pop ecx
mov dword [0x438e80], eax
mov eax, dword [0x438e80]
cmp eax, ebx
je 0x4057a4
cmp dword [0x438e84], ebx
je 0x4057a4
push eax
call fcn.0040305c
push dword [0x438e84]
mov esi, eax
call fcn.0040305c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4057a4
test edi, edi
je 0x4057a4
call esi
test eax, eax
je 0x40579b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40579b
test byte [ebp - 0xc], 1
jne 0x4057a4
or dword [ebp + 0x10], 0x200000
jmp 0x4057dd
mov eax, dword [0x438e78]
cmp eax, ebx
je 0x4057dd
push eax
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4057dd
mov eax, dword [0x438e7c]
cmp eax, ebx
je 0x4057dd
push eax
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438e74]
call fcn.0040305c
pop ecx
test eax, eax
je 0x4057fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433110
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc10], eax
cmp ebx, 0x182
jne 0x433145
lea ecx, [ebp - 0xc30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x43316f
cmp ebx, 0x19f
jne 0x43316f
push str.verukovekiboganisevucebawuwunulutatogitunajucuzutivocijudeminaconaluriluyitoketor
push str.tivuyeromolugofimekofawezecomahotelipixevet
push str.maheleyefenuyunovafemilusegapijepeyirecawazudafetocodufufifinupazosonobuxalufayetucawubitukuyiledenoh
push str.vacicewodasojewodinocopizonovocigitocupezazekagunisefudedasicilafusatafaselanafiyocepecedo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
xor edi, edi
test ebx, ebx
jle 0x43321f
push esi
jmp 0x433180
lea esi, [ebp - 0xc0c]
mov dword [ebp - 0xc08], 5
mov dword [ebp - 0xc0c], 0
call fcn.00433100
mov eax, dword [ebp - 0xc0c]
add eax, 0x46
mov dword [ebp - 0xc08], eax
sub dword [ebp - 0xc08], 0x46
mov dl, byte [ebp - 0xc08]
mov eax, dword [ebp - 0xc10]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x433215
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push str.nacuroyayo
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea edx, [ebp - 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
inc edi
cmp edi, ebx
jl 0x433180
pop esi
pop edi
cmp ebx, 0x2d
jne 0x433239
mov dword [0x2b370a0], 0xa62e7790
mov dword [0x2b370a4], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x433250
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2b36f6c]
push ebx
push esi
mov esi, dword [0x2b36db4]
mov ebx, eax
cmp eax, 0x5dd
jne 0x43328a
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x437ef0]
call fcn.004330d0
cmp dword [0x2b36f6c], 0x2f
jne 0x4332a5
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.00433110
add esp, 4
cmp dword [0x2b36f6c], 0x568
pop esi
pop ebx
jne 0x4332cc
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4030ec
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.0040491c
test esi, esi
jne 0x403122
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.00404a0c
jmp 0x403140
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f90
mov edi, eax
test esi, esi
je 0x403140
cmp dword [ebx], 0
je 0x403140
dec esi
jmp 0x403129
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403844
Capabilities:
Query or enumerate registry value

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

Function at 0x4046e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d048], 0
je 0x404749
cmp word [0x47d21c], 0xd7b2
jne 0x404711
cmp dword [0x47d224], 0
jbe 0x404711
mov eax, 0x47d218
call dword [0x47d234]
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 0x404770
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47102c], 0
jne 0x404765
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x471030], 0
je 0x4048c6
mov edx, esi
mov eax, ebx
call dword [0x471030]
jmp 0x4048d5
mov eax, 8
call fcn.00402ca0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404868
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x405e38
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 0x406068
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ebb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406068
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ebb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406084
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f44
xor eax, eax
push ebp
push 0x405f3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c74
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 0x405f22
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f22
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 0x405f44
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 0x40605e
cmp byte [ebp - 0xd], 0
jne 0x405f8b
cmp byte [ebp - 0x12], 0
je 0x40605e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405fa4
dec ebx
cmp byte [ebx], 0x2e
je 0x405fb3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405fa3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40605e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ff0
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 0x40605e
cmp byte [ebp - 0xd], 0
je 0x40605e
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 0x40605e
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