joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1806d9cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
call fcn.1806cf7e
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
and dword [esp + 0x10], 0
push 5
push dword [esp + 0x1c]
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x1806da87
push 0xf0
push dword [esp + 0x1c]
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1806da16
push eax
push esi
call edi
push eax
call ebx
and dword [esp + 0xc], 0
push ebp
push esi
call edi
test eax, eax
je 0x1806da6c
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1806da6c
call fcn.1806d878
push 0
push 0x1806d831
push dword [esp + 0x24]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1806da58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp ebx, edi
je 0x1806da76
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1806da76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x1806da87
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x1806df25
Capabilities:
Hide graphical window

Disassembly:
push ebp
push esi
push edi
lea esi, [ebx + 8]
mov eax, ebx
call fcn.1804f019
movzx eax, word [ebx + 0x24]
mov esi, dword [0x180b414c]
push 0
push eax
call fcn.1806d9cb
pop ecx
pop ecx
test eax, eax
jne 0x1806df54
mov eax, 0x80040e80
jmp 0x1806dfe7
push dword [ebx + 0x64]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea esi, [ebx + 4]
push dword [esi]
call edi
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfff4ffff
push eax
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7db
push dword [esi]
call ebp
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x7d5
push dword [esi]
call ebp
mov ebp, eax
push 1
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x60]
push ebp
call edi
mov eax, ebx
call fcn.1806dfeb
push 2
push 0xff
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push esi
xor eax, eax
call fcn.180072e1
push dword [esi]
lea edi, [ebx + 0x68]
call fcn.180108cd
xor eax, eax
pop ecx
inc eax
mov ecx, ebx
call fcn.1806e069
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x1806f827
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.1806f809
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 0xc]
call esi
mov ebx, eax
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
mov dword [ebp - 8], ebx
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
mov dword [ebp - 4], edi
test ebx, ebx
jbe 0x1806f888
push ebx
lea eax, [ebp - 4]
call fcn.18002b0e
push eax
inc ebx
push ebx
push 0xd
push dword [ebp + 0xc]
call esi
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003baa
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.1806a176
mov esi, eax
test esi, esi
je 0x1806f8ac
cmp dword [ebp - 8], 0
jbe 0x1806f8ac
mov eax, dword [ebp + 8]
push edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [edi - 0x10]
call fcn.18003e0a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x180715ce
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.18003b7f
lea eax, [ebp + 0xc]
push eax
call fcn.1800932f
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x18071619
mov edi, 0x104
push edi
lea esi, [ebp + 0xc]
call fcn.18003ce3
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
call fcn.18003baa
mov edi, esi
call fcn.1800a695
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, ebx
jne 0x1807164a
call fcn.1800d4b3
mov edi, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [ebp + 8]
push esi
push dword [ebp - 4]
call fcn.18071661
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18071636
Function at 0x18075e75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x180af1d0]
jne 0x18075e7f
repz ret
jmp fcn.18079ffc

