joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f9c3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x40aab0
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x43fa59
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x40fb30
push 0x40fb60
push 0x244
push ebx
push 0x406890
push 0xa4000
push esi
push 0x40fbc4
push 0x40fbe0
push 0x3000000
call fcn.00420037
add esp, 0x10
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x43fbc3
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0x206
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x40fc34
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], ebx
test esi, esi
je 0x43fb64
cmp esi, 2
jne 0x43fb0f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x40fb30
push 0x40fb60
push 0x25f
push ebx
push 0x406890
push 0xa4000
push 0x40fbc4
push 0x40fc58
push 0x4000000
call fcn.00420037
add esp, 0xc
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov dword [edi], ebx
jmp 0x43fbc0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x40fb30
push 0x40fb60
push 0x268
push ebx
push 0x406890
push 0xa4000
push esi
push 0x40fbc4
push 0x40fcc0
push 0x3000000
call fcn.00420037
add esp, 0x10
push eax
call dword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
jmp 0x43fa52
cmp dword [ebp - 0x218], 1
je 0x43fbb0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.WDSCORE.dll_CurrentIP]
push eax
push 0x40fb30
push 0x40fb60
push 0x273
push ebx
push 0x406890
push 0xa4000
push 0x40fbc4
push 0x40fd28
push 0x3000000
call fcn.00420037
add esp, 0xc
jmp 0x43fb58
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
Function at 0x43fbd9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40fd70
push 0x409690
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x28]
push eax
test esi, esi
je 0x43fc19
mov ecx, esi
call dword [0x46a7c8]
call esi
jmp 0x43fc1f
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x28]
pop esi
test eax, eax
je 0x43fc3f
cmp eax, 5
je 0x43fc3b
cmp eax, 9
je 0x43fc36
xor eax, eax
jmp 0x43fc42
push 2
pop eax
jmp 0x43fc42
push 3
jmp 0x43fc38
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445fe0
mov esp, ebp
pop ebp
ret

Function at 0x43fc55
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
pop esi
test eax, eax
js 0x43fca6
cmp dword [ebp - 0x11c], 6
sbb eax, eax
inc eax
jmp 0x43fca8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445fe0
mov esp, ebp
pop ebp
ret

Function at 0x43fcbb
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor esi, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x43fd1c
cmp dword [ebp - 0x11c], 6
ja 0x43fd15
jne 0x43fd18
cmp dword [ebp - 0x118], 1
jb 0x43fd18
xor esi, esi
inc esi
mov eax, esi
jmp 0x43fd1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00445fe0
mov esp, ebp
pop ebp
ret

