joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b730
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42b520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x46b880
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.0040a1b0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x40b805
cmp edi, 2
jge 0x40b805
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [0x46c64c]
test eax, eax
jne 0x40b7fc
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x40b7c8
lea eax, [ebx + 0xd]
jmp 0x40b7e8
push ebx
call dword [0x424070]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x427880
push esi
call dword [0x46c630]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40b7fc
push ecx
call dword [0x46c628]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x40b781
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fcc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422f18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42b520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42c598
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040a1b0
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42c5fc
push ecx
mov byte [ebp - 4], 1
call fcn.0040a1b0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406e80
add esp, 4
cmp eax, ebx
je 0x40fd51
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004069d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40fddd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40fddd
cmp dword [esi - 0xc], ebx
je 0x40fddd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40fddd
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040fc30
test eax, eax
jne 0x40fdc1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40fdc1
push esi
call dword [0x424070]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [0x46c630]
jmp 0x40fdc4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40fdd2
push edi
call dword [0x46c628]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40fd70
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [0x46c650]
test eax, eax
jne 0x4101ce
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41019d
cmp eax, 2
jne 0x4101b8
mov eax, dword [ebp - 4]
test esi, esi
je 0x4101c8
test eax, eax
je 0x4101c3
test al, 1
jne 0x4101b8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4101c8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x503b8c
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], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
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], 0x50408c
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 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
jmp 0x50a204

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x30001486
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 5
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 8]
mov edi, eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 0x64]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, 0x16
push edi
mov dword [ebp + 8], eax
call ebx
lea edi, [edi + eax*2 + 4]
mov dword [ebp - 4], edi
sub edi, dword [ebp + 0xc]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.MSVCRT.dll_memmove
add esp, 0xc
push dword [ebp - 4]
call ebx
mov ecx, dword [ebp - 4]
lea ebx, [ecx + eax*2 + 5]
mov eax, dword [ebp + 8]
push 0x32
add edi, eax
push edi
push 0xffffffffffffffff
push dword [ebp + 0x10]
and ebx, 0xfffffffc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esi, ebx
add esi, dword [ebp + 0xc]
lea eax, [edi + eax*2 + 3]
shr eax, 2
push esi
shl eax, 2
push ebx
push eax
call sub.MSVCRT.dll_memmove
mov eax, dword [ebp + 8]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x30001bcb
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, dword [esp + 0x14]
push ebp
push 0xb1
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
cmp dword [esp + 0x1c], 4
push ebp
jne 0x30001c16
push 0xb2
push edi
call esi
push eax
call ebx
push ebp
push 0xb3
push edi
call esi
push eax
call ebx
push ebp
push 0xb4
jmp 0x30001c59
cmp dword [esp + 0x20], 5
jne 0x30001c48
push 0xbe
push edi
call esi
push eax
call ebx
push ebp
push 0xbf
push edi
call esi
push eax
call ebx
push ebp
push 0xc0
push edi
call esi
push eax
call ebx
push ebp
push 0xc1
jmp 0x30001c59
push 0xc3
push edi
call esi
push eax
call ebx
push ebp
push 0xc4
push edi
call esi
push eax
call ebx
xor eax, eax
test ebp, ebp
sete al
push eax
push 0x71
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
xor eax, eax
cmp ebp, 5
sete al
push eax
push 0x70
push edi
call esi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 1
push 0
push 0xf4
push 0x71
push edi
call ebx
push 1
push 1
push 0xf4
push 0x70
push edi
call ebx
cmp ebp, 5
jne 0x30001ccf
mov eax, dword [esp + 0x1c]
push 1
push 0
push 0
push edi
mov dword [0x3000677c], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0x70
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x30001cd6
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push ebp
push 0xb9
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
test ebp, ebp
je 0x30001d0c
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ah, ah
cmp ax, 4
jae 0x30001d18
push ebp
push 0xde
push ebx
call esi
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x30001d52
push ebp
add eax, 0xb9
push eax
push ebx
call esi
push eax
call edi
mov eax, dword [esp + 0x1c]
dec eax
je 0x30001d4a
dec eax
je 0x30001d42
dec eax
jne 0x30001d79
push ebp
push 0xb1
jmp 0x30001d73
push ebp
push 0x9e
jmp 0x30001d73
push ebp
push 0x91
jmp 0x30001d73
push 0
push 0xba
push ebx
call esi
push eax
call edi
push 0
push 0xbb
push ebx
call esi
push eax
call edi
push 0
push 0xbc
push ebx
call esi
push eax
call edi
xor eax, eax
test ebp, ebp
sete al
mov ebp, eax
push ebp
push 0x6f
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
push ebp
push 0x71
push ebx
call esi
push eax
call edi
push ebp
push 0x72
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x300044f8
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x3000662c]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.300044f8
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x3000662c]
jne 0x300043e3
ret
Function at 0x30004505
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x30001358
call fcn.300047c4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30004545
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30004545
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x3000455d
cmp eax, 0x20b
je 0x3000454a
mov dword [ebp - 0x1c], ebx
jmp 0x30004571
cmp dword [ecx + 0x84], 0xe
jbe 0x30004545
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x3000456b
cmp dword [ecx + 0x74], 0xe
jbe 0x30004545
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x300067bc], 0xffffffff
or dword [0x300067c0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x300067b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x300067b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x300067b8], eax
call fcn.3000473c
call fcn.30004849
cmp dword [0x30006630], ebx
jne 0x300045d1
push 0x30004846
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.30004834
push 0x30006010
push 0x3000600c
call sub.MSVCRT.dll__initterm
push 0x30004780
call fcn.3000472a
mov eax, dword [0x300067ac]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x300067a8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30004625
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30006008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x300046a3
cmp al, bl
je 0x3000464f
cmp dword [ebp - 0x20], ebx
jne 0x300046a3
mov al, byte [esi]
cmp al, bl
je 0x3000465f
cmp al, 0x20
ja 0x3000465f
inc esi
mov dword [ebp - 0x24], esi
jmp 0x3000464f
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x3000467b
movzx eax, word [ebp - 0x54]
jmp 0x3000467e
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30003a02
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x3000469b
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x300046f8
cmp al, 0x22
jne 0x300046b2
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x300046c5
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x3000463d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.300047ff
ret
Function at 0xd841b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d84140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d84140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d84140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d84140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd84bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd84c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd9687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd84c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd84c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4051a8
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
test eax, eax
jle 0x4051e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x4051ea
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051f4
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
test eax, eax
jle 0x405215
mov al, byte [esp]
jmp 0x405217
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406978
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4069c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406914
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c7
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406bc8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c56
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c13
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x406c40
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c27
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x406c36
lea edx, [ebp - 4]
call fcn.00406a8c
test ebx, ebx
je 0x406c36
dec ebx
jmp 0x406c18
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c5d
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406c64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d7c
add esp, 0x104
pop ebx
ret
Function at 0x406dac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406ee4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e09
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
cmp dword [ebp - 0x10], 0
jne 0x406e1e
mov eax, dword [ebp - 8]
call fcn.00403150
mov bl, 1
jmp 0x406ece
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e2c
call fcn.00405820
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033d8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406dd2
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e7c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406e87
dec esi
test esi, esi
je 0x406e95
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406e86
cmp dword [ebp - 0xc], 7
jne 0x406ea0
test esi, esi
je 0x406ea0
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034a8
cmp dword [ebp - 0xc], 7
jne 0x406ec1
test esi, esi
je 0x406ec1
lea eax, [ebp - 0x14]
call fcn.004033d8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eeb
lea eax, [ebp - 0x14]
call fcn.00403150
ret

Function at 0x40782c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c558
mov eax, esi
mov edx, 8
test al, 1
je 0x407848
shr eax, 1
xor eax, 0xedb88320
jmp 0x40784a
shr eax, 1
dec edx
jne 0x40783b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407834
pop esi
ret

Function at 0x407860
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c554], 0
jne 0x407883
call fcn.0040782c
push 1
push 0x40c554
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4078ae
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407889
mov eax, ebx
pop edi
pop esi
pop ebx
ret