joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x43500c]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x10]
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
mov dword [ecx + 4], eax
call fcn.0042c210
mov ecx, eax
lea eax, [edi + ebx - 1]
xor edx, edx
mov dword [ebp - 0x18], 0
div ecx
mov ebx, eax
mov eax, edi
xor edx, edx
div ecx
sub ebx, eax
inc ebx
je 0x42c696
mov edi, eax
mov dword [ebp - 0x20], ecx
imul edi, ecx
lea eax, [ebp - 0x14]
push eax
push 0x40
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x42c6aa
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x14]
cmp eax, dword [esi + 0xc]
je 0x42c6ba
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
inc eax
add edi, ecx
cmp eax, ebx
mov dword [ebp - 0x18], eax
jb 0x42c65c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042da80
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x14], 0
mov ecx, esi
call fcn.0042c6e0
jmp 0x42c696
lea ecx, [esi + 4]
mov dword [ebp - 0x1c], edx
call fcn.0042c780
test al, al
je 0x42c6b1
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x1c]
jmp 0x42c679
Function at 0x58faa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x158000]
push edi
or ebp, 0xffffffff
jmp 0x58fac2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58fac9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58fab8
mov eax, 1
add ebx, ebx
jne 0x58fadb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58faec
jne 0x58fb0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58fb0b
dec eax
add ebx, ebx
jne 0x58faf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58fad0
add ebx, ebx
jne 0x58fb07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58fb5d
xor ecx, ecx
sub eax, 3
jb 0x58fb23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58fb92
sar eax, 1
mov ebp, eax
jmp 0x58fb2e
add ebx, ebx
jne 0x58fb2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58fafc
inc ecx
add ebx, ebx
jne 0x58fb3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58fafc
add ebx, ebx
jne 0x58fb49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58fb3e
jne 0x58fb5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58fb3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58fb7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58fb6e
jmp 0x58fabe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58fb7c
add edi, ecx
jmp 0x58fabe
pop esi
mov edi, esi
mov ecx, 0x2fd0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58fb9a
cmp byte [edi], 0x13
jne 0x58fb9a
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 0x58fb9f
lea edi, [esi + 0x18c000]
mov eax, dword [edi]
or eax, eax
je 0x58fc17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18f1f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18f2f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58fbcc
mov ecx, edi
jns 0x58fbfb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18f2fc]
or eax, eax
je 0x58fc11
mov dword [ebx], eax
add ebx, 4
jmp 0x58fbe9
call dword [esi + 0x18f304]
mov ebp, dword [esi + 0x18f300]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x58fc4b
sub esp, 0xffffff80
jmp 0x45c769
Function at 0x4016c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
lea edi, [ebp - 0x38]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x451028]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x453016
call fcn.004024d0
mov esi, esp
lea eax, [ebp - 0xc]
push eax
push 0x28
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.004024a0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.004024a0
test eax, eax
jne 0x40171f
xor al, al
jmp 0x4017bd
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp esi, esp
call fcn.004024a0
test eax, eax
jne 0x401754
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004024a0
xor al, al
jmp 0x4017bd
mov dword [ebp - 0x34], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp + ecx - 0x30], edx
mov dword [ebp + ecx - 0x2c], eax
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0x28], 2
mov esi, esp
push 0
push 0
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp esi, esp
call fcn.004024a0
test eax, eax
jne 0x4017bb
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004024a0
xor al, al
jmp 0x4017bd
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4017ec]
call fcn.00402440
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402510
add esp, 0xf8
cmp ebp, esp
call fcn.004024a0
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
mov ecx, 9
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x453016
call fcn.004024d0
push 0x43e1b4
mov eax, dword [ebp + 8]
push eax
call fcn.004095a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401d06
xor eax, eax
jmp 0x401d9c
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0040a610
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.0040b2f0
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0040a610
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
setb al
neg eax
or eax, ecx
push eax
call fcn.00408c10
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401d5a
xor eax, eax
jmp 0x401d9c
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004055f0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00409d20
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004091a0
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
add esp, 0xe4
cmp ebp, esp
call fcn.004024a0
mov esp, ebp
pop ebp
ret

