joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452fba
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
cmp dword [ebp + 0xc], 2
jne 0x452fdc
push 0xfa
push 0x17d
push dword [ebp + 8]
call fcn.0041b125
jmp 0x4530e6
push 0x155
push 0x17d
push dword [ebp + 8]
call fcn.0041b125
jmp 0x452ff3
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
je 0x453016
mov eax, 0x551
add eax, dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x452ff0
mov byte [ebp - 4], 0
jmp 0x45301f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp al, 2
je 0x453061
push 0
push 0xa0
push 0x90
push 0x9a
cmp al, 0
je 0x45303f
push 1
jmp 0x453044
push 0x97
mov ecx, 0x557
imul eax, eax, 3
add ecx, eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x45301c
mov byte [ebp - 4], 0
jmp 0x45306a
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp al, 2
je 0x453089
mov ecx, 0x553
add ecx, eax
push 0x486adc
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x453067
mov byte [ebp - 4], 0
jmp 0x453092
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
je 0x4530cf
mov ecx, 0x507
cmp dword [ebp - 4], 3
jne 0x4530a4
inc ecx
add ecx, dword [ebp - 4]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x16
push 0x48
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x36
add ecx, 0x7f
push ecx
push 0x12c
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x45308f
push 0x50a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x4c3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x96
push 0x126
push 2
push 2
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [ebp + 0x10], 0
je 0x45311f
push 0x48e0e6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45a579
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push eax
sub esp, 0xc
mov edx, dword [ebp + 0xc]
shr edx, 0x10
cmp dx, 0x300
jne 0x45a606
mov ecx, 0x500e27
cmp byte [ecx], 0xff
jne 0x45a5ff
inc byte [ecx]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0xc], eax
push 6
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x45a5ba
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp al, 4
jae 0x45a5d6
lea ecx, [ebp - 0x14]
movzx eax, byte [eax + ecx]
test eax, eax
je 0x45a5ff
push eax
call fcn.004014ca
test eax, eax
jne 0x45a5b7
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov byte [ecx + edx], 0
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 4
push 4
push 0xb1
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov byte [0x500e27], 0xff
mov esp, ebp
pop ebp
ret 8
Function at 0x4714e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [ebp + 0x18], 0
jne 0x471503
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
jmp 0x47151d
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 8], eax
mov ecx, dword [edx + 0xc]
mov dword [ebp - 4], ecx
push 0x100
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x471559
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x20], 1
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00471411
add esp, 0x20
mov esp, ebp
pop ebp
ret

