joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401510
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov byte [ebp - 6], 0x83
movzx eax, byte [ebp - 6]
cmp eax, 0x59
jle 0x40153c
mov byte [ebp - 0xd], 0x1e
mov dword [ebp - 0x14], 0x5ee1
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov dl, byte [ebp - 6]
mov byte [ebp - 5], dl
jmp 0x40159f
mov eax, dword [ebp - 0x14]
add eax, 0x3aeb
mov dword [ebp - 4], eax
movzx ecx, byte [ebp - 6]
and ecx, 0x91
mov byte [ebp - 5], cl
call fcn.00405a70
movzx edx, byte [ebp - 6]
xor edx, 0xe7
mov byte [ebp - 5], dl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x3f
cmp eax, dword [ebp - 4]
jge 0x40159f
call fcn.00401510
movzx ecx, byte [ebp - 6]
sar ecx, 7
mov byte [ebp - 5], cl
movsx edx, byte [ebp - 0xd]
or edx, 0x2d
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 6]
sub eax, 0xa3
mov byte [ebp - 5], al
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
movsx edx, byte [ebp - 0xd]
cmp edx, 0x4b
jl 0x4015d5
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x30], al
cmp byte [ebp - 0x30], 0x1a
je 0x4015c0
jmp 0x4015ce
mov ecx, dword [ebp - 0x14]
push ecx
call section..text
add esp, 4
jmp 0x4015d5
push 0x2a
call fcn.004011f0
mov eax, 0x4b
mov esp, ebp
pop ebp
ret
Function at 0x405e60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 8]
mov word [ebp - 0x20], ax
movsx ecx, word [ebp - 0x20]
sub ecx, 0x2a3
movsx edx, word [ebp + 8]
cmp ecx, edx
jg 0x405ea9
mov ax, word [ebp - 0x20]
mov word [ebp - 0x30], ax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x19], 0x71
mov dx, word [ebp + 0x10]
mov word [ebp - 0x28], dx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 8], ecx
mov dl, byte [ebp - 0x19]
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], ecx
movzx edx, word [ebp - 0x28]
movzx eax, word [ebp + 0x10]
add edx, eax
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx]
cmp edx, eax
jg 0x405ef5
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0x1b], 0x80
lea edx, [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call section..text
add esp, 4
mov eax, 0xcd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4084f3
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.004073e1
and dword [ebp - 4], 0
cmp dword [0x4163c8], 0
mov ebx, eax
jne 0x4085a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408655
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408655
push eax
call fcn.0040736f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4163c8], eax
call esi
push eax
call fcn.0040736f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4163cc], eax
call esi
push eax
call fcn.0040736f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4163d0], eax
call esi
push eax
call fcn.0040736f
pop ecx
mov dword [0x4163d8], eax
test eax, eax
je 0x4085a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040736f
pop ecx
mov dword [0x4163d4], eax
mov eax, dword [0x4163d4]
cmp eax, ebx
je 0x4085fc
cmp dword [0x4163d8], ebx
je 0x4085fc
push eax
call fcn.004073ea
push dword [0x4163d8]
mov esi, eax
call fcn.004073ea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4085fc
test edi, edi
je 0x4085fc
call esi
test eax, eax
je 0x4085f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4085f3
test byte [ebp - 0xc], 1
jne 0x4085fc
or dword [ebp + 0x10], 0x200000
jmp 0x408635
mov eax, dword [0x4163cc]
cmp eax, ebx
je 0x408635
push eax
call fcn.004073ea
pop ecx
test eax, eax
je 0x408635
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408635
mov eax, dword [0x4163d0]
cmp eax, ebx
je 0x408635
push eax
call fcn.004073ea
pop ecx
test eax, eax
je 0x408635
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4163c8]
call fcn.004073ea
pop ecx
test eax, eax
je 0x408655
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408657
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a388
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412a18]
jne 0x40a392
repz ret
jmp fcn.0040bab5
Function at 0x4088e8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x408900
cmp dword [eax + 0x118], 0
jne 0x4088fc
jmp sym._d_print_comp.part.8
ret
mov dword [eax + 0x118], 1
ret

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