Function at 0x406830
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00406450
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406862
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x43e14c]
call dword [ebp - 8]
jmp 0x40686c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x425d10
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x425d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e490
add esp, 4
or eax, 0xffffffff
jmp 0x425d39
xor eax, eax
pop ebp
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x448570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x40108e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push 0x403140
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, eax
push edi
push 0xfffffffffffffff8
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401169
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x401169
cmp dword [ebp - 4], 4
jb 0x401169
cmp dword [ebp - 8], 0x53445250
jne 0x401169
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x401169
cmp dword [ebp - 4], 4
jb 0x401169
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401169
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x401169
cmp dword [ebp - 4], 4
jb 0x401169
cmp dword [ebp - 8], 0x53445250
jne 0x401169
push 0x403124
push ebx
call fcn.00401175
push 0x403120
push ebx
call fcn.00401175
push 0x403128
push ebx
call fcn.00401175
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44b610
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ecx
mov cl, byte [0x65e041]
mov al, byte [0x65e04e]
or cl, 0xc
push ebx
shr cl, 2
and ecx, 0xff
mov bl, byte [0x65e043]
mov dword [esp + 4], ecx
xor bl, al
fild dword [esp + 4]
mov byte [0x65e043], bl
fdivr qword [0x6619e0]
fadd qword [0x661980]
fstp qword [0x6619e0]
call dword [sym.imp.USER32.dll_GetFocus]
mov dl, byte [0x65e042]
mov bl, byte [0x65e049]
mov ecx, dword [0x65e03c]
xor bl, dl
mov edx, dword [0x65e048]
and ecx, 0xc
and edx, 0xff
mov dword [0x661be4], eax
mov eax, dword [0x65e034]
imul ecx, edx
mov edx, dword [0x65e038]
mov byte [0x65e049], bl
mov ebx, dword [0x65e030]
and eax, 4
add ebx, eax
mov eax, dword [esp + 0xc]
xor edx, ecx
push eax
mov dword [0x65e030], ebx
mov dword [0x65e038], edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x661be4], eax
mov eax, dword [0x661be0]
test eax, eax
jne 0x44b749
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push str.user32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x661acc]
mov esi, eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jne 0x44b70d
cmp edi, dword [0x661be4]
je 0x44b70d
mov dword [0x661be4], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetDpiForWindow
push esi
xor edi, edi
call ebx
push str.SetThreadDpiAwarenessContext
push esi
mov dword [0x661ad0], eax
call ebx
push esi
mov dword [0x661bd8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
mov dword [0x661be0], 1
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0xc]
pop ebx
pop ecx
ret 4
Function at 0x6572cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65e3b8
cmp edx, dword [eax]
je 0x6572ef
add eax, 8
inc ecx
cmp eax, 0x65e448
jl 0x6572e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65e3b8]
jne 0x65741d
mov eax, dword [0xa63d28]
cmp eax, 1
je 0x6573f7
test eax, eax
jne 0x657320
cmp dword [0x65e2e4], 1
je 0x6573f7
cmp edx, 0xfc
je 0x65741d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657357
lea eax, [ebp - 0x1a4]
push 0x65c648
push eax
call fcn.00657cb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658140
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65739a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658140
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c644
push edi
call fcn.0065a010
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c628
push eax
call fcn.00657cb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00657cc0
lea eax, [ebp - 0xa0]
push 0x65c624
push eax
call fcn.00657cc0
push dword [esi + 0x65e3bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00657cc0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c5fc
push eax
call fcn.00659f84
add esp, 0x2c
pop edi
jmp 0x65741d
lea eax, [ebp + 8]
lea esi, [esi + 0x65e3bc]
push 0
push eax
push dword [esi]
call fcn.00658140
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401170
Capabilities:
Get file version info
Print debug messages

Disassembly:
sub esp, 0x188
push esi
push edi
xor edx, edx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], dl
mov esi, dword [esp + 0x194]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x90]
mov dword [esp + 8], edx
push eax
push 0x100
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4011e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x18]
push 0x40107c
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x188
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x98]
push 0x401078
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401239
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x18]
push 0x401050
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x188
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x198]
pop edi
pop esi
mov edx, dword [eax + 0x10]
shr edx, 0x10
mov dword [ecx], edx
mov edx, dword [eax + 0x10]
and edx, 0xffff
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
shr edx, 0x10
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x14]
and eax, 0xffff
mov dword [ecx + 0xc], eax
xor eax, eax
add esp, 0x188
ret

