joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a64
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.00404074
test esi, esi
jne 0x402a9a
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.00404164
jmp 0x402ab8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402ab8
cmp dword [ebx], 0
je 0x402ab8
dec esi
jmp 0x402aa1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403178
Capabilities:
Query or enumerate registry value

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

Function at 0x403ef8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44e048], 0
je 0x403f59
cmp word [0x44e21c], 0xd7b2
jne 0x403f21
cmp dword [0x44e224], 0
jbe 0x403f21
mov eax, 0x44e218
call dword [0x44e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44c06c
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 0x403f80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44c030], 0
jne 0x403f75
push 0
push 0x44c064
push 0x44c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060c8
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 0x40612e
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.004042e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d3c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406118
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406135
lea eax, [ebp - 0x10]
call fcn.00404074
ret

Function at 0x40b0d8
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 0x40b111
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404164
jmp 0x40b11a
mov eax, ebx
mov edx, esi
call fcn.004040c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b124
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 0x40b145
mov al, byte [esp]
jmp 0x40b147
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b644
mov eax, dword [0x44d4b4]
cmp byte [eax], 0
je 0x40b848
mov eax, dword [0x44d304]
call fcn.00402b88
call fcn.00402844
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.00408420
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 0x40b890
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b87e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44d2b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44e664]
call fcn.004055dc
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 0x40c52c
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 0x40c590
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.004042e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407efc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c597
lea eax, [ebp - 0xc]
call fcn.00404074
ret

Function at 0x44b514
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.00404334
mov edx, eax
mov eax, ebp
call fcn.00404664
mov eax, edi
call fcn.00404334
mov esi, eax
test esi, esi
jle 0x44b567
mov ebx, 1
mov eax, ebp
call fcn.0040458c
lea eax, [eax + ebx - 1]
push eax
mov eax, ebx
mov ecx, 5
cdq
idiv ecx
mov al, byte [edx + 0x44d1f0]
mov dl, byte [edi + ebx - 1]
xor al, dl
pop edx
mov byte [edx], al
inc ebx
dec esi
jne 0x44b53e
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403cf0
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x118
lea ecx, [esp + 4]
push edi
push eax
push str.Explorer.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push str.Shell
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x118
ret

Function at 0x10905
Capabilities:
Encrypt data using rc4 prga
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10884]
test eax, eax
mov ecx, 0xbb40
je 0x1091c
cmp eax, ecx
jne 0x1093f
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10884
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10884], eax
jne 0x1093f
mov eax, ecx
mov dword [0x10884], eax
not eax
mov dword [section..data], eax
pop ebp
jmp 0x105c0
Function at 0x473769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x477190
cmp edx, dword [eax]
je 0x47378b
add eax, 8
inc ecx
cmp eax, 0x477220
jl 0x47377c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x477190]
jne 0x4738b9
mov eax, dword [0x477bb0]
cmp eax, 1
je 0x473893
test eax, eax
jne 0x4737bc
cmp dword [0x4770e4], 1
je 0x473893
cmp edx, 0xfc
je 0x4738b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4737f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00474670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00474490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x473836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00474490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47645c
push edi
call fcn.00474f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00474670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00474680
lea eax, [ebp - 0xa0]
push 0x47643c
push eax
call fcn.00474680
push dword [esi + 0x477194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00474680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00474e75
add esp, 0x2c
pop edi
jmp 0x4738b9
lea eax, [ebp + 8]
lea esi, [esi + 0x477194]
push 0
push eax
push dword [esi]
call fcn.00474490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x36af37ba
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x55e61a27
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7898729c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6b236167
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x1099fef4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1099fefe
pushal
call 0x1099ff04
pop ebp
sub ebp, 0x10
sub ebp, 0x99fef4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x1099ff28
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1099ff31
mov eax, 0x99fef4
add eax, ebp
add eax, 0x63
mov ecx, 0x5ce
mov edx, 0xa53bc7ab
xor byte [eax], dl
inc eax
dec ecx
jne 0x1099ff48
jmp 0x1099ff5b
and byte [esi + 0x20], ah
and dl, byte [edi + 0x2aababab]
push 0x53
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test al, 0x66
adc ebp, dword [ebx + ebp*4 - 0x7cee5455]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop esp
dec ecx
test al, 0x63
and byte [edx], ch
cmpsd dword [esi], dword es:[edi]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test al, 0x6e
iretd
Function at 0x402280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402299
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4022d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4022d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4022d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4022c0
cmp esi, eax
jb 0x4022da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403f80
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4374bb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x447614]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x447614]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
call dword [0x4489bc]
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.00422000
add esp, 0xc
lea esi, [esp + 0xc]
call fcn.004033b0
push 0x208
lea ecx, [esp + 0x14]
push ecx
push 0x43dd34
mov dword [esp + 0x230], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404010
mov edx, dword [0x43dd3c]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x404030
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404030
mov ecx, 8
mov esi, 0x43dd40
push 2
rep movsd dword es:[edi], dword [esi]
push 0x43df50
lea ecx, [esp + 0x14]
call fcn.00402f40
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x43df58
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40409e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041f304
add esp, 0x21c
ret
Function at 0x406ba4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x406bea
call fcn.00405a16
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406bea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x406c2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406c16
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406c16
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406c2a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40fd80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40fdc3
call fcn.00405a16
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fdc3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fdde
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f93a
test ebx, ebx
mov esi, eax
je 0x40fddc
test edi, edi
je 0x40fddc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4106e9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x410717
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410735
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00410653
jmp 0x410735
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410735
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00410653
test edi, edi
mov eax, edi
jne 0x41071f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x6dea80]
test ecx, ecx
je 0x4107f8
jmp 0x4106e8
ret 8

Function at 0x41f304
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447614]
jne 0x41f30e
repz ret
jmp fcn.00425b0f
Function at 0x42f7c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004254f6
xor ebx, ebx
cmp dword [0x6df894], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42f89a
push 0x43c174
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42f805
xor eax, eax
jmp 0x42f95e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43c168
push edi
call esi
cmp eax, ebx
je 0x42f7fe
push eax
call fcn.00425493
mov dword [esp], 0x43c158
push edi
mov dword [0x6df894], eax
call esi
push eax
call fcn.00425493
mov dword [esp], 0x43c144
push edi
mov dword [0x6df898], eax
call esi
push eax
call fcn.00425493
mov dword [0x6df89c], eax
lea eax, [ebp - 8]
push eax
call fcn.00421100
test eax, eax
pop ecx
pop ecx
je 0x42f868
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041fd06
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42f89a
push 0x43c128
push edi
call esi
push eax
call fcn.00425493
cmp eax, ebx
pop ecx
mov dword [0x6df8a4], eax
je 0x42f89a
push 0x43c110
push edi
call esi
push eax
call fcn.00425493
pop ecx
mov dword [0x6df8a0], eax
mov eax, dword [0x6df8a0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42f913
cmp dword [0x6df8a4], esi
je 0x42f913
push eax
call fcn.004254ff
pop ecx
call eax
cmp eax, ebx
je 0x42f8e0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x6df8a4]
call fcn.004254ff
pop ecx
call eax
test eax, eax
je 0x42f8e0
test byte [ebp - 0x18], 1
jne 0x42f913
lea eax, [ebp - 0xc]
push eax
call fcn.00421137
test eax, eax
pop ecx
je 0x42f8fb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041fd06
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42f90a
or dword [ebp + 0x10], 0x200000
jmp 0x42f944
or dword [ebp + 0x10], 0x40000
jmp 0x42f944
mov eax, dword [0x6df898]
cmp eax, esi
je 0x42f944
push eax
call fcn.004254ff
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42f944
mov eax, dword [0x6df89c]
cmp eax, esi
je 0x42f944
push dword [ebp - 4]
push eax
call fcn.004254ff
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x6df894]
call fcn.004254ff
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435b66
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x447614]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00435afb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00422000
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x435bb5
cmp dword [ebp - 0x1c], 5
jb 0x435bcd
jmp 0x435bc9
cmp dword [ebp - 0x10], 1
jne 0x435bcd
cmp dword [ebp - 0x1c], 4
ja 0x435bc9
jne 0x435bcd
cmp dword [ebp - 0x18], 0
jbe 0x435bcd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43da38
call fcn.004359cf
test eax, eax
jge 0x435bee
mov byte [0x6dfa2c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f304
add ebp, 0x78
leave
ret
Function at 0x406da0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49060b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048553a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406e22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048344c
mov eax, dword [eax]
push 0x119ac50
push eax
call fcn.00475694
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004857c5
test bl, bl
je 0x406e22
push 0x119ac50
lea ecx, [esp + 0xc]
call fcn.00485b55
push 0x119ac5c
lea ecx, [esp + 0xc]
call fcn.00485b55
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x406e5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004857c5
jmp 0x406f29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x406ee2
lea edx, [esp + 0x7c]
push 0x119ac58
push edx
call fcn.00475694
add esp, 8
test eax, eax
je 0x406ee2
lea eax, [esp + 0x7c]
push 0x119ac54
push eax
call fcn.00475694
add esp, 8
test eax, eax
je 0x406ee2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406e72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004857c5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407720
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407782
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc