joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66ba42f5
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4413316a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

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

Disassembly:
pushal
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x484cd8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
sub edx, 0x5a9d3aec
call fcn.00484d0d
sub edx, eax
dec eax
add eax, eax
xor dword [esi], ebx
mov edx, edx
sub edx, 0xf01b019c
mov eax, 0x1b4b354a
add esi, 2
mov edx, edx
cmp esi, ecx
jl fcn.00484cd8
add edx, eax
ret
Function at 0x402b68
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 0x402ba5
xor eax, eax
mov al, 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 0x402bc5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404c9c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a2c
test esi, esi
jne 0x402e43
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404b1c
jmp 0x402e64
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ca8
mov dword [esp], eax
test esi, esi
je 0x402e64
cmp dword [ebx], 0
je 0x402e64
dec esi
jmp 0x402e4b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403c44
Capabilities:
Query or enumerate registry value

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

Function at 0x4048a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x404909
cmp word [0x41c218], 0xd7b2
jne 0x4048d1
cmp dword [0x41c220], 0
jbe 0x4048d1
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41b0b8
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 0x404930
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41b02c], 0
jne 0x404925
push 0
push 0x41b0b0
push 0x41b0b8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065e8
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 0x40664e
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.00404c9c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035c8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406638
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406655
lea eax, [ebp - 0x10]
call fcn.00404a2c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ec8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40827d
test al, 0x10
jne 0x408281
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4083c8
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.00404ec8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4083ea
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ae6c
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 0x40aea5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b1c
jmp 0x40aeae
mov eax, ebx
mov edx, esi
call fcn.00404a80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aeb8
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 0x40aed9
mov al, byte [esp]
jmp 0x40aedb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b570
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3d8
mov eax, dword [0x41bb38]
cmp byte [eax], 0
je 0x40b5ec
mov eax, dword [0x41ba4c]
call fcn.004031dc
call fcn.00402ae8
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.004087c0
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 0x40b634
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b622
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41ba24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c660]
call fcn.00405a90
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 0x40c3e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c444
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404c9c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c44b
lea eax, [ebp - 0xc]
call fcn.00404a2c
ret

Function at 0x4186c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418797
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov esi, eax
mov eax, edi
mov edx, esi
call fcn.00405054
mov eax, dword [edi]
call fcn.00404ec8
push eax
push esi
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x418775
mov eax, dword [edi]
call fcn.00404ec8
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c24
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c1dc
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00404a80
test bl, bl
je 0x41877c
push dword [edi]
push 0x4187b0
lea eax, [ebp - 0x14]
mov edx, dword [0x41bb78]
add edx, 0x187
call fcn.00404c90
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404d88
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040c1dc
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404a80
jmp 0x41877c
mov eax, edi
call fcn.00404a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41879e
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404a50
ret
Function at 0x4187b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x418850
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.00405054
lea eax, [ebp - 4]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x41882e
mov eax, dword [ebx]
call fcn.00404ec8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x41882e
mov eax, dword [ebx]
call fcn.00404ec8
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404c24
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040c1dc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404a80
jmp 0x418835
mov eax, ebx
call fcn.00404a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418857
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404a50
ret

Function at 0x4188ac
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x418948
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, edi
call fcn.00404ec8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.00405054
push esi
mov eax, dword [ebx]
call fcn.00404ec8
push eax
mov eax, edi
call fcn.00404ec8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x418926
mov eax, dword [ebx]
call fcn.00404ec8
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c24
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c1dc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404a80
jmp 0x41892d
mov eax, ebx
call fcn.00404a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41894f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a50
ret
Function at 0x418cb4
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418e69
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x418d7d
mov eax, dword [0x41bb78]
cmp byte [eax + 0x194], 0
jne 0x418d7d
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040ae20
mov edx, dword [ebp - 4]
mov eax, 0x418e80
call fcn.0040500c
test eax, eax
jne 0x418d24
push ebx
push 0x418e8c
push 0x418e8c
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404d88
jmp 0x418d48
mov al, byte [0x418e90]
push eax
lea eax, [ebp - 8]
push eax
mov edx, 0x418e80
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c9bc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404ac4
push 0x10
push 0
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0xe1ddb0]
push eax
call sub.user32.dll_DestroyWindow
mov eax, dword [0xe1ddb4]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0xe1ddb8]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0x41bb78]
cmp byte [eax], 1
jne 0x418dde
mov eax, dword [0xe1dda0]
call fcn.004057dc
mov esi, eax
test esi, esi
jl 0x418dba
inc esi
xor ebx, ebx
mov eax, dword [0xe1dda0]
mov eax, dword [eax + ebx*4]
xor edx, edx
call fcn.004083c8
mov eax, dword [0xe1dda0]
mov eax, dword [eax + ebx*4]
call fcn.004084ec
inc ebx
dec esi
jne 0x418d9a
mov eax, dword [0xe1dda4]
call fcn.004057dc
mov ebx, eax
cmp ebx, 0
jl 0x418dde
mov eax, dword [0xe1dda4]
mov eax, dword [eax + ebx*4]
call fcn.00418c3c
dec ebx
cmp ebx, 0xffffffff
jne 0x418dcb
test edi, edi
jne 0x418e47
cmp dword [0x41b9a8], 0
je 0x418e47
push 0
push 0
push 0x418e9c
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402e0c
push dword [ebp - 0x10]
push 0x418e9c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d88
mov eax, dword [ebp - 0xc]
call fcn.00404ec8
push eax
mov eax, dword [0x41b9a8]
call fcn.00404ec8
push eax
push 0x418ea0
push 0
call sub.shell32.dll_ShellExecuteA
push 4
push 0
mov eax, dword [0x41b9a8]
call fcn.00404ec8
push eax
call sub.kernel32.dll_MoveFileExA
mov eax, edi
call fcn.00404a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418e70
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404a50
ret
Function at 0x41d25c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x408f9c], eax
je 0x41d27e
cmp dword [0x408f9c], ebx
jne 0x41d317
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x408f9c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x408f9c], esi
test esi, esi
jne 0x41d2ed
mov dword [0x408f9c], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x408f9c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call fcn.005a7000
mov eax, dword [0x408f9c]
not eax
mov dword [0x458794], eax
pop esi
pop ebx
leave
ret

Function at 0x41d31a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408f9c]
jne fcn.0041dfde
ret

Function at 0x41d5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x401ef4
push 0x80000000
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41d68e
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x41d684
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x408fb4
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d684
cmp dword [ebp + 8], esi
jne 0x41d684
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x41d684
cmp dword [ebp - 4], ebx
je 0x41d676
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x41d680
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x41d69a
cmp dword [ebp - 4], ebx
je 0x41d68e
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x41d698
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41dddf
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x425fd0
call fcn.0041e44f
xor ebx, ebx
cmp dword [0x45af28], ebx
jne 0x41dbbd
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x45af1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x41dbf7
cmp eax, esi
jne 0x41dbea
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x41dbfa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41dbd1
xor esi, esi
inc esi
mov eax, dword [0x45af18]
cmp eax, esi
jne 0x41dc0d
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x41dc48
mov eax, dword [0x45af18]
test eax, eax
jne 0x41dc42
mov dword [0x45af18], esi
push 0x401348
push 0x401334
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41dc48
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41dd1f
mov dword [0x4598a8], esi
mov eax, dword [0x45af18]
cmp eax, esi
jne 0x41dc6c
push 0x401330
push 0x401308
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x45af18], 2
cmp dword [ebp - 0x1c], ebx
jne 0x41dc79
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x45af2c], ebx
je 0x41dc9a
push 0x45af2c
call fcn.0041e387
pop ecx
test eax, eax
je 0x41dc9a
push ebx
push 2
push ebx
call dword [0x45af2c]
mov eax, dword [0x459890]
mov ecx, dword [sym.imp.MSVCR100.dll___initenv]
mov dword [ecx], eax
push dword [0x459890]
push dword [0x459894]
push dword [0x45988c]
call fcn.00414814
add esp, 0xc
mov dword [0x4598a4], eax
cmp dword [0x459898], ebx
jne 0x41dd05
push eax
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR100.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4598a8], ebx
jne 0x41dd13
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4598a4]
call fcn.0041e494
ret
call fcn.0041d25c
jmp 0x41db9c
Function at 0x41f020
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401b16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401988
push 0x407f08
mov ecx, 8
sub esp, 0x10
xor eax, eax
mov edx, esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x38]
mov eax, 0x40a280
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
mov dword [edx + 4], ecx
mov ecx, dword [0x423028]
push 1
push 3
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x30]
push ecx
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x2c]
push edx
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaCastObjVar]
add esp, 0x20
push eax
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [ebp - 0x18]
push 0
push 1
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
mov edx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x407f18
push 0
push 2
push edx
push eax
call esi
add esp, 0x10
push eax
call edi
lea ecx, [ebp - 0x14]
push eax
push ecx
call ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp - 0x18]
push 0
push 4
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push 0
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjIs]
neg ax
sbb eax, eax
push 0x41f136
neg eax
dec eax
mov dword [ebp - 0x1c], eax
jmp 0x41f125
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x18]
call esi
ret