Function at 0x401280
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x401323
mov edx, dword [esp]
push ebx
push esi
lea ecx, [esp + 0xc]
push edi
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, 0x4010a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401130
add esp, 4
test eax, eax
pop edi
pop esi
pop ebx
je 0x401323
mov ecx, dword [esp + 0x10c]
lea edx, [esp + 4]
push ecx
push edx
call fcn.00401170
add esp, 8
neg eax
sbb eax, eax
and al, 0xfe
add esp, 0x108
ret
or eax, 0xffffffff
add esp, 0x108
ret
Function at 0x401330
Capabilities:
Create process on windows
Print debug messages

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor esi, esi
push 0x401110
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call edi
lea eax, [esp + 8]
push eax
call fcn.00401280
add esp, 4
cmp eax, 0xffffffff
je 0x401392
cmp eax, 0xfffffffe
je 0x401383
xor eax, eax
mov ecx, dword [eax + 0x401040]
mov edx, dword [esp + eax + 8]
cmp ecx, edx
jg 0x401392
add eax, 4
cmp eax, 0x10
jl 0x40136d
push 0x4010f8
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
push 1
push 0x4010ec
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x4010d0
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x575010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x120000]
push edi
jmp 0x57502a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x575031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x575020
mov eax, 1
add ebx, ebx
jne 0x575043
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x575054
jne 0x575073
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x575073
dec eax
add ebx, ebx
jne 0x575060
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x575038
add ebx, ebx
jne 0x57506f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5750c5
xor ecx, ecx
sub eax, 3
jb 0x57508b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5750fa
sar eax, 1
mov ebp, eax
jmp 0x575096
add ebx, ebx
jne 0x575096
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x575064
inc ecx
add ebx, ebx
jne 0x5750a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x575064
add ebx, ebx
jne 0x5750b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5750a6
jne 0x5750c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5750a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5750e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5750d6
jmp 0x575026
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5750e4
add edi, ecx
jmp 0x575026
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x575102
cmp byte [edi], 0x11
jne 0x575102
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 0x575107
lea edi, [esi + 0x16e000]
mov eax, dword [edi]
or eax, eax
je 0x57517f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2120a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x212220]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x575134
mov ecx, edi
jns 0x575163
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x212224]
or eax, eax
je 0x575179
mov dword [ebx], eax
add ebx, 4
jmp 0x575151
call dword [esi + 0x212234]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5751b0
cmp al, 0xef
ja 0x5751a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x575185
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x575192
mov ebp, dword [esi + 0x212228]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x5751e4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x5e0578
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6bc00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
push esi
mov ax, word [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 8]
push edi
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
mov edi, 0x4e4
mov ax, word [ebx + 8]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], di
call esi
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], di
push dword [ebp - 0x224]
movzx eax, word [ebp + ecx*2 - 0x12]
lea edi, [ecx + 2]
push eax
movzx eax, word [ebp + ecx*2 - 0x14]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403e80
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x22c]
add esp, 0x1c
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5e0647
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x5e0661
mov ecx, edi
cmp edi, 8
jb 0x5e05e3
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b637
leave
ret 8
push esi
call fcn.005f0fb8
pop ecx
mov ecx, dword [ebp - 0x228]
push eax
push esi
call fcn.005e06dd
mov al, 1
jmp 0x5e0650

Function at 0x600439
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006002b8

Function at 0x606350
Capabilities:
Set environment variable

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

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

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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov edx, dword [0x40b520]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401d9e
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [0x40b520]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x40b520]
push edi
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401dc4
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x401dd6
pop edi
pop esi
pop ebp
pop ebx
ret
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e3e
mov ecx, ebx
lea eax, [esp + 0x18]
push 0
sub ecx, esi
push eax
lea edx, [esi + ebp]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
add esi, eax
test eax, eax
jbe 0x401e23
cmp esi, ebx
jb 0x401dfa
test eax, eax
ja 0x401e3e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00403cac
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret