joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43933c]
jne 0x404e54
repz ret
jmp fcn.00408c42

Function at 0x40b6dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004068a4
and dword [ebp - 4], 0
cmp dword [0x43ac50], 0
mov ebx, eax
jne 0x40b78d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b83e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b83e
push eax
call fcn.00406832
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ac50], eax
call esi
push eax
call fcn.00406832
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ac54], eax
call esi
push eax
call fcn.00406832
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ac58], eax
call esi
push eax
call fcn.00406832
pop ecx
mov dword [0x43ac60], eax
test eax, eax
je 0x40b78d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406832
pop ecx
mov dword [0x43ac5c], eax
mov eax, dword [0x43ac5c]
cmp eax, ebx
je 0x40b7e5
cmp dword [0x43ac60], ebx
je 0x40b7e5
push eax
call fcn.004068ad
push dword [0x43ac60]
mov esi, eax
call fcn.004068ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b7e5
test edi, edi
je 0x40b7e5
call esi
test eax, eax
je 0x40b7dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b7dc
test byte [ebp - 0xc], 1
jne 0x40b7e5
or dword [ebp + 0x10], 0x200000
jmp 0x40b81e
mov eax, dword [0x43ac54]
cmp eax, ebx
je 0x40b81e
push eax
call fcn.004068ad
pop ecx
test eax, eax
je 0x40b81e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b81e
mov eax, dword [0x43ac58]
cmp eax, ebx
je 0x40b81e
push eax
call fcn.004068ad
pop ecx
test eax, eax
je 0x40b81e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ac50]
call fcn.004068ad
pop ecx
test eax, eax
je 0x40b83e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b840
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul ebx
bswap eax
neg eax
bswap ebx
inc edx
dec eax
and edx, 0xa6
or edx, 0xed
neg ebx
imul esi
ror esi, 0x21
mov eax, 0xc
not edx
sbb ebx, 0x65
dec eax
add eax, 0x83
rcr esi, 0xec
sub eax, 0x77
neg edx
rcl esi, 0x8a
imul edx
inc edi
mov edx, 0x68
not edx
add edi, 0xc7
inc esi
sbb edi, 0xc1
and esi, 0x4c
neg esi
rcl esi, 0x44
not edx
dec ebx
inc eax
ror ebx, 0xee
sbb ebx, 0xbb
sub edx, 0xe
or ebx, 0x8b
add esi, 0x95
ror edi, 0x1f
add edi, 0x2d
add ebx, 0xb8
or eax, 0xbf
ror edi, 0x9e
ror esi, 0x26
bswap edi
imul esi
inc edi
rol edx, 0x1a
imul ebx
imul edi
xor ecx, ecx
xor edi, edi
and edx, 0x67
and edi, 9
not eax
neg esi
inc eax
dec edx
rcl edi, 0xa6
imul esi
ror edi, 0xe9
and edi, 0x1a
rcr eax, 0xd2
dec esi
ror eax, 0xfb
and ebx, 0xed
ror eax, 0x52
bswap ebx
neg eax
bswap edx
not esi
not esi
inc esi
ror edx, 0x41
rol edx, 0xef
mov esi, 0xa0
rol ebx, 0x62
sub ebx, 0x82
inc esi
bswap ebx
bswap esi
or eax, 0x39
sub eax, 0x84
bswap edi
imul edx
not esi
imul esi
imul edx
imul ebx
not eax
dec esi
inc ebx
inc esi
rol edx, 0x10
imul edi
neg esi
not edx
or ebx, 0xc9
or esi, 0xee
rcl edi, 0x32
bswap eax
neg edi
mov ecx, dword [ebp + 0xc]
bswap edi
rcl edi, 0x1c
imul edi
not edx
or eax, 0x12
inc ebx
not edi
rol edi, 0x2c
bswap ebx
rol ebx, 0xc6
bswap edx
neg esi
mov esi, 0x4e
ror ebx, 0x79
sub edx, 0xc5
ror edx, 0x4d
dec edx
inc edx
not esi
ror esi, 0x9e
ror edx, 0xca
ror ebx, 0xe4
sub esi, 0x7b
mov edi, 0xd8
bswap edi
dec eax
and ebx, 0xb0
sub edi, 0x1a
and edx, 0xa1
rcr ebx, 0x1c
and ebx, 0xab
and edi, 0xbe
sub edi, 0x6f
or ebx, 0xc1
not ebx
imul edi
rcr edi, 0x6c
or ebx, 0x6f
imul edi
or ebx, 0xdf
rcr edi, 0x35
sub esi, 8
imul esi
bswap esi
or eax, 0x73
and eax, 0x67
imul edi
sub ebx, 0xb2
dec ebx
mov eax, 0x24
mov edi, dword [ebp + 8]
mov eax, esi
mov ebx, ebx
xor eax, ebx
not byte [edi]
xor esi, ebx
xor eax, eax
mov ebx, ebx
mov eax, ebx
mov esi, ebx
xor eax, esi
xor ebx, eax
mov eax, ebx
mov ebx, eax
add byte [edi], 0x26
xor esi, eax
mov esi, esi
mov eax, esi
xor esi, esi
xor esi, eax
xor esi, esi
mov ebx, eax
mov ebx, esi
xor eax, ebx
sub byte [edi], 0x86
xor esi, esi
xor esi, ebx
mov eax, ebx
mov eax, eax
xor esi, ebx
mov ebx, eax
xor esi, esi
mov esi, ebx
xor esi, eax
imul byte [edi]
inc edi
loop 0x40f3e7
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401474
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4014ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401474
mov dword [esp], 0x4015c8
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202a
sub eax, 0x4015c8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401591
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.0040137a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013df
lea eax, [ebx + 0x1b800]
mov ecx, 0x40300c
or eax, ebx
or ecx, 1
xor edx, edx
mov dword [esp + 4], eax
mov eax, ebx
div ecx
mov dword [esp + 8], esi
add eax, 0x40300c
mov dword [esp], eax
call fcn.00401d2d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5e341457
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x410d2c84
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
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
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401060
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x4010d0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401120
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x401120
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call fcn.00401110
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4011af
cmp al, 9
je 0x4011a0
cmp al, 0x20
je 0x4011a0
xor esi, esi
mov dword [ebp - 0x6c], 0
lea esi, [esi]
cmp al, 0x5c
je 0x401208
cmp al, 0x22
je 0x401218
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x4011af
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x401160
test esi, 1
jne 0x401160
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x4011a0
cmp al, 0x20
je 0x4011a0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4011ca
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401000
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x401177
and dword [ebp - 0x6c], 1
jne 0x401170
xor esi, 1
jmp 0x401177

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

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

Disassembly:
jmp 0x40c040
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c0f5
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push 0
push 0
call ebp
add byte [edi + ebx], 0x28
push 0
push 0
call ebp
add byte [edi + ebx], 0xca
push 0
push 0
call ebp
add byte [edi + ebx], 0x63
push 0
push 0
call ebp
xor byte [edi + ebx], 0x93
push 0
push 0
call ebp
add byte [edi + ebx], 0xaf
push 0
push 0
call ebp
add byte [edi + ebx], 0x44
push 0
push 0
call ebp
add byte [edi + ebx], 0xe9
push 0
push 0
call ebp
xor byte [edi + ebx], 0x30
push 0
push 0
call ebp
add byte [edi + ebx], 0x2d
push 0
push 0
call ebp
add byte [edi + ebx], 0xbc
push 0
push 0
call ebp
xor byte [edi + ebx], 0xc0
push 0
push 0
call ebp
add byte [edi + ebx], 0x4c
push 0
push 0
call ebp
xor byte [edi + ebx], 0xa
push 0
push 0
call ebp
add byte [edi + ebx], 0xcb
inc ebx
cmp esi, ebx
jne 0x40c060
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c100
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebx, eax
jb 0x40c118
mov ebx, dword [eax]
mov esi, dword [esp + 0x40]
xor esi, edi
cmp edi, 4
jae 0x40c127
mov ecx, edi
jmp 0x40c195
mov dword [esp + 0x24], edi
shr edi, 2
xor ebp, ebp
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_ArcTo]
sub esp, 0x24
mov dword [esp + 4], str.Z81xbyuAua
mov dword [esp], 0x4d4860
call fcn.00402d5b
mov dword [esp], eax
call fcn.004060eb
imul eax, dword [ebx + ebp*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebp
cmp edi, ebp
jne 0x40c130
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x24]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40c1be
cmp ecx, 2
je 0x40c1b4
cmp ecx, 3
jne 0x40c1cc
movsx eax, byte [ebx + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebx + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebx + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x453cc3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453cd4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x4014e5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7a24f0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40157a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401537
cmp dword [ebp + 0x10], ebx
jne 0x40156e
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.004014e5
test eax, eax
jne 0x401549
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40151e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058b0
cmp eax, ebx
je 0x401581
push ebx
push dword [0x7a24f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40157a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a24f0], ebx
jne 0x401577
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401577
jmp 0x40157a
Function at 0x402d83
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x79d5c0]
sub esi, dword [0x79d5cc]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x7a2460], eax
cmp esi, ebx
jle 0x402ee1
push dword [0x79d5c8]
call fcn.00402d6c
push ebx
push ebx
push dword [0x79d5cc]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x7915bc], esi
mov dword [0x40acf4], ebx
mov ebp, 0x7915c0
mov eax, dword [0x79d5c4]
sub eax, dword [0x79d5c8]
mov edi, 0x4000
cmp eax, edi
jg 0x402df8
mov edi, eax
push edi
mov esi, 0x7995c0
push esi
call fcn.00402d3a
test eax, eax
je 0x402ef3
add dword [0x79d5c8], edi
mov dword [0x412cf8], esi
mov dword [0x412cfc], edi
cmp dword [0x7a240c], ebx
je 0x402e4f
cmp dword [0x7a24e0], ebx
jne 0x402e4f
mov eax, dword [0x7915bc]
sub eax, dword [0x79d5c0]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x79d5cc]
mov dword [0x40acf4], eax
call fcn.00402c9b
pop ecx
push 0x412cf8
mov dword [0x412d00], ebp
mov dword [0x412d04], 0x8000
call fcn.004061b8
test eax, eax
js 0x402ef8
mov esi, dword [0x412d00]
sub esi, ebp
je 0x402ead
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402efd
cmp esi, dword [esp + 0x10]
jne 0x402efd
add dword [0x79d5cc], esi
cmp dword [0x412cfc], ebx
jne 0x402e1e
jmp 0x402eb9
cmp dword [0x412cfc], ebx
jne 0x402ef8
cmp edi, ebx
je 0x402ef8
mov eax, dword [0x79d5c0]
mov ecx, eax
sub ecx, dword [0x79d5cc]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de2
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c9b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402eeb
push 0xfffffffffffffffd
pop eax
jmp 0x402eeb
push 0xfffffffffffffffe
jmp 0x402efa
Function at 0x402f01
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f2b
add eax, dword [0x7a2458]
push edi
push edi
push eax
push dword [0x409014]
mov dword [0x79d5c0], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d83
cmp eax, edi
jl 0x403024
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403020
cmp dword [ebp - 4], esi
jne 0x403020
push dword [ebp + 8]
add dword [0x79d5c0], esi
call fcn.00402d83
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403023
cmp dword [ebp + 0x10], edi
jne 0x402fef
cmp dword [ebp + 8], edi
jle 0x40301b
mov esi, 0x7995c0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402f9f
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403020
cmp edi, dword [ebp - 4]
jne 0x403020
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402feb
cmp dword [ebp + 0x14], edi
jne 0x402feb
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x79d5c0], eax
cmp dword [ebp + 8], 0
jg 0x402f92
jmp 0x40301b
push 0xfffffffffffffffe
jmp 0x403022
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402ffa
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403020
mov eax, dword [ebp - 4]
add dword [0x79d5c0], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403023
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40549c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x79fa10
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x79fa10], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054d7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40561e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40563b
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40563e
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40566d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056b1
test edi, edi
jne 0x405678
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056ab

Function at 0x4056b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405726
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405715
cmp dword [ebp + 0x14], 1
je 0x405717
cmp dword [ebp + 0x14], 2
je 0x405717
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40596d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x79fa58
push esi
call fcn.004057cc
push esi
call fcn.004055a7
mov edi, eax
test edi, edi
jne 0x40598e
xor eax, eax
jmp 0x4059e6
push edi
call fcn.004057ee
test byte [0x7a2468], 0x80
je 0x4059a7
mov al, byte [edi]
test al, al
je 0x40598a
cmp al, 0x5c
je 0x40598a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059c7
push esi
call fcn.00405889
test eax, eax
je 0x4059c1
test byte [eax], 0x10
je 0x4059eb
push esi
call fcn.00405946
push esi
call ebx
cmp eax, edi
jg 0x4059b2
push esi
call fcn.00405919
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059e5