joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466d0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x466d14
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4a0f30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a0f54
mov eax, dword [ebp - 4]
jmp 0x4a0f57
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a143c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1511
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a152c
push ebx
push 0x4a153c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087a4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405864
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a14bc
mov al, 0x72
call fcn.004a1064
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a1410
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call fcn.0040e728
cmp eax, 1
je 0x4a14c5
call fcn.004a1410
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1518
lea eax, [ebp - 4]
call fcn.004079f4
ret
Function at 0x43a47b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a630]
jne 0x43a485
repz ret
jmp fcn.004446e5

Function at 0x446019
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x44603f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
invalid
inc ebp

Function at 0x446160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x44616a
call fcn.00445d16
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00445d61
push eax
push esi
push dword [ebp + 8]
call fcn.00445d16
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00445d51
and dl, bl
adc eax, 0x7c9d8896
invalid
invalid

Function at 0x446212
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x446292
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
Function at 0x446578
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fiadd dword [eax - 0x3505b]
inc dword [eax]
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00445d61
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00445d16
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00445d61
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00445d16
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
test eax, 0xfc1985c6
invalid
dec dword [ebx - 0x3e57a3a]
invalid
call [edx - 0x3e47a3a]
invalid
jmp dword [ebx - 0x3e37a3a]
invalid
inc dword [ecx - 0x3e27a3a]
invalid
dec dword [edx - 0x3e17a3a]
invalid
call [ebx - 0x3e07a3a]
invalid
inc dword [edx - 0x3df7a3a]
invalid
dec dword [ebx - 0x3de7a3a]
invalid
jmp dword [esi - 0x3dd7a3a]
invalid
dec dword [edi - 0x3dc7a3a]
test dword [ebx], esp
cld
invalid
inc dword [eax - 0x3db7a3a]
invalid
dec dword [edx - 0x3da7a3a]
invalid
inc dword [edx - 0x3d97a3a]
invalid
dec dword [ebx - 0x3d87a3a]
invalid
jmp [edi - 0x3d77a3a]
invalid
invalid
out dx, al
lea eax, [ebp - 0x3ec]
push eax
call fcn.00445d61
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
cmc
invalid
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a5e4008], 0x8088405
inc edx
mov dword [ebx + 0x4a5e4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4a505eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add ebx, 0xc
mov ebx, dword [ebx]
test edi, edi
je 0x4a505ed1
mov eax, dword [ebx + 0x28]
mov dword [edi], eax
test esi, esi
je 0x4a505ee4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.4a505e7a
cmp eax, esi
jne 0x4a505ec6
mov eax, dword [ebx + 0x18]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4a505f76
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov edi, dword [ebx + eax + 0x78]
add edi, ebx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
je 0x4a505f74
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ecx + esi*4]
add eax, ebx
mov dword [esp], eax
call fcn.4a505eef
test al, al
je 0x4a505f71
lea edx, [esi + esi]
add edx, ebx
add edx, dword [edi + 0x24]
movzx eax, word [edx]
lea eax, [ebx + eax*4]
add eax, dword [edi + 0x1c]
add ebx, dword [eax]
jmp 0x4a505f76
inc esi
jmp 0x4a505f3c
xor ebx, ebx
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a505f80
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x4a5e5f9a]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.4a505eab
mov dword [esp], 0
mov esi, eax
mov eax, dword [0x4a5e5f8e]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_LocalAlloc]
push ebx
push ebx
mov ebx, eax
mov eax, dword [0x4a5e5f8e]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.4a505e1f
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov ecx, dword [str.outback.mp3]
xor eax, eax
sub esp, 0xc
cmp word [ebx + eax*2], 0
je 0x4a505ff9
inc eax
jmp 0x4a505fef
cmp word [ebx + eax*2 - 2], 0x5c
je 0x4a50600a
mov word [ebx + eax*2], 0
dec eax
jmp 0x4a505ff9
sub ecx, eax
movsx dx, byte [ecx + eax]
test dl, dl
je 0x4a50601c
mov word [ebx + eax*2], dx
inc eax
jmp 0x4a50600c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
jne 0x4a50606c
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4a5e5fbe]
push ecx
push ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
sub esp, 0x10
mov ebx, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4a50605f
mov eax, dword [ebp - 0x2c]
xor edx, edx
add eax, ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4a5e5f8a]
add eax, ebx
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
cmp edx, ebx
je 0x4a5060ff
add dword [eax + edx*4 + 8], ecx
inc edx
jmp 0x4a5060f4
mov ebx, dword [0x4a5e5fba]
mov dword [esp], esi
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
call fcn.4a505f13
mov edi, eax

Function at 0x4a506118
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]
test eax, eax
je 0x4a50605f
movsx eax, byte [ebx]
mov dword [esp], esi
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
call fcn.4a505f13
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4a50605f
movsx eax, byte [ebx]
add ebx, eax
lea eax, [ebx + 1]
mov dword [esp], eax
call edi
push edx
test eax, eax
je 0x4a50605f
movsx ecx, byte [ebx]
mov dword [ebp - 0x28], 0
mov edi, dword [0x4a5e5fd6]
mov edx, dword [ebp - 0x48]
Function at 0x4a50643c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.4a5066d8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4a5065c6
test edi, edi
je 0x4a5065c6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4a506506
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4a5064e1
cmp edi, 0xffffffff
je 0x4a5064a1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4a5064a1
mov byte [esp], 0
jmp 0x4a5065c6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4a5064e1
test ebx, ebx
jne 0x4a5064d3
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4a5064d3
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4a5065c6
lea eax, [esp + 0xc]
call fcn.4a5061d0
dec ebp
test ebp, ebp
jg 0x4a506486
cmp edi, 0xffffffff
je 0x4a506506
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4a506504
mov byte [esp], 0
jmp 0x4a5065c6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4a50644a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4a506506
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.4a506634
mov edx, eax
mov ebx, dword [0x4a5ee8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4a50656a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4a506568
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4a50656a
xor edi, edi
cmp byte [esp], 0
je 0x4a506590
mov ebx, dword [esi]
test bl, 1
jne 0x4a5065a6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4a506570
mov byte [esp + 1], 1
jmp 0x4a5065a6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4a506590
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4a50651d
cmp byte [esp], 0
je 0x4a5065c6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a506fdc
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4a5f0b14
cmp dword [ebp + 0xc], 2
jl 0x4a506ff0
mov ebx, 0x4a5f0b44
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4a507028
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4a502b80
mov dword [0x4a5ee01c], eax
mov eax, 0x4a502b88
mov dword [0x4a5ee020], eax
mov eax, ebx
call fcn.4a506ec0
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4a50705d
cmp al, 3
jge 0x4a50705d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4a50706e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4a507079
call dword [ecx + eax*4]
cmp dword [0x4a5ee03c], 0
jne 0x4a50708f
mov byte [0x4a5ee044], 1
fnstcw word [0x4a5e4028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.4a507320
call fcn.4a506f70
ret 4

Function at 0x4a507288
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a5ee054], 0
je 0x4a5072ef
cmp word [0x4a5ee340], 0xd7b2
jne 0x4a5072b1
cmp dword [0x4a5ee348], 0
jbe 0x4a5072b1
mov eax, 0x4a5ee33c
call dword [0x4a5ee358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4a50731c
call fcn.4a507f78
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a5e4032], 0
jne 0x4a50730b
push 0
push 0x4a5e49c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x1000d3b0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1000d474
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1002d34c], eax
call fcn.1000e580
test eax, eax
jne 0x1000d3d4
ret 0xc
mov ecx, dword [0x1002d34c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x1002d358], edx
mov dword [0x1002d354], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x1002d350], eax
mov dword [0x1002d34c], ecx
call fcn.1000d720
test eax, eax
jne 0x1000d416
call fcn.1000e5c0
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100471d0], eax
call fcn.1000e420
mov ecx, dword [0x100471d0]
mov dword [0x1002d338], eax
test ecx, ecx
je 0x1000d465
test eax, eax
je 0x1000d465
call fcn.1004ff4e
call fcn.1000e410
call fcn.1004ff4e
call fcn.1000db70
call fcn.1000d5c0
mov eax, dword [0x1002d334]
inc eax
mov dword [0x1002d334], eax
mov eax, 1
ret 0xc
call fcn.1000d780
call fcn.1000e5c0
xor eax, eax
ret 0xc
test eax, eax
jne 0x1000d4b4
mov eax, dword [0x1002d334]
test eax, eax
jle 0x1000d4af
mov ecx, eax
mov eax, dword [0x1002d384]
dec ecx
test eax, eax
mov dword [0x1002d334], ecx
jne 0x1000d498
call fcn.1000d610
call fcn.1000db10
call fcn.1000d780
call fcn.1000e5c0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1000d4c3
push 0
call fcn.1000d850
add esp, 4
mov eax, 1
ret 0xc

Function at 0x1000d620
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.1000d6e0
mov eax, dword [0x1002d388]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1000d644
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1002d384], 1
mov byte [0x1002d380], bl
jne 0x1000d69e
mov ecx, dword [0x100471c8]
test ecx, ecx
je 0x1000d68c
mov esi, dword [0x100471c4]
sub esi, 4
cmp esi, ecx
jb 0x1000d68c
mov eax, dword [esi]
test eax, eax
je 0x1000d685
call eax
mov ecx, dword [0x100471c8]
sub esi, 4
cmp esi, ecx
jae 0x1000d677
push 0x1001501c
push 0x10015014
call fcn.1000d700
add esp, 8
push 0x10015024
push 0x10015020
call fcn.1000d700
add esp, 8
test ebx, ebx
je 0x1000d6bd
call fcn.1000d6f0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x1002d388], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000d720
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1000e820
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1001695c], eax
je 0x1000d778
push 0x74
push 1
call fcn.1000ea50
mov esi, eax
add esp, 8
test esi, esi
je 0x1000d778
mov eax, dword [0x1001695c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000d778
push esi
call fcn.1000d7b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1004a488
Capabilities:
Encode data using xor

Disassembly:
call 0x1004a401
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 0x1004a431
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 0x1004a44d
xor edx, 0
jmp 0x1004a458
xor edx, edx
jmp 0x1004a46f
jmp 0x1004a47b
xor eax, eax
push 0x8427d7c0
call 0x1004a488
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1004a4c4
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 0x1004a49d
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 0x1004a4db
add eax, 0
jno 0x1004a4e0
add esi, 0
ret 0x10

Function at 0x1004b249
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1004b26b
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1004b40d
cmp edi, dword [ebp + 0x10]
jb 0x1004b40d
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1004ad35
inc edi
jmp 0x1004b2f4
jmp 0x1004b301
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004ad35
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004ad35
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1004b355
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1004b339
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1004b383
add dword [eax], 0x39
jle 0x1004b35f
sub al, 0xf5
mov ch, al
call fcn.1004b398
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10