joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b37c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b3c7
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x422240], ax
xor eax, eax
mov word [0x422242], ax
mov dword [0x4150b0], 0x422240
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e92f
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b746
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x41c200]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41d314], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b7a8
mov ecx, dword [0x41b0d4]
call fcn.004069fc
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41373c
push 0
push 0xc2
push edi
call esi
mov byte [0x41d314], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40b7f8
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40b842
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413760
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c175
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c190
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c19a
mov byte [eax], 0
test edi, edi
je 0x40c243
movzx eax, word [edi]
test ax, ax
je 0x40c243
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c1d3
cmp dword [ebp + 0xc], 0
je 0x40c1df
test esi, esi
jne 0x40c1df
test ebx, ebx
je 0x40c1cf
mov byte [ebx], 1
mov esi, edx
jmp 0x40c1ee
cmp ax, 0xd
je 0x40c201
cmp ax, 0xa
je 0x40c203
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c1f9
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c1b3
jmp 0x40c203
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c203
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c23e
mov word [ebx], ax
test esi, esi
je 0x40c23e
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040e905
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c245
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c28a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412603
cmp byte [0x41d315], 0
jne 0x40c318
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407baf
push eax
call fcn.0040f1ce
test eax, eax
jne 0x40c318
push 0x4137f4
call fcn.004125f0
lea eax, [ebp - 0x820]
push eax
call fcn.0040aee2
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040abb3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c3df
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41c1f1], 1
cmp dword [0x41c200], ebx
je 0x40c407
push 0x7d
call fcn.0040a21e
push eax
push 2
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41c200]
mov dword [0x41c1f4], ebx
mov byte [0x41c1f0], 1
cmp eax, ebx
je 0x40c468
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41d324], ebx
jne 0x40c436
cmp byte [0x41d314], bl
je 0x40c43e
cmp dword [0x41c1f8], ebx
jne 0x40c460
push ebx
push 1
push 0x111
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c460
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b33d
cmp dword [0x41c200], ebx
jne 0x40c454
cmp byte [0x41c208], bl
pop ebx
je 0x40c476
jmp fcn.0040c28a
ret
Function at 0x40c4b2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x41c210], bl
je 0x40c532
cmp word [0x41b0d8], bx
je 0x40c532
push esi
push 0x41b0d8
lea esi, [ebp - 0x808]
call fcn.0040c477
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c532
push dword [ebp + 8]
call fcn.0040aee2
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c537
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x41c210], 0
je 0x40c5bd
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x80c]
call fcn.0040c477
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c5bd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c5b4
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040af0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40c6e5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x41c0e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x41c0e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x41c0ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41c0e0], eax
je 0x40c715
xor eax, eax
inc eax
jmp 0x40c73e
cmp byte [0x41c0e7], 0
je 0x40c723
push 2
pop eax
jmp 0x40c73e
push dword [ebp + 8]
push 0x40b916
push dword [0x41c200]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c790
dec eax
je 0x40c7a2
dec eax
je 0x40c789
dec eax
jne 0x40c76d
push dword [ebp + 8]
push 0x40bc62
push dword [0x41c200]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c6ef
mov al, 0x52
jmp 0x40c79d
dec eax
je 0x40c77e
dec eax
mov al, 0x4e
jne 0x40c79d
mov byte [0x41c0e7], 1
jmp 0x40c79d
mov byte [0x41c1f2], 1
mov al, 0x43
jmp 0x40c79d
mov byte [0x41c0e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c79d
Function at 0x40c95b
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.00401200
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40cb92
push esi
call fcn.0040aee2
cmp eax, 0x3f6
jae 0x40cb92
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040abb3
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40c9b2
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40c9b5
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40ca0b
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40c9dd
jmp 0x40c9cd
cmp word [esi + eax*2], 0x22
je 0x40c9d6
inc eax
cmp word [esi + eax*2], bx
jne 0x40c9c6
jmp 0x40c9dd
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40c9f7
cmp word [esi + eax*2 + 2], 0x2f
je 0x40c9f7
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40c9be
jmp 0x40ca0b
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40ca05
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40ca20
cmp word [0x41ca12], bx
je 0x40ca20
mov dword [ebp - 0x2c], 0x41ca12
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00407e29
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ca4c
push str..inf
push eax
call fcn.0040f111
test eax, eax
jne 0x40ca4c
mov dword [ebp - 0x34], str.Install
push dword [ebp - 0x30]
call fcn.00405d2b
mov bl, al
test bl, bl
je 0x40ca72
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407968
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40cab0
test bl, bl
jne 0x40cab0
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.0040af0c
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.0040af79
lea eax, [ebp - 0x840]
push eax
call fcn.00405d2b
test al, al
je 0x40cb91
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40cae2
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40cb91
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x41c208], bl
jne 0x40caf7
cmp byte [ebp + 8], bl
je 0x40cb2d
mov eax, dword [0x41c200]
test eax, eax
je 0x40cb17
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cb17
push 0
push dword [0x41c200]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040c24b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40cb4d
push str..exe
push dword [ebp - 4]
call fcn.0040f111
test eax, eax
je 0x40cb7d
cmp byte [0x41c208], 0
je 0x40cb63
cmp byte [ebp + 8], 0
jne 0x40cb63
push 0x1b58
jmp 0x40cb77
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40cb91
cmp byte [ebp + 8], 0
je 0x40cb91
push 1
push dword [0x41c200]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e0e8
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.0040ebd7
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x424cf8
call fcn.0040f2cb
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40e176
push esi
call fcn.0040bfd2
cmp byte [0x41c211], bl
je 0x40e16e
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e163
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40e15c
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e176
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x41b8d8], eax
call fcn.00412673
push esi
mov ecx, 0x415e88
call fcn.0040a207
lea ecx, [ebp - 0x40]
call fcn.004069d9
lea ecx, [ebp - 0x24]
call fcn.004069d9
push 0x64
call fcn.0040b646
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040b646
push ebx
push 0x40d850
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.004069ef
lea ecx, [ebp - 0x40]
call fcn.004069ef
lea ecx, [ebp - 8]
call fcn.004126c5
cmp byte [0x41c208], bl
je 0x40e24b
call fcn.0040c28a
push 0x100
push ebx
push 0x41c0f0
call fcn.0040abb3
cmp dword [0x41d324], ebx
jbe 0x40e26e
push dword [0x41d318]
call fcn.0040ab2f
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e288
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e2a7
cmp byte [0x41c1f2], bl
je 0x40e2a7
push 0xff
mov ecx, 0x415e7c
call fcn.004033f7
mov eax, dword [0x41d32c]
mov byte [0x41c1f2], 1
cmp eax, ebx
je 0x40e2bd
push eax
call fcn.0040c24b
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x415e7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e62f
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412603
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7666283
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4cf77c2
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402738
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x41003c], 0x8088405
inc edx
mov dword [0x41003c], edx
mul edx
mov eax, edx
ret

