joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40837d
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push esi
push 0x40821c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x423a64], eax
pop esi
jne 0x4083a6
push dword [0x423a60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
ret

Function at 0x40884a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421130]
jne 0x408854
repz ret
jmp 0x40a9cc
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x423da8], eax
mov dword [0x423da4], ecx
mov dword [0x423da0], edx
mov dword [0x423d9c], ebx
mov dword [0x423d98], esi
mov dword [0x423d94], edi
mov word [0x423dc0], ss
mov word [0x423db4], cs
mov word [0x423d90], ds
mov word [0x423d8c], es
mov word [0x423d88], fs
mov word [0x423d84], gs
pushfd
pop dword [0x423db8]
mov eax, dword [ebp]
mov dword [0x423dac], eax
mov eax, dword [ebp + 4]
mov dword [0x423db0], eax
lea eax, [ebp + 8]
mov dword [0x423dbc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x423cf8], 0x10001
mov eax, dword [0x423db0]
mov dword [0x423cac], eax
mov dword [0x423ca0], 0xc0000409
mov dword [0x423ca4], 1
mov eax, dword [0x421130]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421134]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x423cf0], eax
push 1
call fcn.00411a2f
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x41c34c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x423cf0], 0
jne 0x40aabe
push 1
call fcn.00411a2f
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40a5b2
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41edd0
call fcn.0040d0b0
xor esi, esi
cmp dword [0x424b7c], esi
jne 0x40a472
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x40a485
mov dword [ebp - 0x1c], esi
jmp 0x40a4bb
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40a480
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40a480
cmp dword [eax + 0x400074], 0xe
jbe 0x40a480
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f188
or eax, eax
jne 0x40a4cc
push 0x1c
call fcn.0040a428
pop ecx
call fcn.0040b7e8
test eax, eax
jne 0x40a4dd
push 0x10
call fcn.0040a428
pop ecx
call fcn.004117ba
mov dword [ebp - 4], esi
call fcn.0040ce3a
or eax, eax
jns 0x40a4f6
push 0x1b
call fcn.0040beaa
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424b78], eax
call fcn.00411723
mov dword [0x423c94], eax
call fcn.00411668
or eax, eax
jns 0x40a51c
push 8
call fcn.0040beaa
pop ecx
call fcn.004113f2
test eax, eax
jns 0x40a52d
push 9
call fcn.0040beaa
pop ecx
push 1
call fcn.0040bc89
pop ecx
cmp eax, esi
je 0x40a540
push eax
call fcn.0040beaa
pop ecx
mov eax, dword [0x424004]
mov dword [0x424008], eax
push eax
push dword [0x423ffc]
push dword [0x423ff8]
call main
mov dword [ebp - 0x20], eax
add esp, 0xc
cmp dword [ebp - 0x1c], esi
jne 0x40a56d
push eax
call fcn.0040be60
call fcn.0040be8c
jmp 0x40a5a2
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d0f5
ret
call fcn.00411806
jmp 0x40a451

Function at 0x40a9cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421130]
jne 0x408854
repz ret
jmp 0x40a9cc
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x423da8], eax
mov dword [0x423da4], ecx
mov dword [0x423da0], edx
mov dword [0x423d9c], ebx
mov dword [0x423d98], esi
mov dword [0x423d94], edi
mov word [0x423dc0], ss
mov word [0x423db4], cs
mov word [0x423d90], ds
mov word [0x423d8c], es
mov word [0x423d88], fs
mov word [0x423d84], gs
pushfd
pop dword [0x423db8]
mov eax, dword [ebp]
mov dword [0x423dac], eax
mov eax, dword [ebp + 4]
mov dword [0x423db0], eax
lea eax, [ebp + 8]
mov dword [0x423dbc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x423cf8], 0x10001
mov eax, dword [0x423db0]
mov dword [0x423cac], eax
mov dword [0x423ca0], 0xc0000409
mov dword [0x423ca4], 1
mov eax, dword [0x421130]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421134]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x423cf0], eax
push 1
call fcn.00411a2f
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x41c34c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x423cf0], 0
jne 0x40aabe
push 1
call fcn.00411a2f
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40baf0
Capabilities:
Terminate process