Function at 0x43fd33
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
pop esi
test eax, eax
js 0x43fd8c
cmp dword [ebp - 0x11c], 5
jne 0x43fd8c
xor eax, eax
inc eax
cmp dword [ebp - 0x118], eax
jae 0x43fd8e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
Function at 0x440de3
Capabilities:
Check if file exists
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x14], edx
push esi
push esi
push 3
push esi
push 3
mov edi, ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x440e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x440e33
mov esi, 0x80070002
mov ecx, esi
call fcn.0041b100
jmp 0x440ed3
push esi
push edi
push 0x4130d8
push 0x2000000
push 0x469454
call fcn.00430fcd
add esp, 0x14
test esi, esi
jle 0x440e5b
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x440ed3
jmp 0x440e27
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x440ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 1
je 0x440eaa
cmp esi, 2
je 0x440eaa
push esi
push edi
push 0x413160
push 0x2000000
push 0x469454
call fcn.00430fcd
add esp, 0x14
test esi, esi
jle 0x440eb9
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x440ecc
mov ecx, esi
call fcn.0041b100
jmp 0x440ecc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041b049
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
Function at 0x44490a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x12c]
call fcn.0041deb3
and dword [ebp - 0x130], 0
test edi, edi
jne 0x44494a
mov esi, 0x80070057
mov ecx, esi
call fcn.0041b100
jmp 0x4449d3
mov esi, 0x11c
lea eax, [ebp - 0x128]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
lea edx, [ebp - 0x130]
mov ecx, eax
call fcn.004302be
test eax, eax
jne 0x44498d
mov esi, dword [ebp - 0x130]
jmp 0x44493e
cmp dword [ebp - 0x124], 6
jne 0x444a9d
cmp dword [ebp - 0x120], 1
jb 0x4449f7
push ecx
lea eax, [ebp - 0x12c]
mov edx, 0x415678
push eax
push 0x415650
call fcn.00425ca2
mov esi, eax
test esi, esi
js 0x44493e
mov eax, dword [ebp - 0x12c]
and dword [ebp - 0x12c], 0
mov dword [edi], eax
mov ecx, esi
call fcn.0041b049
lea ecx, [ebp - 0x12c]
call fcn.0042029e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x120], 0
jne 0x444a9d
cmp byte [ebp - 0xe], 1
je 0x444aa3
push 0x41020c
push 0x409690
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x444a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov esi, eax
jmp 0x44493e
lea eax, [ebp - 8]
mov ecx, esi
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push dword [ebp - 0x120]
push dword [ebp - 0x124]
call dword [0x46a7c8]
call esi
test eax, eax
je 0x444a2b
mov eax, dword [ebp - 8]
cmp eax, 0xc
jb 0x444a96
cmp eax, 0xe
jbe 0x444a81
cmp eax, 0x1d
je 0x444a81
add eax, 0xffffffd9
cmp eax, 7
ja 0x444a96
mov ecx, 0x4156d4
lea edx, [ebp - 0x12c]
call fcn.0042024d
jmp 0x4449ba
mov ecx, 0x4101fc
jmp 0x444a86
cmp byte [ebp - 0xe], 1
jne 0x444a96
mov ecx, 0x4101ec
jmp 0x444a86
Function at 0x444f42
Capabilities:
Check os version
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x12c]
push edi
call fcn.0041deb3
lea ecx, [ebp - 0x130]
call fcn.0041deb3
xor edi, edi
mov dword [ebp - 0x134], edi
test ebx, ebx
jne 0x444f8f
mov esi, 0x80070057
mov ecx, esi
call fcn.0041b100
jmp 0x4450ac
mov esi, 0x11c
lea eax, [ebp - 0x128]
push esi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
lea edx, [ebp - 0x134]
mov ecx, eax
call fcn.004302be
test eax, eax
jne 0x444fd1
mov esi, dword [ebp - 0x134]
jmp 0x444f83
cmp dword [ebp - 0x124], 6
jne 0x4450dc
push edi
push edi
push 0x5c
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x445007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov esi, eax
jmp 0x444f83
lea eax, [ebp - 0x134]
mov ecx, edi
push eax
call fcn.0041ff7c
mov esi, eax
test esi, esi
js 0x444f83
push dword [ebp - 0x134]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x130], 0
mov esi, eax
je 0x445054
push dword [ebp - 0x130]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x445068
and dword [ebp - 0x130], esi
mov esi, 0x8007000e
jmp 0x444f83
push edi
push esi
push 0x5c
push 0x800
mov dword [ebp - 0x130], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x444ff3
lea edx, [ebp - 0x12c]
mov ecx, esi
call fcn.0042024d
mov esi, eax
test esi, esi
js 0x444f83
xor edi, edi
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x12c], edi
mov dword [ebx], eax
mov ecx, esi
call fcn.0041b049
lea ecx, [ebp - 0x130]
call fcn.0041b11d
lea ecx, [ebp - 0x12c]
call fcn.0042029e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x12c]
mov ecx, 0x415894
call fcn.0042024d
mov esi, eax
test esi, esi
jns 0x44509e
jmp 0x444f83
Function at 0x4450fc
Capabilities:
Check os version
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x12c]
push edi
call fcn.0041deb3
lea ecx, [ebp - 0x130]
call fcn.0041deb3
xor edi, edi
mov dword [ebp - 0x134], edi
test ebx, ebx
jne 0x445149
mov esi, 0x80070057
mov ecx, esi
call fcn.0041b100
jmp 0x445266
mov esi, 0x11c
lea eax, [ebp - 0x128]
push esi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
lea edx, [ebp - 0x134]
mov ecx, eax
call fcn.004302be
test eax, eax
jne 0x44518b
mov esi, dword [ebp - 0x134]
jmp 0x44513d
cmp dword [ebp - 0x124], 6
jne 0x445296
push edi
push edi
push 0x5c
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4451c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov esi, eax
jmp 0x44513d
lea eax, [ebp - 0x134]
mov ecx, edi
push eax
call fcn.0041ff7c
mov esi, eax
test esi, esi
js 0x44513d
push dword [ebp - 0x134]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x130], 0
mov esi, eax
je 0x44520e
push dword [ebp - 0x130]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x445222
and dword [ebp - 0x130], esi
mov esi, 0x8007000e
jmp 0x44513d
push edi
push esi
push 0x5c
push 0x400
mov dword [ebp - 0x130], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4451ad
lea edx, [ebp - 0x12c]
mov ecx, esi
call fcn.0042024d
mov esi, eax
test esi, esi
js 0x44513d
xor edi, edi
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x12c], edi
mov dword [ebx], eax
mov ecx, esi
call fcn.0041b049
lea ecx, [ebp - 0x130]
call fcn.0041b11d
lea ecx, [ebp - 0x12c]
call fcn.0042029e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x12c]
mov ecx, 0x415894
call fcn.0042024d
mov esi, eax
test esi, esi
jns 0x445258
jmp 0x44513d
Function at 0x445fd0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x466550
call fcn.00446634
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x469524
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x445dd5
cmp eax, edi
jne 0x445de7
mov esi, ebx
cmp dword [0x469528], ebx
jne 0x445df4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x445e23
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x445dbe
cmp dword [0x469528], 0
jne 0x445e1d
mov dword [0x469528], ebx
push 0x401040
push 0x401034
call fcn.00445f74
pop ecx
pop ecx
test eax, eax
je 0x445e23
jmp 0x445f5d
mov dword [0x46800c], ebx
call fcn.00412284
nop
jne 0x445e46
push 0x401030
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x469528], 2
test esi, esi
jne 0x445e53
xor eax, eax
mov ecx, 0x469524
xchg dword [ecx], eax
cmp dword [0x469534], 0
je 0x445e81
push 0x469534
call fcn.00446460
pop ecx
test eax, eax
je 0x445e81
push 0
push 2
push 0
mov esi, dword [0x469534]
mov ecx, esi
call dword [0x46a7c8]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x445f5d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x445ef1
test ax, ax
je 0x445eaa
test edx, edx
jne 0x445ef1
movzx eax, word [ecx]
test ax, ax
je 0x445ebf
cmp ax, si
ja 0x445ebf
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x445eaa
test byte [ebp - 0x40], 1
je 0x445ecb
movzx eax, word [ebp - 0x3c]
jmp 0x445ece
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x468008], eax
cmp dword [0x468020], 0
jne 0x445f39
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x445f02
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x445e99
cmp dword [0x46800c], 0
jne 0x445f4d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x468008]
mov dword [ebp - 4], 0xfffffffe
jmp 0x445f69
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0044667c
ret
call fcn.00446568
jmp 0x445d88

Function at 0x44634f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x466598
call fcn.004468e8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4463af
cmp eax, 0xffffffff
je 0x4463af
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4463a8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4463a8
cmp edx, 0x10000000
jae 0x4463a8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4463a5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0044692d
ret 4
Function at 0x446410
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x44644e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x446446
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x446450
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x446436
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x446530
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x446546
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x446561
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x45bd92
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
jb 0x45bde5
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], 3
jmp 0x45beb0
push esi
mov esi, dword [ebx + 0x18]
mov ecx, esi
call dword [0x46a7c8]
mov ecx, dword [ebp - 0xc]
jmp 0x45be9a
cmp ecx, 0x61
jb 0x45be03
cmp ecx, 0x7a
jbe 0x45be80
lea eax, [ecx - 0x41]
cmp eax, 0x19
jbe 0x45be80
lea eax, [ecx - 0x30]
cmp eax, 9
jbe 0x45be80
cmp ecx, 0x2f
ja 0x45be49
cmp ecx, 0x28
jae 0x45be86
cmp ecx, 0xa
je 0x45be86
cmp ecx, 0xd
je 0x45be86
cmp ecx, 0x1f
jbe 0x45be67
cmp ecx, 0x21
jbe 0x45be86
cmp ecx, 0x22
jbe 0x45be67
cmp ecx, 0x25
jbe 0x45be86
cmp ecx, 0x27
jne 0x45be67
cmp dword [ebx + 0x24], 0xa
sete al
jmp 0x45be82
cmp ecx, 0x3a
jb 0x45be67
cmp ecx, 0x3b
jbe 0x45be86
cmp ecx, 0x3d
je 0x45be86
cmp ecx, 0x3e
jbe 0x45be67
cmp ecx, 0x40
jbe 0x45be86
cmp ecx, 0x5f
je 0x45be86
mov eax, dword [ebp - 0xc]
mov dword [edi], 0xc
sub eax, dword [ebx + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
xor eax, eax
jmp 0x45beaf
mov al, 1
test al, al
je 0x45be67
mov esi, dword [ebx + 0x18]
mov ecx, esi
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
call dword [0x46a7c8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call esi
mov ecx, eax
mov dword [ebp - 0x14], edx
cmp ecx, 0xffffffff
jne 0x45bdf9
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00445fe0
mov esp, ebp
pop ebp
ret
Function at 0x402acc
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.0040463c
test esi, esi
jne 0x402b02
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.0040472c
jmp 0x402b20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e0
mov edi, eax
test esi, esi
je 0x402b20
cmp dword [ebx], 0
je 0x402b20
dec esi
jmp 0x402b09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4036d8
Capabilities:
Query or enumerate registry value

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

Function at 0x40443c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47804c], 0
je 0x40449d
cmp word [0x478220], 0xd7b2
jne 0x404465
cmp dword [0x478228], 0
jbe 0x404465
mov eax, 0x47821c
call dword [0x478238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x476074
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 0x4044c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476034], 0
jne 0x4044b9
push 0
push 0x47606c
push 0x476074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4045b8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc