joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e2d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100712a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007bf74]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push eax
push edi
call fcn.10039b60
mov dword [esi + 0x50], 0xffffffff
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi], vtable.VS30::CondBreakBasicBlock.0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
lea ebx, [esi + 0x88]
lea ebp, [esi + 0x74]
mov dword [ebx], eax
mov dword [ebp], eax
mov edx, dword [ecx]
push edx
mov dword [esp + 0x24], eax
call fcn.10038910
add dword [esp + 0x30], 4
add esp, 4
push 1
mov dword [esi + 0x60], eax
lea eax, [esi + 0x64]
push eax
push ebp
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.10038800
push 2
lea edx, [esi + 0x78]
push edx
mov dword [esi + 0x58], eax
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.10038800
mov dword [esi + 0x5c], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10050c11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007bf74]
jne 0x10050c1b
repz ret
jmp fcn.10050c20

Function at 0x10050c20
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1007da70], eax
mov dword [0x1007da6c], ecx
mov dword [0x1007da68], edx
mov dword [0x1007da64], ebx
mov dword [0x1007da60], esi
mov dword [0x1007da5c], edi
mov word [0x1007da88], ss
mov word [0x1007da7c], cs
mov word [0x1007da58], ds
mov word [0x1007da54], es
mov word [0x1007da50], fs
mov word [0x1007da4c], gs
pushfd
pop dword [0x1007da80]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x1007da84], ecx
mov dword [0x1007da78], eax
mov dword [0x1007d9c0], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x1007d97c], eax
mov eax, dword [0x1007bf74]
xor edi, edi
mov dword [0x1007da74], ecx
mov dword [0x1007d970], 0xc0000409
inc edi
mov dword [0x1007d974], edi
mov dword [ebp - 4], eax
mov eax, dword [0x1007bf78]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10073438
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x10051942
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1007bf74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
jne 0x10051a43
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10051987
xor eax, eax
jmp 0x10051ade
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
and eax, 0x7fff
cmp ecx, 2
je 0x100519a2
or eax, 0x8000
mov edx, dword [ebp - 0x90]
mov dword [0x1007de1c], ecx
mov ecx, dword [ebp - 0x94]
mov esi, ecx
shl esi, 8
add esi, edx
push 1
mov dword [0x1007de24], esi
mov dword [0x1007de28], ecx
mov dword [0x1007de2c], edx
mov dword [0x1007de20], eax
call fcn.10057892
test eax, eax
pop ecx
je 0x10051980
call fcn.100553a1
test eax, eax
jne 0x100519ee
call fcn.100578f2
jmp 0x10051980
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1007f5a0], eax
call fcn.100587ef
mov dword [0x1007dc98], eax
call fcn.100581b5
test eax, eax
jge 0x10051a13
call fcn.10055055
jmp 0x100519e7
call fcn.10058734
test eax, eax
jl 0x10051a3c
call fcn.1005843d
test eax, eax
jl 0x10051a3c
push 0
call fcn.10057ae9
test eax, eax
pop ecx
jne 0x10051a3c
inc dword [0x1007dc94]
jmp 0x10051adb
call fcn.100583ef
jmp 0x10051a0c
xor edi, edi
cmp eax, edi
jne 0x10051a7e
cmp dword [0x1007dc94], edi
jle 0x10051980
dec dword [0x1007dc94]
cmp dword [0x1007de58], edi
jne 0x10051a68
call fcn.10057c5c
cmp dword [ebp + 0x10], edi
jne 0x10051adb
call fcn.100583ef
call fcn.10055055
call fcn.100578f2
jmp 0x10051adb
cmp eax, 2
jne 0x10051acf
call fcn.1005500e
push 0x214
push 1
call fcn.10058174
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10051980
push esi
push dword [0x1007bff4]
push dword [0x1007dcb4]
call fcn.10054f7f
pop ecx
call eax
test eax, eax
je 0x10051ac3
push edi
push esi
call fcn.10055092
pop ecx
jmp 0x10051ada
push esi
call fcn.10051849
pop ecx
jmp 0x10051980
cmp eax, 3
jne 0x10051adb
push edi
call fcn.10055327
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10050c11
leave
ret 0xc
Function at 0x10057cbc
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x1007c2a0]
je 0x10057ce2
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x10057cd0
cmp esi, 0x17
jae 0x10057e3c
push 3
call fcn.1005efc9
cmp eax, 1
pop ecx
je 0x10057e06
push 3
call fcn.1005efc9
test eax, eax
pop ecx
jne 0x10057d15
cmp dword [0x1007dca4], 1
je 0x10057e06
cmp edi, 0xfc
je 0x10057e3c
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x1007de60
push esi
call fcn.1005c24d
add esp, 0xc
test eax, eax
je 0x10057d4b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005560c
add esp, 0x14
mov byte [0x1007df7d], bl
push 0x104
mov ebx, 0x1007de79
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10057d8e
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.1005c24d
add esp, 0xc
test eax, eax
je 0x10057d8e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1005560c
add esp, 0x14
push ebx
push edi
push esi
call fcn.1005ef55
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10057dac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005560c
add esp, 0x14
push 0x10073b60
push edi
push esi
call fcn.1005ef55
add esp, 0xc
test eax, eax
je 0x10057dcc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005560c
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x1007c2a4]
push edi
push esi
call fcn.1005ef55
add esp, 0xc
test eax, eax
je 0x10057df1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005560c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.1005edb5
add esp, 0xc
jmp 0x10057e3c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x10057e3c
cmp edi, 0xffffffff
je 0x10057e3c
mov edx, dword [esi*8 + 0x1007c2a4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10057e25
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10058e50
Capabilities:
Parse pe header

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

Function at 0x10058e80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10058ebf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10058eb5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10058ec1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10058ea5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1005edb5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10054f76
xor ebx, ebx
cmp dword [0x1007e2e8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1005ee8c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1005edf7
xor eax, eax
jmp 0x1005ef50
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1005edf0
push eax
call fcn.10054f10
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1007e2e8], eax
call esi
push eax
call fcn.10054f10
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1007e2ec], eax
call esi
push eax
call fcn.10054f10
mov dword [0x1007e2f0], eax
lea eax, [ebp - 8]
push eax
call fcn.10057a2b
test eax, eax
pop ecx
pop ecx
je 0x1005ee5a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005560c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1005ee8c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10054f10
cmp eax, ebx
pop ecx
mov dword [0x1007e2f8], eax
je 0x1005ee8c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10054f10
pop ecx
mov dword [0x1007e2f4], eax
mov eax, dword [0x1007e2f4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1005ef05
cmp dword [0x1007e2f8], esi
je 0x1005ef05
push eax
call fcn.10054f7f
pop ecx
call eax
cmp eax, ebx
je 0x1005eed2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1007e2f8]
call fcn.10054f7f
pop ecx
call eax
test eax, eax
je 0x1005eed2
test byte [ebp - 0x18], 1
jne 0x1005ef05
lea eax, [ebp - 0xc]
push eax
call fcn.10057aa8
test eax, eax
pop ecx
je 0x1005eeed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1005560c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1005eefc
or dword [ebp + 0x10], 0x200000
jmp 0x1005ef36
or dword [ebp + 0x10], 0x40000
jmp 0x1005ef36
mov eax, dword [0x1007e2ec]
cmp eax, esi
je 0x1005ef36
push eax
call fcn.10054f7f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1005ef36
mov eax, dword [0x1007e2f0]
cmp eax, esi
je 0x1005ef36
push dword [ebp - 4]
push eax
call fcn.10054f7f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1007e2e8]
call fcn.10054f7f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100684c3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.100551c2
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x100684eb
or dword [esi + 8], 0x104
jmp 0x100685af
lea eax, [ebx + 0x40]
test eax, eax
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
je 0x1006850e
cmp byte [eax], 0
je 0x1006850e
push edi
push 0x16
push 0x10075928
call fcn.10067e9b
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x1006856b
cmp byte [eax], 0
je 0x1006856b
mov eax, dword [edi]
test eax, eax
je 0x1006852f
cmp byte [eax], 0
je 0x1006852f
call fcn.10068408
jmp 0x10068534
call fcn.1006847b
cmp dword [esi + 8], 0
jne 0x100685c5
push esi
push 0x41
push 0x10075718
call fcn.10067e9b
add esp, 0xc
test eax, eax
je 0x100685bb
mov edi, dword [edi]
test edi, edi
je 0x10068564
cmp byte [edi], 0
je 0x10068564
call fcn.10068408
jmp 0x100685bb
call fcn.1006847b
jmp 0x100685bb
mov edi, dword [edi]
test edi, edi
je 0x100685a8
cmp byte [edi], 0
je 0x100685a8
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006857b
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x10068000
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x100685bb
and dword [esi + 8], 0
jmp 0x100685bb
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x100686b9
mov eax, ebx
add ebx, 0x80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.10067f11
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x100686b9
cmp edi, 0xfde8
je 0x100686b9
cmp edi, 0xfde9
je 0x100686b9
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100686b9
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100686b9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10068640
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100686b4
cmp word [eax], 0x814
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x10068679
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.1005c24d
add esp, 0xc
test eax, eax
je 0x1006868a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1005560c
add esp, 0x14
jmp 0x1006868a
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x100686b9
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x100686b9
push 0xa
push 0x10
add ebx, 0x80
push ebx
push dword [ebp + 8]
call fcn.1006d85c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100686bb
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1006c836
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1007bf74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.10057a2b
test eax, eax
pop ecx
je 0x1006c86b
push edi
push edi
push edi
push edi
push edi
call fcn.1005560c
add esp, 0x14
push 4
pop eax
call fcn.10052d70
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006c979
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x1006c8f2
push str.kernel32.dll
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x1006c8f2
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1006c8f2
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x1006c8f2
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x1006c8f2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.1006c80f
add esp, 0xc
test eax, eax
jl 0x1006c979
not edi
and dword [ebp - 8], edi
je 0x1006c924
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.1006c80f
add esp, 0xc
test eax, eax
jl 0x1006c979
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1006c92f
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1006c943
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x1006c979
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1006c979
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1006c979
xor eax, eax
inc eax
jmp 0x1006c97b
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050c11
leave
ret
Function at 0x1006e50c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1007bf74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1007e414]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
xor edi, edi
cmp eax, edi
jne 0x1006e560
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push edi
call esi
test eax, eax
je 0x1006e546
mov dword [0x1007e414], ebx
jmp 0x1006e565
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1006e55b
push 2
pop eax
mov dword [0x1007e414], eax
jmp 0x1006e560
mov eax, dword [0x1007e414]
cmp eax, 1
jne 0x1006e578
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
jmp 0x1006e637
cmp eax, 2
je 0x1006e581
cmp eax, edi
jne 0x1006e5aa
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 8], edi
jne 0x1006e594
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push edi
push edi
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp + 0xc]
call edi
mov ebx, eax
test ebx, ebx
jne 0x1006e5b1
xor eax, eax
jmp 0x1006e637
jle 0x1006e5f7
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 1
jb 0x1006e5f7
lea eax, [ebx + 8]
cmp eax, 0x400
ja 0x1006e5df
call fcn.10052720
mov esi, esp
test esi, esi
je 0x1006e5aa
mov dword [esi], 0xcccc
add esi, 8
jmp 0x1006e5f9
push eax
call fcn.1005177f
test eax, eax
pop ecx
je 0x1006e5f3
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
jmp 0x1006e5f9
xor esi, esi
test esi, esi
je 0x1006e5aa
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x1006e62d
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x1006e616
push eax
push eax
jmp 0x1006e61c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push esi
push 1
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
push esi
call fcn.100653d2
mov eax, dword [ebp - 8]
pop ecx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050c11
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401f30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401f7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f74
test esi, esi
je 0x401f74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f50
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402160
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4021b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402288
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021ee
cmp eax, 4
jne 0x402210
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021fe
cmp edx, 4
je 0x4021fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402160
Function at 0x4053cb
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
mov esi, dword [esi]
neg esi
sbb esi, esi
and dword [edi], 0
add esi, 3
push esi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
je 0x4195de
xor eax, eax
inc eax
mov dword [edi], eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x419628
push 0x400023d4
mov edx, 0x400023d3
mov ecx, ebx
call fcn.00429bf0
sub eax, 0
je 0x419620
dec eax
sub eax, 1
jne 0x41960d
mov eax, dword [ebp + 8]
and dword [eax], 0
or esi, 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
jmp 0x405401
xor eax, eax
inc eax
jmp 0x405403
xor eax, eax
jmp 0x405403