Disassembly:
push esi
mov edi, edi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040b9c7
sub esp, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40f1cc
Capabilities:
Write file on windows

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.0040f1a6
pop ecx
xor ebx, ebx
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x1fc], esi
je 0x40f36c
push 3
call fcn.00415280
cmp eax, 1
pop ecx
je 0x40f318
push 3
call fcn.00415280
test eax, eax
pop ecx
jne 0x40f22a
cmp dword [0x421430], 1
je 0x40f318
cmp edi, 0xfc
je 0x40f36c
push str.Runtime_Error__n_nProgram:
push 0x314
mov esi, 0x4241c8
push esi
call fcn.004089fe
add esp, 0xc
test eax, eax
jne 0x40f30e
push 0x104
mov edi, 0x4241fa
push edi
push ebx
mov word [0x424402], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x40f296
push str._program_name_unknown_
push ebx
push edi
call fcn.004089fe
sub esp, 0xfffffff4
or eax, eax
je 0x40f296
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040baf0
push edi
call fcn.00409447
pop ecx
inc eax
cmp eax, 0x3c
jbe 0x40f2cd
push edi
call fcn.00409447
lea eax, [eax*2 + 0x424184]
mov ecx, eax
sub ecx, edi
push 3
sar ecx, 1
push 0x41d1d4
sub ebx, ecx
push ebx
push eax
call fcn.004151b3
sub esp, 0xffffffec
test eax, eax
jne 0x40f28a
push 0x41d1cc
mov edi, 0x314
push edi
push esi
call fcn.0040a2b5
add esp, 0xc
or eax, eax
jne 0x40f28a
push dword [ebp - 0x1fc]
push edi
push esi
call fcn.0040a2b5
add esp, 0xc
or eax, eax
jne 0x40f28a
push 0x12010
push 0x41d180
push esi
call fcn.00415047
add esp, 0xc
jmp 0x40f36c
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x40f291
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x40f36c
cmp edi, 0xffffffff
je 0x40f36c
xor eax, eax
mov cl, byte [esi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [esi + eax*2], bx
je 0x40f345
inc eax
cmp eax, 0x1f4
jb 0x40f32d
push ebx
lea esi, [ebp - 0x1fc]
push esi
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00409310
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
pop ebx
call fcn.0040884a
leave
ret
Function at 0x411723
Capabilities:
Query environment variable

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
mov edi, eax
cmp edi, ebx
jne 0x41173f
xor eax, eax
jmp 0x4117b6
cmp word [edi], bx
je 0x411754
sub eax, 0xfffffffe
cmp word [eax], bx
jne 0x411744
add eax, 2
cmp word [eax], bx
jne 0x411744
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, edi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4117ac
push eax
call fcn.0040d109
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4117ac
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
or eax, eax
jne 0x4117a0
push dword [ebp - 4]
call fcn.00409842
pop ecx
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x4117b5
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4118b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4118c6
pop ebp
xor eax, eax
ret
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx], 0x4550
jne 0x4118c2
xor ecx, ecx
mov eax, 0x10b
cmp word [edx + 0x18], ax
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4118f0
Capabilities:
Enumerate pe sections