Function at 0x474e0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
call fcn.00426b52
add esp, 4
push 0
push dword [0x4b7508]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push 1
call fcn.0041de80
push 0x3fe
push 0x500c7e
call fcn.0042de26
cmp al, 2
je 0x474e50
inc al
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
call fcn.0052dbfd
mov ecx, dword [ebp + 8]
mov byte [ecx], 2
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
call fcn.00426ba3
mov esp, ebp
pop ebp
ret 8
Function at 0x477b6f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485d4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov dword [ebp - 0x20c], ecx
push 0x5a6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x478160
mov ecx, dword [ebp - 0x20c]
movzx eax, byte [ecx + 0x2b]
call fcn.0040111a
push eax
push 0x3f8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebp - 0x130], 0
jmp 0x477bd9
inc dword [ebp - 0x130]
mov eax, dword [ebp - 0x130]
cmp eax, 0xa
jae 0x477c1a
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20c]
movzx ecx, byte [ecx + 0x2b]
call fcn.0041b781
call fcn.00466bb9
test al, al
je 0x477bd3
mov eax, dword [ebp - 0x130]
push dword [eax*4 + 0x48bc04]
push 0x5a8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [ebp - 0x130], 0xa
jne 0x477c36
push 0x48ebcc
push 0x5a8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebp - 0x130], 0xa
jmp 0x477c48
inc dword [ebp - 0x130]
mov eax, dword [ebp - 0x130]
cmp eax, 0xd
jae 0x477c89
shl eax, 1
push eax
mov ecx, dword [ebp - 0x20c]
movzx ecx, byte [ecx + 0x2b]
call fcn.0041b781
call fcn.00466bb9
test al, al
je 0x477c42
mov eax, dword [ebp - 0x130]
push dword [eax*4 + 0x48bc04]
push 0x5a7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [ebp - 0x130], 0xd
jne 0x477ca5
push 0x48ebd0
push 0x5a7
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x474
push dword [ebp + 8]
push 0
mov eax, dword [ebp - 0x20c]
call fcn.0047816e
push 0x561
push dword [ebp + 8]
push 2
mov eax, dword [ebp - 0x20c]
call fcn.0047816e
push 0x3f1
push dword [ebp + 8]
push 1
mov eax, dword [ebp - 0x20c]
call fcn.0047816e
push 0x562
push dword [ebp + 8]
push 3
mov eax, dword [ebp - 0x20c]
call fcn.0047816e
push 0x563
push dword [ebp + 8]
push 4
mov eax, dword [ebp - 0x20c]
call fcn.0047816e
push 0
mov edx, dword [ebp - 0x20c]
movzx ecx, byte [edx + 0x2b]
call fcn.0041b781
call fcn.004cee12
movzx eax, al
push eax
push 0x564
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov edx, dword [ebp - 0x20c]
movzx eax, byte [edx + 0x2b]
push eax
lea ecx, [ebp - 0x1fc]
push ecx
call fcn.0040bfbd
add esp, 8
lea edx, [ebp - 0x1fc]
push edx
push 0x5a6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 0x20c]
call fcn.00482715
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x20c]
call fcn.0040685a
and eax, 0xffff
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x20c]
call fcn.00477adc
mov byte [ebp - 0x200], al
jmp 0x5300f5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x52af42
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 8]
and eax, 3
pushal
cmp dword [0x505f1c], 0
je 0x52b0c4
push dword [edx]
call fcn.004061e4
movzx eax, byte [ecx + 0x2a]
test eax, eax
jne 0x52b0c4
movzx eax, byte [ecx + 0x2c]
push eax
push ecx
push 0
jmp 0x52af79
inc dword [esp]
cmp dword [esp], 2
je 0x52b0c1
mov eax, dword [esp]
imul eax, eax, 3
mov ecx, dword [esp + 4]
cmp byte [eax + ecx + 0x2e], 0xff
je 0x52af76
movzx ecx, byte [eax + ecx + 0x2e]
imul ecx, ecx, 0x19
add ecx, 0x4a1140
movzx eax, byte [ecx + 0x11]
and eax, 1
test eax, eax
je 0x52b020
mov eax, dword [esp]
imul eax, eax, 3
mov ecx, dword [esp + 4]
lea ecx, [eax + ecx + 0x2f]
movzx eax, byte [0x407ed1]
cmp al, byte [ecx]
jbe 0x52af76
movzx edx, byte [0x407f00]
cmp dl, byte [esp + 8]
ja 0x52afe5
mov ah, 0xff
mov edx, dword [ebp - 0x2c]
imul edx, edx, 3
mov ecx, dword [ebp - 0x28]
mov word [ecx + edx + 0x2f], ax
jmp 0x52af76
push eax
mov eax, dword [ebp - 0x24]
cdq
movzx ecx, byte [0x4cfb89]
div ecx
inc eax
cmp al, byte [esp]
jb 0x52affc
pop eax
jmp 0x52afd3
mov dword [esp], eax
mov eax, dword [esp + 4]
imul eax, eax, 3
mov ecx, dword [ebp - 0x28]
movzx edx, byte [eax + ecx + 0x2f]
cmp dl, byte [ebp - 0x30]
jae 0x52b01b
pop edx
mov word [eax + ecx + 0x2f], dx
jmp 0x52afe3
add esp, 4
jmp 0x52afe3
mov eax, dword [ebp - 0x2c]
imul eax, eax, 3
mov ecx, dword [ebp - 0x28]
movzx edx, byte [eax + ecx + 0x2e]
mov eax, 0x30
imul eax, dword [ebp - 0x2c]
sub edx, eax
mov eax, edx
cdq
mov ecx, 3
div ecx
push edx
mov eax, dword [ebp - 0x2c]
imul eax, eax, 3
mov ecx, dword [ebp - 0x28]
lea ecx, [eax + ecx + 0x2f]
movzx eax, byte [0x407f06]
cmp al, byte [ecx]
jbe 0x52b078
movzx edx, byte [0x407f00]
cmp dl, byte [ebp - 0x24]
ja 0x52b07d
mov ah, 0xff
mov edx, dword [ebp - 0x2c]
imul edx, edx, 3
mov ecx, dword [ebp - 0x28]
mov word [ecx + edx + 0x2f], ax
add esp, 4
jmp 0x52b01e
movzx edx, byte [0x440619]
imul edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
cmp eax, edx
jb 0x52b078
add dl, byte [0x440619]
cmp eax, edx
jb 0x52b0a2
movzx eax, byte [0x407f06]
jmp 0x52b068
mov eax, dword [ebp - 0x24]
call fcn.0052b107
sub eax, edx
cdq
div ecx
inc eax
movzx edx, byte [0x407f06]
cmp al, dl
jb 0x52b0bf
mov al, dl
mov ah, 0xff
jmp 0x52b06a
add esp, 0xc
popal
leave
ret