Disassembly:
cmp dword [ecx], 0x2d
je 0x408f0c
cmp dword [eax + 0x118], 0
jne 0x408f0b
jmp sym._d_print_comp.part.8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x408f04
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x408f43
mov esi, edx
inc edx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
inc ebx
cmp edi, ebx
je 0x408f04
mov cl, byte [ebp + ebx]
cmp edx, 0xff
jne 0x408f2c
mov byte [eax + 0xff], 0
mov edx, dword [eax + 0x10c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
inc dword [eax + 0x120]
mov edx, 1
xor esi, esi
mov cl, byte [esp + 0x1c]
jmp 0x408f2f
Function at 0x40d6b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sym._fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40d710
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40d806
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40d780
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40d755
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sym._memcpy
cmp byte [esp + 0x1f], 0
je 0x40d765
cmp byte [esp + 0x1e], 0
je 0x40d765
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
jmp 0x40d765
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
nop

Function at 0x40daa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4a304c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4a3064]
sub esp, 4
test ebx, ebx
je 0x40daeb
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 0x40dae4
test esi, esi
je 0x40dae4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40dac0
mov dword [esp], 0x4a304c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x410730
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4a3080], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreA_16
sub esp, 0x10
mov dword [0x4a3084], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x410790
mov dword [0x4a308c], eax
mov dword [esp + 4], sym._emutls_destroy
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne 0x410797
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x410788
call sym._abort
Function at 0x41079c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4a3044]
test ecx, ecx
jne 0x4107c4
mov eax, dword [esi + 8]
test eax, eax
je 0x4108d4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x410854
mov ebx, dword [0x4a308c]
call sym._GetLastError_0
mov edi, eax
mov dword [esp], ebx
call sym._TlsGetValue_4
push ecx
mov ebx, eax
mov dword [esp], edi
call sym._SetLastError_4
push edi
test ebx, ebx
je 0x410814
mov edi, dword [ebx]
cmp ebp, edi
ja 0x4108e3
dec ebp
mov eax, dword [ebx + ebp*4 + 4]
test eax, eax
jne 0x4107bc
mov eax, esi
call sym._emutls_alloc
mov dword [ebx + ebp*4 + 4], eax
jmp 0x4107bc
lea edi, [ebp + 0x20]
mov dword [esp + 4], 4
lea eax, [ebp + 0x21]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je 0x4109a9
mov dword [eax], edi
mov dword [esp + 4], ebx
mov eax, dword [0x4a308c]
mov dword [esp], eax
call sym._TlsSetValue_8
push edx
push edx
test eax, eax
jne 0x4107fe
call sym._GetLastError_0
jmp 0x4107fe
cmp dword [0x46d014], 0
je 0x41092c
mov dword [esp], 0x4a3080
call sym._InterlockedIncrement_4
push edx
test eax, eax
jne 0x410978
mov ebp, dword [esi + 8]
test ebp, ebp
jne 0x41088d
mov ebp, dword [0x4a3088]
inc ebp
mov dword [0x4a3088], ebp
mov dword [esi + 8], ebp
cmp dword [0x4a3044], 0
je 0x4107cf
mov dword [esp], 0x4a3080
call sym._InterlockedDecrement_4
push edx
test eax, eax
js 0x4107cf
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x4a3084]
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x4107cf
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x4107bc
lea edx, [edi + edi]
cmp ebp, edx
jbe 0x4108ed
lea edx, [ebp + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._realloc
mov ebx, eax
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x4109a9
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4 + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x410836
mov dword [esp], 0x46d018
call sym._InterlockedIncrement_4
push ebp
test eax, eax
jne 0x41094c
jmp 0x410967
mov dword [esp], 0
call sym._Sleep_4
push edi
cmp dword [0x46d014], 0
je 0x41093f
cmp dword [0x4a3044], 0
je 0x410876
jmp 0x410861
call sym._emutls_init
mov dword [0x46d014], 1
jmp 0x410955
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x4a3084]
mov dword [esp], eax
call sym._WaitForSingleObject_8
push ebx
push ebx
test eax, eax
je 0x410876
mov dword [esp], 0x4a3080
call sym._InterlockedDecrement_4
push ecx
jmp 0x410876
call sym._abort
nop
Function at 0x41c548
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4732bc], 0
jne 0x41c61c
mov byte [0x4732bc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41c668
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
sete al
add ebx, eax
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.___cxa_demangle
mov ebp, eax
mov esi, dword [sym.imp.msvcrt.dll__iob]
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41c612
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x475011
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41c649
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41c5e3
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41c60d
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x41c663
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x5c570f1e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5b6a709d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x2fdb14a8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x2fdb3028], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x2fdb14ec
call ebx
test eax, eax
jns 0x2fdb14e2
push 0x2fdb1138
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x2fdb112c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x2fdb3024], eax
mov dword [0x2fdb3028], 1
mov eax, dword [0x2fdb3024]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x2fdb1508
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x2fdb1538
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x2fdb152e
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x2fdb1523
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x2fdb1528
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x2fdb1537
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x2fdb155a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x2fdb1198
push 0x80000001
mov dword [ebp - 0x10], 4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x2fdb15d0
cmp dword [ebp - 4], 0
je 0x2fdb15d0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2fdb1184
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call ebx
cmp dword [ebp - 0x14], 0
jne 0x2fdb15d0
cmp dword [ebp - 8], 4
jne 0x2fdb15d0
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
jmp 0x2fdb161f
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x2fdb1198
push 0x80000002
call esi
test eax, eax
jne 0x2fdb161d
cmp dword [ebp - 4], eax
je 0x2fdb161d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2fdb1184
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov esi, eax
call ebx
test esi, esi
jne 0x2fdb161d
cmp dword [ebp - 8], 4
jne 0x2fdb161d
xor eax, eax
cmp dword [ebp - 0xc], eax
jmp 0x2fdb15cb
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2fdb1a22
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x2fdb13fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x47c], eax
xor eax, eax
push ebx
mov word [ebp - 0x468], ax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
cmp eax, ebx
jne 0x2fdb1a67
xor eax, eax
jmp 0x2fdb1b38
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x2fdb1a86
push 0x5c
pop edx
mov word [ecx], dx
xor ecx, ecx
mov word [ebp + eax - 0x25e], cx
push esi
push 0xffffffffffffffff
mov esi, 0x2fdb1348
push esi
lea eax, [ebp - 0x260]
push 0x106
push eax
call dword [sym.imp.MSVCR90.dll_wcsncat_s]
add esp, 0x10
push 8
push ebx
lea eax, [ebp - 0x260]
push eax
call fcn.2fdb1994
mov dword [ebp - 0x46c], eax
cmp eax, ebx
jne 0x2fdb1acd
push esi
call fcn.2fdb190c
mov dword [ebp - 0x46c], eax
cmp eax, ebx
je 0x2fdb1b09
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2fdb1334
push dword [ebp - 0x46c]
call esi
push 0x2fdb1314
push dword [ebp - 0x46c]
mov dword [ebp - 0x474], eax
call esi
mov dword [ebp - 0x478], eax
cmp eax, ebx
jne 0x2fdb1b0d
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x2fdb1b37
push edi
mov edi, 0x2fdb1300
mov esi, 0x2fdb12b0
cmp dword [ebp - 0x47c], ebx
je 0x2fdb1b8d
cmp dword [ebp - 0x474], ebx
jne 0x2fdb1b47
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.2fdb1d2a
leave
ret 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x47c]
call dword [ebp - 0x474]
cmp eax, ebx
jne 0x2fdb1b86
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
lea eax, [ebp - 0x54]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x470], 0x104
call dword [ebp - 0x478]
cmp eax, ebx
je 0x2fdb1bc8
cmp eax, 0x642
je 0x2fdb1bc8
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push edi
push esi
mov dword [ebp - 0x470], 0x104
call dword [ebp - 0x478]
test eax, eax
je 0x2fdb1bc8
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x2fdb1b36
lea eax, [ebp - 0x468]
push eax
call fcn.2fdb190c
mov ebx, eax
jmp 0x2fdb1bb5
Function at 0x2fdb1c76
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x2fdb141c
push 0x2fdb1400
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x2fdb1cab
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x2fdb13fc
push ebx
call edi
mov dword [0x2fdb13fc], esi
test esi, esi
jne 0x2fdb1d0f
mov dword [0x2fdb13fc], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x2fdb3004], 0x44bf19b1
pop ebx
leave
ret

Function at 0x2fdb1d2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2fdb13fc]
jne 0x2fdb2121
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2fdb3170], eax
mov dword [0x2fdb316c], ecx
mov dword [0x2fdb3168], edx
mov dword [0x2fdb3164], ebx
mov dword [0x2fdb3160], esi
mov dword [0x2fdb315c], edi
mov word [0x2fdb3188], ss
mov word [0x2fdb317c], cs
mov word [0x2fdb3158], ds
mov word [0x2fdb3154], es
mov word [0x2fdb3150], fs
mov word [0x2fdb314c], gs
pushfd
pop dword [0x2fdb3180]
mov eax, dword [ebp]
mov dword [0x2fdb3174], eax
mov eax, dword [ebp + 4]
mov dword [0x2fdb3178], eax
lea eax, [ebp + 8]
mov dword [0x2fdb3184], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2fdb30c0], 0x10001
mov eax, dword [0x2fdb3178]
mov dword [0x2fdb3074], eax
mov dword [0x2fdb3068], 0xc0000409
mov dword [0x2fdb306c], 1
mov eax, dword [0x2fdb13fc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2fdb3004]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2fdb30b8], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2fdb1430
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2fdb30b8], 0
jne 0x2fdb220d
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x2fdb2045
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x2fdb2588
call fcn.2fdb20c8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x2fdb33a4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x2fdb1de2
cmp eax, esi
jne 0x2fdb1dd5
xor esi, esi
inc esi
mov ebx, esi
jmp 0x2fdb1de5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x2fdb1dbc
xor esi, esi
inc esi
mov eax, dword [0x2fdb33a0]
cmp eax, esi
jne 0x2fdb1df8
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x2fdb1e27
mov eax, dword [0x2fdb33a0]
test eax, eax
jne 0x2fdb1e21
mov dword [0x2fdb33a0], esi
push 0x2fdb1114
push 0x2fdb1108
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x2fdb1e27
jmp 0x2fdb1f4f
mov dword [0x2fdb3060], esi
mov eax, dword [0x2fdb33a0]
cmp eax, esi
jne 0x2fdb1e4b
push 0x2fdb1104
push 0x2fdb10fc
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x2fdb33a0], 2
test ebx, ebx
jne 0x2fdb1e57
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x2fdb33b0], 0
je 0x2fdb1e7b
push 0x2fdb33b0
call fcn.2fdb23fe
pop ecx
test eax, eax
je 0x2fdb1e7b
push 0
push 2
push 0
call dword [0x2fdb33b0]
mov eax, dword [sym.imp.MSVCR90.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x2fdb1ed7
test al, al
je 0x2fdb1e95
cmp dword [ebp - 0x1c], 0
jne 0x2fdb1ed7
mov al, byte [esi]
test al, al
je 0x2fdb1ea5
cmp al, 0x20
ja 0x2fdb1ea5
inc esi
mov dword [ebp - 0x20], esi
jmp 0x2fdb1e95
test byte [ebp - 0x3c], 1
je 0x2fdb1eb1
movzx eax, word [ebp - 0x38]
jmp 0x2fdb1eb4
push 0xa
pop eax
push eax
push esi
push 0
push 0x2fdb0000
call main
mov dword [0x2fdb305c], eax
cmp dword [0x2fdb3050], 0
jne 0x2fdb1f2b
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp al, 0x22
jne 0x2fdb1ee6
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR90.dll__ismbblead]
pop ecx
test eax, eax
je 0x2fdb1ef9
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x2fdb1e82
cmp dword [0x2fdb3060], 0
jne 0x2fdb1f3a
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x2fdb305c]
jmp 0x2fdb1f5b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.2fdb210d
ret
call fcn.2fdb1c76
jmp 0x2fdb1d82