Disassembly:
mov esi, esi
push ebx
mov edx, esp
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor ebx, ebx
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
push edi
push ebp
movzx edi, word [ecx + 6]
push esi
test edi, edi
je 0x41192d
mov ebp, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
cmp ebp, ecx
jb 0x411925
mov edx, dword [eax + 8]
add edx, ecx
cmp ebp, edx
jb 0x41192f
inc ebx
add eax, 0x28
cmp ebx, edi
jb 0x411915
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x415047
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov esi, esi
mov eax, dword [0x421130]
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 edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.0040b4ef
and dword [ebp - 0x14], 0
cmp dword [0x424a18], 0
mov dword [ebp - 0x18], eax
jne 0x4150fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4151a2
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push esi
call ebx
or eax, eax
je 0x4151a2
mov edi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call edi
push str.GetActiveWindow
push esi
mov dword [0x424a18], eax
call ebx
push eax
call edi
push str.GetLastActivePopup
push esi
mov dword [0x424a1c], eax
call ebx
push eax
call edi
push str.GetUserObjectInformationW
push esi
mov dword [0x424a20], eax
call ebx
push eax
call edi
mov dword [0x424a28], eax
or eax, eax
je 0x4150fa
push str.GetProcessWindowStation
push esi
call ebx
push eax
call edi
mov dword [0x424a24], eax
mov eax, dword [0x424a24]
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415153
cmp dword [0x424a28], ecx
je 0x415153
push eax
call edi
push dword [0x424a28]
mov esi, eax
call edi
mov ebx, eax
test esi, esi
je 0x415153
test ebx, ebx
je 0x415153
call esi
test eax, eax
je 0x41514a
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
push 0xc
push ecx
push 1
push eax
call ebx
or eax, eax
je 0x41514a
test byte [ebp - 8], 1
jne 0x415153
or dword [ebp + 0x10], 0x200000
jmp 0x415186
mov eax, dword [0x424a1c]
cmp eax, dword [ebp - 0x18]
je 0x415186
push eax
call edi
or eax, eax
je 0x415186
call eax
mov dword [ebp - 0x14], eax
or eax, eax
je 0x415186
mov eax, dword [0x424a20]
cmp eax, dword [ebp - 0x18]
je 0x415186
push eax
call edi
test eax, eax
je 0x415186
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424a18]
call edi
or eax, eax
je 0x4151a2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4151a4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop ebx
call fcn.0040884a
leave
ret
Function at 0x416dfa
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov esi, esi
add esp, 0xffffffe8
push ebx
xor ebx, ebx
push edi
push esi
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00413cf0
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x416e82
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.00413cf0
mov ecx, eax
and ecx, edx
sub esp, 0xfffffff0
cmp ecx, 0xffffffff
je 0x416e82
mov edi, dword [ebp + 0xc]
sub edi, eax
mov esi, dword [ebp + 0x10]
sbb esi, edx
js 0x416f17
jg 0x416e5b
cmp edi, ebx
jbe 0x416f17
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x416e8e
call fcn.0040bb94
mov dword [eax], 0xc
call fcn.0040bb94
mov eax, dword [eax]
pop esi
pop edi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004175dc
pop ecx
pop ecx
mov dword [ebp - 8], eax
or esi, esi
jl 0x416eae
jg 0x416eaa
cmp edi, ebx
jb 0x416eae
mov eax, ebx
jmp 0x416eb0
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004126c2
add esp, 0xc
cmp eax, 0xffffffff
je 0x416efa
cdq
sub edi, eax
sbb esi, edx
js 0x416ed1
jg 0x416ea0
test edi, edi
jne 0x416ea0
mov edi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004175dc
pop esi
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x416f80
call fcn.0040bba7
cmp dword [eax], 5
jne 0x416f0f
call fcn.0040bb94
mov dword [eax], 0xd
or edi, 0xffffffff
mov dword [ebp - 0xc], edi
jmp 0x416ed4
cmp esi, ebx
jg 0x416f8c
jl 0x416f21
cmp edi, ebx
jae 0x416f8c
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413cf0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x416e82
push dword [ebp + 8]
call fcn.00413faf
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x416f8c
call fcn.0040bb94
mov dword [eax], 0xd
call fcn.0040bba7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, dword [ebp - 0x10]
and edi, dword [ebp - 0xc]
cmp edi, 0xffffffff
je 0x416e82
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00413cf0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x416e82
xor eax, eax
jmp 0x416e89
Function at 0x4061a4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040292b
mov dword [ebp - 0x14], eax
cmp dword [0x416cd4], edi
jne 0x406295
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x406222
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x406375
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x406375
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406375
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x416cd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x416cd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x416cdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416ce4], eax
test eax, eax
je 0x406292
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416ce0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4062ba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4062ad
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4062cf
push 4
pop eax
jmp 0x406377
cmp dword [ebp - 0x14], edi
je 0x4062cf
push dword [0x416cd4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4062b4
mov eax, dword [0x416ce0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40632d
cmp dword [0x416ce4], esi
je 0x40632d
push eax
call ebx
push dword [0x416ce4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40632d
test eax, eax
je 0x40632d
call ecx
test eax, eax
je 0x406322
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x406322
test byte [ebp - 8], 1
jne 0x40632d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40635d
mov eax, dword [0x416cd8]
cmp eax, esi
je 0x40635a
push eax
call ebx
test eax, eax
je 0x40635a
call eax
mov edi, eax
test edi, edi
je 0x40635a
mov eax, dword [0x416cdc]
cmp eax, esi
je 0x40635a
push eax
call ebx
test eax, eax
je 0x40635a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x416cd4]
call ebx
test eax, eax
je 0x406375
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x406377
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040165c
leave
ret
Function at 0x40a711
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x415050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
je 0x40a734
and dword [esi], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x40a755
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a8da
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40a74a
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jae 0x40a8c3
mov ecx, dword [esi + 8]
mov edx, dword [ecx + eax]
add eax, 4
mov dword [esi], eax
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x220], edx
mov edx, dword [eax + ecx]
add eax, 4
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x21c], eax
mov dword [esi], eax
cmp edx, 2
je 0x40a8c3
test edx, edx
jne 0x40a7d2
cmp dword [esi + 0xc], 1
jbe 0x40a7d2
lea edi, [eax + ecx]
lea eax, [ebp - 0x228]
sub edi, eax
lea ecx, [ebp - 0x228]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, 8
jb 0x40a7b4
mov eax, dword [ebp - 0x21c]
add eax, 8
mov dword [esi], eax
mov ecx, dword [ebp - 0x22c]
mov eax, dword [esi]
push ecx
mov dword [ebp - 0x21c], eax
push esi
add eax, ecx
push ecx
mov dword [esi], eax
call fcn.0040a9ad
mov edi, dword [esi]
add edi, dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
push esi
lea eax, [eax*2 + 2]
add dword [esi], eax
push ecx
call fcn.0040a9ad
cmp dword [ebp - 0x230], 1
jne 0x40a847
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a830
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a8da
push 0
push edi
mov ecx, esi
call fcn.0040a711
test eax, eax
je 0x40a760
jmp 0x40a8da
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a85d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a8da
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a8be
mov ecx, dword [esi + 8]
add ecx, dword [ebp - 0x21c]
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x220]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0xc], 1
jbe 0x40a8b2
lea eax, [ebp - 0x228]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a760
push 9
pop eax
jmp 0x40a8da
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40a74a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040165c
leave
ret 8
Function at 0x40b01c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40dc8f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x415050]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov eax, dword [0x415050]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], ax
mov dword [esp + 0x48], ebx
push 0x44
pop eax
push 0x72
mov word [esp + 0x2c], ax
pop eax
push 0x2e
mov word [esp + 0x2e], ax
pop eax
push 0x57
mov word [esp + 0x30], ax
pop eax
mov word [esp + 0x2e], ax
push 0x65
pop eax
mov word [esp + 0x30], ax
push 0x62
pop eax
mov word [esp + 0x32], ax
xor eax, eax
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov word [esp + 0x34], ax
call fcn.00409f01
cmp word [esp + 0x28], bx
jne 0x40b0c8
mov eax, ebx
jmp 0x40b0d3
lea eax, [esp + 0x28]
push eax
call fcn.00402514
pop ecx
push eax
push ecx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401595
cmp eax, 0xffffffff
je 0x40b0ee
mov byte [esi + 0x1260], bl
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040107c
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040165c
mov esp, ebp
pop ebp
ret
Function at 0x40b941
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
mov esi, dword [esi]
mov eax, ecx
xor edi, edi
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x40b964
xor eax, eax
jmp 0x40ba91
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
cmp edx, ecx
jae 0x40b987
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x40b984
inc edx
cmp edx, ecx
jb 0x40b977
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
cmp edx, ecx
jae 0x40ba75
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x40ba0b
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x14], ebx
test al, al
je 0x40b9b2
cmp al, 0xff
jne 0x40ba38
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, 5
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x40ba4c
movzx eax, byte [esi + 0x413614]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x40b9fa
cmp al, 0xff
jne 0x40ba4c
push 0x20
xor ebx, ebx
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x10]
jmp 0x40b9d0
dec ecx
shl esi, cl
and esi, 7
je 0x40b99e
movzx eax, byte [esi + 0x413614]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x41360c], 0
mov al, byte [ecx + 4]
je 0x40ba36
test al, al
je 0x40ba36
cmp al, 0xff
jne 0x40b99e
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x40b970
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x14]
mov byte [edx + 2], al
add edi, 5
jmp 0x40ba41
mov edx, edi
sub edx, ebx
xor eax, eax
lea ecx, [edx - 1]
shl esi, cl
pop ebx
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret