joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bf750
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cfae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x10], vtable.CFile.0
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
lea esi, [esp + 0x10]
mov dword [esp + 0x74], edi
call fcn.005ac630
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x5bf7a1
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x5bf7ec
lea esi, [esp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], vtable.CFile.0
call fcn.005ac630
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
add eax, edi
adc ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], eax
call fcn.005bf3a0
lea esi, [esp + 0x10]
mov bl, al
mov dword [esp + 0x10], vtable.CFile.0
call fcn.005ac630
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, reloc.advapi32.dll_GetTokenInformation
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40273a
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402d5d
push 0
push 0x405020
push 0x40501c
call fcn.00402d5d
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403402
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405a24]
test eax, eax
je 0x40341b
call eax
test eax, eax
jne 0x40341b
push 0xfffffffffffffffe
jmp 0x403435
push 1
push 0x405010
push 0x405008
call fcn.00402d5d
add esp, 0xc
test eax, eax
je 0x40343b
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402d5d
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x403461
mov esi, 0x404bad
mov cl, 0x20
jmp 0x40346a
cmp al, 0x20
ja 0x403474
inc esi
mov al, byte [esi]
test al, al
jne 0x403465
cmp al, 0x20
jbe 0x40348b
mov al, byte [esi]
cmp al, 0x22
jne 0x40347d
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x403476
jmp 0x40348b
cmp al, cl
ja 0x403491
inc esi
mov al, byte [esi]
test al, al
jne 0x403486
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x4034ba
movzx eax, word [ebp - 0x14]
jmp 0x4034bd
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040273a
pop ecx
pop esi
leave
ret

Function at 0x4034f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405371], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x405880
push 0x4058e8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403542
xor eax, eax
jmp 0x403559
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
Function at 0x404f10
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1024
call fcn.00414280
mov eax, dword [0x44e25c]
mov ecx, dword [0x44ce38]
shr eax, 3
test eax, eax
jbe 0x404fc9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x44e25c], 0x959
jne 0x404faf
lea eax, [esp + 0x18]
push eax
push 0x40341c
call esi
push 0
lea ecx, [esp + 0x438]
push ecx
push 0
push 0
push 0
push 0
call edi
push 0x403430
push 0
lea edx, [esp + 0x3c]
push edx
push 0x40345c
push 0x403474
call ebx
push 0
lea eax, [esp + 0x838]
push eax
push 0
push 0x403498
push 0
push 0
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00404d50
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x404f54
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1024
ret
Function at 0x409a06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4163d4]
jne 0x409a10
repz ret
jmp fcn.0040f70c