Function at 0x52b2aa
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0x3e9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0x52b326
push dword [0x4b6a68]
push 0x152
push dword [0x4b6a60]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x500e45], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
Function at 0x52b614
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [0x505f64]
sub esp, 0x14
push 2
push 0x30
push dword [ebp - 4]
lea ecx, [ebp - 0x18]
push ecx
call fcn.00418052
lea ecx, [ebp - 0x18]
push ecx
push str.RSS__s.EEX
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004190bb
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push eax
push dword [0x56ea78]
lea ecx, [ebp - 0x18]
call fcn.00419102
lea ecx, [ebp - 0x18]
call fcn.004192c5
mov eax, dword [0x505e8c]
test eax, eax
je 0x52b682
add al, 0x30
mov byte [0x52b6ac], al
push 0x52b6a0
push dword [0x56ea78]
call fcn.0052b6b0
push eax
push ecx
call fcn.0052b6eb
leave
ret
Function at 0x403070
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4030ac
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4030cc
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404dfc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033d4
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.00404b8c
test esi, esi
jne 0x40340a
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.00404c7c
jmp 0x403428
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403278
mov edi, eax
test esi, esi
je 0x403428
cmp dword [ebx], 0
je 0x403428
dec esi
jmp 0x403411
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b60
Capabilities:
Query or enumerate registry value

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

Function at 0x404a0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x404a6d
cmp word [0x47821c], 0xd7b2
jne 0x404a35
cmp dword [0x478224], 0
jbe 0x404a35
mov eax, 0x478218
call dword [0x478234]
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 0x404a94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47602c], 0
jne 0x404a89
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f20
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 0x406150
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fa3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406150
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fa3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40616c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40602c
xor eax, eax
push ebp
push 0x406025
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d5c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40600a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40618c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40600a
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 0x40602c
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 0x406146
cmp byte [ebp - 0xd], 0
jne 0x406073
cmp byte [ebp - 0x12], 0
je 0x406146
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40608c
dec ebx
cmp byte [ebx], 0x2e
je 0x40609b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40608b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406146
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4060d8
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 0x406146
cmp byte [ebp - 0xd], 0
je 0x406146
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 0x406146
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
Function at 0x4086d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408722
test eax, edx
je 0x408725
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4086e5
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40870b
add ecx, 4
js 0x4086fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408708
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408731
test edx, edx
jne 0x4086d8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040501c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409109
test al, 0x10
je 0x40910d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040501c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40912d
test al, 0x10
jne 0x409131
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be0c
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 0x40be45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c7c
jmp 0x40be4e
mov eax, ebx
mov edx, esi
call fcn.00404be0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be58
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 0x40be7a
movzx eax, byte [esp]
jmp 0x40be7c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c50c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c384
mov eax, dword [0x477c0c]
cmp byte [eax], 0
je 0x40c588
mov eax, dword [0x477a08]
call fcn.004034ec
call fcn.00402fc4
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.00409514
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 0x40c5d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c5be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4779a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47a7f4]
call fcn.00405d04
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 0x40ce34
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c24
lea eax, [ebp - 4]
call fcn.00405074
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040501c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cef4
mov eax, ebx
call fcn.00402e68
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ceed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040501c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ced7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf1c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ced7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cef4
mov eax, dword [ebp - 0x10]
call fcn.00402e84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf11
lea eax, [ebp - 4]
call fcn.00404b8c
ret
Function at 0x41bca8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47c9e8
cmp dword [edi], 0
jne 0x41bd24
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47c9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x476ad4
mov ecx, 2
call fcn.00403178
mov edx, 0x41bc80
lea eax, [esi + 5]
call fcn.0041bca0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bca0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41bcf9
mov dword [0x47c9e4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41e3e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040501c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e43c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x477d38]
mov dl, 1
mov eax, dword [0x41def0]
call fcn.0040c6cc
call fcn.004045d4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041dff8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f5cc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f5d2
ret