Function at 0x180841a8
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.1807a1a1
and dword [ebp - 4], 0
cmp dword [0x180b4b7c], 0
mov ebx, eax
jne 0x18084259
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1808430a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1808430a
push eax
call fcn.1807a12f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x180b4b7c], eax
call esi
push eax
call fcn.1807a12f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x180b4b80], eax
call esi
push eax
call fcn.1807a12f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x180b4b84], eax
call esi
push eax
call fcn.1807a12f
pop ecx
mov dword [0x180b4b8c], eax
test eax, eax
je 0x18084259
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1807a12f
pop ecx
mov dword [0x180b4b88], eax
mov eax, dword [0x180b4b88]
cmp eax, ebx
je 0x180842b1
cmp dword [0x180b4b8c], ebx
je 0x180842b1
push eax
call fcn.1807a1aa
push dword [0x180b4b8c]
mov esi, eax
call fcn.1807a1aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x180842b1
test edi, edi
je 0x180842b1
call esi
test eax, eax
je 0x180842a8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x180842a8
test byte [ebp - 0xc], 1
jne 0x180842b1
or dword [ebp + 0x10], 0x200000
jmp 0x180842ea
mov eax, dword [0x180b4b80]
cmp eax, ebx
je 0x180842ea
push eax
call fcn.1807a1aa
pop ecx
test eax, eax
je 0x180842ea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x180842ea
mov eax, dword [0x180b4b84]
cmp eax, ebx
je 0x180842ea
push eax
call fcn.1807a1aa
pop ecx
test eax, eax
je 0x180842ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x180b4b7c]
call fcn.1807a1aa
pop ecx
test eax, eax
je 0x1808430a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1808430c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1808db49
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x180b4d58], 0
push esi
jne 0x1808dabc
call fcn.1808d9e2
test eax, eax
je 0x1808daff
mov eax, dword [0x180b4d58]
cmp eax, 1
jne 0x1808dadd
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1808daff
pop esi
ret
push eax
call dword [0x180b4d60]
test eax, eax
jne 0x1808db47
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1808db03
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x180b4d58]
call dword [0x180b4d60]
mov edi, eax
test edi, edi
je 0x1808db28
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1808db44
mov edi, esi
add esi, 0xff0
push edi
push dword [0x180b4d58]
call dword [0x180b4d5c]
add edi, 0x10
cmp edi, esi
jb 0x1808db30
mov eax, edi
pop edi
pop esi
ret
jmp 0x1808daa9
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, edx
xor eax, eax
mov byte [eax + 0x413698], al
inc eax
cmp eax, 0x100
jne 0x401008
xor edi, edi
xor esi, esi
xor edx, edx
mov bl, byte [esi + 0x413698]
mov eax, esi
movzx ecx, bl
div ebp
movsx eax, byte [edx + 0x412780]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [edi + 0x413698]
mov byte [esi + 0x413698], al
inc esi
mov byte [edi + 0x413698], bl
cmp esi, 0x100
jne 0x40101a
and dword [0x413694], 0
and dword [0x414068], 0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40115c
Capabilities:
Access the windows event log
Allocate or change rwx memory
Create mailslot
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x413798
push esi
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40116a
sub ecx, edx
xor edi, edi
cmp ecx, 0x159
jne 0x4011db
push edi
push edi
push edi
push str.kikekimuxurupovojurota_vugoyiyiyugosekadohajedumi_yabedaseyeru
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call fcn.0040286d
push edi
call fcn.004027ed
pop ecx
pop ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ole32.dll_CoGetContextToken]
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
mov eax, edi
cmp eax, 0x4ad
jg 0x4011ec
inc eax
cmp eax, 0xfdc3
jl 0x4011dd
mov ecx, 0x1e47
mov eax, edi
mov dword [0x413690], ecx
cmp eax, 0x209
jne 0x401206
add ecx, 0x1890
inc eax
cmp eax, 0xc3e
jl 0x4011f9
push str.kernel32.dll
mov dword [0x413690], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LocalAlloc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x1000
push dword [0x413690]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x41406c], eax
mov esi, edi
mov eax, dword [0x414064]
cmp esi, 0x7c16df
mov ecx, 0x41dda0
cmove eax, ecx
mov dword [0x414064], eax
cmp esi, 0x865
jge 0x401275
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
inc esi
cmp esi, 0x8d70ff
jl 0x401246
mov edx, edi
cmp dword [0x413690], edx
jbe 0x4012a5
mov eax, dword [0x414064]
mov cl, byte [eax + edx + 0x1890]
mov eax, dword [0x41406c]
mov byte [eax + edx], cl
inc edx
cmp edx, dword [0x413690]
jb 0x401288
push ecx
call fcn.00401119
pop ecx
mov esi, edi
cmp esi, 0xa151
jne 0x4012c7
nop
add dword [0x413690], 0x379b
call dword [0x41406c]
inc esi
cmp esi, 0x5a545b
jl 0x4012ae
push dword [ebp - 4]
mov eax, dword fs:[0x2c]
push edi
push edi
push edi
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
mov dword [eax + 4], 1
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1000d620
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.1000d620
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1000d620
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x402774
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.00403d90
test esi, esi
jne 0x4027aa
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.00403e80
jmp 0x4027c8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402688
mov edi, eax
test esi, esi
je 0x4027c8
cmp dword [ebx], 0
je 0x4027c8
dec esi
jmp 0x4027b1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d0c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x412008], 0x8088405
inc edx
mov dword [ebx + 0x412008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032e0
Capabilities:
Query or enumerate registry value

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

Function at 0x403b98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413038], 0
je 0x403bf9
cmp word [0x41320c], 0xd7b2
jne 0x403bc1
cmp dword [0x413214], 0
jbe 0x403bc1
mov eax, 0x413208
call dword [0x413224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x412084
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 0x403c20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x412024], 0
jne 0x403c15
push 0
push 0x41207c
push 0x412084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d4c
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.00402518
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x413039], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d14
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4047a0
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 0x404806
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.00404000
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403078
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4047f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40480d
lea eax, [ebp - 0x10]
call fcn.00403d90
ret
Function at 0x40523c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404208
xor eax, eax
push ebp
push 0x40544a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
push 0x40545c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x405415
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0
je 0x4053fe
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00405130
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x20]
call fcn.00404218
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
mov eax, 0x405464
mov dword [ebp - 0x28], eax
push 0
push 0x80000000
lea eax, [ebp - 0x28]
push eax
push 0
push 0x405470
mov eax, dword [ebp - 0x24]
call fcn.00404218
push eax
push 0x40547c
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00404018
push eax
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
push 0x2f
push 0x405484
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp - 0x2c]
call fcn.00402518
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x4053fe
xor eax, eax
push ebp
push 0x4053f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x432]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x18], 0
je 0x4053c7
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x432], 0
lea eax, [ebp - 0x438]
lea edx, [ebp - 0x432]
mov ecx, 0x402
call fcn.00404000
mov edx, dword [ebp - 0x438]
lea eax, [ebp - 0x1c]
call fcn.00404020
jmp 0x405370
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00404300
test eax, eax
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053fe
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40541c
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x405cec
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404218
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x405d0e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x405fa0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
push ebx
push esi
push edi
mov edi, eax
mov eax, edi
call fcn.00403d90
xor edx, edx
push ebp
push 0x406043
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0x40
lea eax, [ebp - 0x1d0]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x1d0]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40600e
mov ebx, dword [eax + 0xc]
jmp 0x406008
push dword [esi]
call sub.wsock32.dll_inet_ntoa
mov edx, edi
call fcn.00405e5c
add ebx, 4
mov esi, dword [ebx]
test esi, esi
jne 0x405ff7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40604a
xor eax, eax
push ebp
push 0x406038
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406042
ret

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

Disassembly:
push ebx
mov ebx, edx
mov eax, ebx
call fcn.00404218
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406099
and eax, 0x10
cmp eax, 0x10
je 0x40609d
xor eax, eax
jmp 0x40609f
mov al, 1
neg al
sbb eax, eax
pop ebx
ret