Function at 0x413b2b
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.0040ddb3
and dword [ebp - 4], 0
cmp dword [0x42d734], 0
mov ebx, eax
jne 0x413bdc
push 0x403374
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413c8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403368
push edi
call esi
test eax, eax
je 0x413c8d
push eax
call fcn.0040dd41
mov dword [esp], 0x403358
push edi
mov dword [0x42d734], eax
call esi
push eax
call fcn.0040dd41
mov dword [esp], 0x403344
push edi
mov dword [0x42d738], eax
call esi
push eax
call fcn.0040dd41
mov dword [esp], 0x403328
push edi
mov dword [0x42d73c], eax
call esi
push eax
call fcn.0040dd41
pop ecx
mov dword [0x42d744], eax
test eax, eax
je 0x413bdc
push 0x403310
push edi
call esi
push eax
call fcn.0040dd41
pop ecx
mov dword [0x42d740], eax
mov eax, dword [0x42d740]
cmp eax, ebx
je 0x413c34
cmp dword [0x42d744], ebx
je 0x413c34
push eax
call fcn.0040ddbc
push dword [0x42d744]
mov esi, eax
call fcn.0040ddbc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c34
test edi, edi
je 0x413c34
call esi
test eax, eax
je 0x413c2b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c2b
test byte [ebp - 0xc], 1
jne 0x413c34
or dword [ebp + 0x10], 0x200000
jmp 0x413c6d
mov eax, dword [0x42d738]
cmp eax, ebx
je 0x413c6d
push eax
call fcn.0040ddbc
pop ecx
test eax, eax
je 0x413c6d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413c6d
mov eax, dword [0x42d73c]
cmp eax, ebx
je 0x413c6d
push eax
call fcn.0040ddbc
pop ecx
test eax, eax
je 0x413c6d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d734]
call fcn.0040ddbc
pop ecx
test eax, eax
je 0x413c8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413c8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4017fa
mov eax, dword [esp + 0x3c]
mov dword [0x407150], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.00403000
mov dword [esp + 8], 0
mov edx, dword [0x407150]
push edx
push edx
push 0xff
call fcn.004032d0
lea eax, [esp + 0x14]
push eax
call fcn.00404b20
mov dword [esp + 0x14], 0xff
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x40]
call sub.ADVAPI32.dll_RegOpenKeyExW
and eax, eax
je 0x401898
mov edx, 0x406028
lea ecx, [esp + 0x10]
call fcn.00403008
jmp 0x401a04
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegQueryValueExW
and eax, eax
je 0x4018d0
mov edx, 0x406028
lea ecx, [esp + 0x10]
call fcn.00403008
jmp 0x4019fb
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 0x1c]
call fcn.004032d0
lea eax, [esp + 0x14]
push eax
call fcn.00404b20
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, dword [esp + 0xc]
cmp ebx, 7
jne 0x4019fb
mov edx, 0x406028
lea ecx, [esp + 0x20]
call fcn.00403008
mov edx, 0x406028
lea ecx, [esp + 0x24]
call fcn.00403008
mov ebx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x18]
jle 0x4019e0
mov edx, dword [0x407150]
push edx
push edx
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0x20]
push ebx
call fcn.00404210
lea eax, [esp + 0x24]
push eax
call fcn.00404b20
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 0x28]
call fcn.004033b0
add dword [0x407150], 2
mov edx, 0x406028
pop ecx
mov dword [0x407150], ecx
add ecx, dword [0x406aa4]
call fcn.00403090
jne 0x4019c5
mov edx, dword [esp + 0x24]
push dword [0x407150]
push edx
call fcn.00404ac0
mov edx, dword [esp + 0x24]
push edx
call fcn.00404ac0
mov edx, 0x40602a
push edx
call fcn.00404ac0
lea eax, [esp + 0x28]
push eax
call fcn.00404b20
mov ebx, dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.004033d0
add ebx, eax
add ebx, 2
mov dword [esp + 0x18], ebx
jmp 0x401935
mov edx, dword [0x407150]
push edx
push edx
push dword [esp + 0x2c]
call fcn.004034a0
lea eax, [esp + 0x14]
push eax
call fcn.00404b20
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x10]
push dword [0x407150]
push edx
call fcn.00404ac0
pop eax
add eax, dword [0x406aa4]
jmp 0x401a2d
push dword [esp + 0x20]
call fcn.00404ba0
push dword [esp + 0x10]
call fcn.00404ba0
push dword [esp]
call fcn.00404ba0
push dword [esp + 0x24]
call fcn.00404ba0
push dword [esp + 4]
call fcn.00404ba0
add esp, 0x28
pop ebx
ret 0xc
Function at 0x404062
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x40715c]
call fcn.004047eb
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x404162
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4040b8
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4040b0
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4040f8
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40413a
push 0x22
pop edx
cmp cx, dx
je 0x4040ea
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4040da
xor ecx, ecx
cmp word [eax], cx
je 0x40413a
mov ecx, eax
add eax, 2
jmp 0x40413c
test dx, dx
je 0x404142
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4040ea
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x404130
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40413a
cmp cx, dx
je 0x40412d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40411d
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x404102
jmp 0x4040ea
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x404144
xor edx, edx
cmp dword [ebp], ebx
jne 0x40414d
test edi, edi
jne 0x40416a
test edx, edx
je 0x404152
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4040a6
test edi, edi
jne 0x40417b
mov eax, ebx
jmp 0x40417f
test esi, esi
je 0x40417b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40417f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40466e
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4047b6
xor ecx, ecx
cmp word [eax], cx
je 0x4047b6
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4046c7
cmp eax, 3
jne 0x404701
cmp word [esp + 0xa], 0x3a
jne 0x404701
cmp eax, 2
jne 0x4046e5
lea eax, [esp + 8]
push 0x405020
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4047b6
push 0xfffffffffffffffe
pop edi
jmp 0x4047b6
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x404716
cmp ax, bx
jne 0x404720
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x404709
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40475f
test byte [esp + 0x21c], 0x10
je 0x404746
push 0xfffffffffffffffe
pop edi
jmp 0x404756
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4047b4
cmp word [esp + 0x10], bp
jne 0x40476d
cmp word [esp + 0x12], bp
je 0x40478c
cmp word [esp + 0x10], bx
jne 0x40477b
cmp word [esp + 0x12], bx
je 0x40478c
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4047b4
cmp word [esp + 0x12], ax
jne 0x4047b4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4047a1
test al, 0x10
je 0x4047b4
jmp 0x4047b1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4047b4
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4047c5
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x4047e5
cmp dword [esp + 8], 0
je 0x4047e5
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4047e7
xor eax, eax
ret 8
Function at 0x402975
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0x40298e
mov dl, byte [ebp + 0x10]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x402982
pop ebp
ret

Function at 0x402990
Capabilities:
Access peb ldr_data

Disassembly:
push esi
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
pop esi
ret

Function at 0x402a78
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x402ac0
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x402ab2
mov eax, dword [ebx]
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, edi
push eax
push dword [ebp + 8]
call fcn.004029be
add esp, 0x10
test eax, eax
je 0x402ac6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x402a96
xor eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x402ac2

Function at 0x402b6d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov ebx, 0x100
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, ebx
jl 0x402b82
xor esi, esi
xor edx, edx
mov eax, esi
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + esi*4 - 0x404]
movzx eax, byte [edx + eax]
add eax, dword [ecx]
add edi, eax
and edi, 0x800000ff
jns 0x402bb9
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ecx]
mov byte [ebp - 1], al
lea eax, [ebp + edi*4 - 0x404]
mov edx, dword [eax]
mov dword [ecx], edx
movzx ecx, byte [ebp - 1]
inc esi
mov dword [eax], ecx
cmp esi, ebx
jl 0x402b90
xor eax, eax
cmp dword [ebp + 0x10], eax
jbe 0x402c44
add esi, 0xf
and esi, 0x800000ff
jns 0x402bee
dec esi
or esi, 0xffffff00
inc esi
lea ecx, [ebp + esi*4 - 0x404]
mov edx, dword [ecx]
add edi, edx
and edi, 0x800000ff
jns 0x402c09
dec edi
or edi, 0xffffff00
inc edi
mov byte [ebp - 1], dl
lea edx, [ebp + edi*4 - 0x404]
mov ebx, dword [edx]
mov dword [ecx], ebx
movzx ebx, byte [ebp - 1]
mov dword [edx], ebx
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
add ecx, ebx
and ecx, 0x800000ff
jns 0x402c34
dec ecx
or ecx, 0xffffff00
inc ecx
mov cl, byte [ebp + ecx*4 - 0x404]
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jb 0x402bdb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4069db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040592f
and dword [ebp - 0x14], 0
cmp dword [0x40b4ac], 0
mov dword [ebp - 0x18], eax
jne 0x406a8e
push 0x401c98
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406b36
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x401c8c
push ebx
call edi
test eax, eax
je 0x406b36
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push 0x401c7c
push ebx
mov dword [0x40b4ac], eax
call edi
push eax
call esi
push 0x401c68
push ebx
mov dword [0x40b4b0], eax
call edi
push eax
call esi
push 0x401c4c
push ebx
mov dword [0x40b4b4], eax
call edi
push eax
call esi
mov dword [0x40b4bc], eax
test eax, eax
je 0x406a8e
push 0x401c34
push ebx
call edi
push eax
call esi
mov dword [0x40b4b8], eax
mov eax, dword [0x40b4b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x406ae7
cmp dword [0x40b4bc], ecx
je 0x406ae7
push eax
call esi
push dword [0x40b4bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406ae7
test ebx, ebx
je 0x406ae7
call edi
test eax, eax
je 0x406ade
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ade
test byte [ebp - 8], 1
jne 0x406ae7
or dword [ebp + 0x10], 0x200000
jmp 0x406b1a
mov eax, dword [0x40b4b0]
cmp eax, dword [ebp - 0x18]
je 0x406b1a
push eax
call esi
test eax, eax
je 0x406b1a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406b1a
mov eax, dword [0x40b4b4]
cmp eax, dword [ebp - 0x18]
je 0x406b1a
push eax
call esi
test eax, eax
je 0x406b1a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b4ac]
call esi
test eax, eax
je 0x406b36
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406b38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406d46
leave
ret

Function at 0x406d46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a310]
jne 0x406d50
repz ret
jmp fcn.00407f35
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7afa0e7a
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x68f7c80
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100352e
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100b93c]
test eax, eax
je 0x100353e
push eax
call dword [fcn.01001020]
push 0x100b960
call fcn.01002d6f
push dword [esp + 4]
push 0x1001450
push 1
call fcn.01003044
add esp, 0xc
push dword [esp + 4]
call fcn.01004ca5
int3