Function at 0x402854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40f000]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028cc
xor eax, eax
push ebp
push 0x4028c5
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 0x402908
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 0x4028cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40f000]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40f000], ax
mov esp, ebp
pop ebp
ret
Function at 0x403f1c
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 0xf003f
push 0
push 0x4040d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f7d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4040f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403fef
xor eax, eax
push ebp
push 0x403fe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00403d74
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fd1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404114
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fef
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4040d0
cmp byte [ebp - 0xd], 0
jne 0x404031
cmp byte [ebp - 0x12], 0
je 0x4040d0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40404a
dec ebx
cmp byte [ebx], 0x2e
je 0x404059
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404049
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040d0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404086
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040d0
cmp byte [ebp - 0xd], 0
je 0x4040d0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040d0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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

Function at 0x406620
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 0x406659
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403340
jmp 0x406662
mov eax, ebx
mov edx, esi
call fcn.004032ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40666c
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 0x40668d
mov al, byte [esp]
jmp 0x40668f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d97c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004035c4
xor eax, eax
push ebp
push 0x40d9f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004034b4
mov esi, eax
test esi, esi
jle 0x40d9d9
mov edi, 1
mov eax, ebx
and eax, 0xff
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor eax, edx
mov eax, dword [eax*4 + 0x40f330]
call fcn.0040d6a0
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc edi
dec esi
jne 0x40d9b1
not ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9f8
lea eax, [ebp - 4]
call fcn.00403258
ret
Function at 0x40ba30
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404b60
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ba66
jmp 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba63
cmp al, 0x20
je 0x40ba63
cmp al, 0x22
jne 0x40ba89
jmp 0x40baf4
cmp al, 0x20
lea esi, [esi]
je 0x40ba90
test al, al
je 0x40baa5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40ba77
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40bb0a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ba97
cmp al, 0x20
je 0x40ba97
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40bab4
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40bafe
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x40baf0
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x40ba90
cmp al, 9
je 0x40ba97
jmp 0x40baa5

Function at 0x438c9c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop ebx
mov eax, 0x99f00063
push eax
pop eax
call fcn.00438cd9
sub ecx, eax
or ecx, eax
xor dword [edx], ebx
dec eax
add ecx, ecx
add edx, 1
mov eax, eax
or ecx, eax
mov eax, eax
cmp edx, esi
jne fcn.00438c9c
sub ecx, 0x2f28010c
ret
Function at 0x401000
Capabilities:
Parse url

Disassembly:
mov eax, 0x402164
call fcn.00401ea0
sub esp, 0x260
mov dl, byte [0x4041c8]
push esi
push edi
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x16b]
mov byte [ebp - 0x16c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], dl
push 0xe
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
xor esi, esi
rep stosd dword es:[edi], eax
or dword [ebp - 0x34], 0xffffffff
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4010e6
push dword [ebp - 0x34]
lea eax, [ebp - 0x16c]
push dword [ebp - 0x38]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x18]
lea eax, [ebp - 0x26c]
push dword [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea ecx, [ebp - 0x6c]
call fcn.004010f4
push dword [ebp - 0x30]
lea eax, [ebp - 0x16c]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
push eax
call fcn.0040136c
push dword [ebp + 0xc]
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x6c]
push eax
call fcn.0040114a
test eax, eax
jne 0x4010d8
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401111
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret