joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80000000
jae 0x4021a2
mov dword [ebp - 4], 1
mov esi, esp
push 0x94
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40219d
push 0x94
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0x94
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x402153
mov dword [ebp - 4], 5
jmp 0x402187
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 5
jne 0x40216e
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
jne 0x40216e
mov dword [ebp - 4], 6
jmp 0x402187
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 5
jne 0x402187
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 1
jne 0x402187
mov dword [ebp - 4], 7
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x40225b
mov eax, dword [ebp - 8]
and eax, 0xff
cmp eax, 4
jge 0x4021bb
mov dword [ebp - 4], 0
jmp 0x40225b
mov dword [ebp - 4], 2
mov esi, esp
push 0x94
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40225b
push 0x94
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [edx], 0x94
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 4
jne 0x40222c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0xa
jne 0x40222c
mov dword [ebp - 4], 3
jmp 0x402245
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 4
jne 0x402245
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 8], 0x5a
jne 0x402245
mov dword [ebp - 4], 4
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x4c
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x410238], 1
mov dword [0x410234], 1
mov dword [0x410230], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x41000c], eax
mov eax, dword [0x410244]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x410258]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x410240]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x40c094], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4015f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp eax, 0x20
je 0x401668
jbe 0x401640
cmp eax, 0x100
je 0x401690
cmp eax, 0x113
jne 0x40166e
dec edx
jne 0x401630
inc dword [0x410044]
lea esi, [esi]
lea esi, [esi]
xor eax, eax
mov ebx, dword [esp + 0x18]
add esp, 0x1c
ret 0x10
cmp eax, 1
je 0x401630
cmp eax, 2
jne 0x40166e
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov dword [0x40c078], eax
sub esp, 4
jmp 0x401630
cmp cx, 1
je 0x4016d0
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
add esp, 0x1c
jmp dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esp], 0x1b
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call ebx
sub esp, 4
test al, 1
jne 0x40164a
mov dword [esp], 0xd
call ebx
sub esp, 4
test al, 1
jne 0x40164a
mov dword [esp], 0x20
call ebx
sub esp, 4
test al, 1
jne 0x40164a
jmp 0x401630
mov dword [esp], 0
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
sub esp, 4
jmp 0x401632
Function at 0x4027b0
Capabilities:
Inspect load icon resource
Resolve function by parsing pe exports

Disassembly:
push ebp
xor edx, edx
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x9c
lea ebx, [esp + 0x4c]
mov dword [esp + eax + 0x4c], edx
mov dword [esp + eax + 0x50], edx
add eax, 8
cmp eax, 0x18
jb 0x4027c2
mov dword [ebx + eax], 0
xor edx, edx
xor eax, eax
mov dword [esp + eax + 0x70], edx
mov dword [esp + eax + 0x74], edx
add eax, 8
cmp eax, 0x18
jb 0x4027dd
xor edx, edx
mov ecx, 3
mov dword [esp + eax + 0x70], edx
mov esi, sym._ReportWndProc_16
mov edi, str.oglreport
mov dword [esp], 0xf
mov ebp, 0x65
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x8c], edi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
sub esp, 4
mov dword [esp], 0
mov dword [esp + 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_LoadIconA]
sub esp, 8
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
sub esp, 4
test ax, ax
jne 0x402878
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], eax
xor eax, eax
mov ecx, 0x190
mov dword [esp + 0x28], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0x24], eax
mov eax, 0x10ca0000
xor ebp, ebp
mov dword [esp + 0xc], eax
mov eax, str.WGLtest_report
mov esi, 0x200
mov dword [esp + 8], eax
mov eax, str.oglreport
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
sub esp, 0x30
test eax, eax
mov dword [esp + 0x3c], eax
je 0x40286a
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esi, [esi]
lea esi, [esi]
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
mov edx, 1
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0x14
test eax, eax
jne 0x402950
mov eax, dword [0x40c074]
test eax, eax
jne 0x402900
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
sub esp, 4
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call ebp
sub esp, 4
mov dword [esp], ebx
call edi
sub esp, 4
jmp 0x402900

Function at 0x402fe0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x403040
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x41024c]
test esi, esi
jle 0x403160
mov eax, dword [0x410250]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x403074
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4030f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403060
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x403187
mov eax, dword [0x410250]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x410250]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403167
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4030f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x403100
add dword [0x41024c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x410250]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4030f0
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
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40307e
mov eax, dword [0x410250]
mov eax, dword [eax + ebx + 0xc]
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]
nop

Function at 0x4036a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x410268
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x410260]
sub esp, 4
test ebx, ebx
je 0x4036f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x4036ee
test esi, esi
je 0x4036ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4036d0
mov dword [esp], 0x410268
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403a30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403a55
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403a60
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403a55
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x403aa8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x403a9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x403aaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403a90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x58ce70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10f000]
push edi
or ebp, 0xffffffff
jmp 0x58ce92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58ce99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58ce88
mov eax, 1
add ebx, ebx
jne 0x58ceab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58cebc
jne 0x58cecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58cecc
dec eax
add ebx, ebx
jne 0x58cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58cea0
xor ecx, ecx
sub eax, 3
jb 0x58cee4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58cf56
sar eax, 1
mov ebp, eax
jmp 0x58ceef
add ebx, ebx
jne 0x58ceef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x58cefc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x58cf20
inc ecx
add ebx, ebx
jne 0x58cf0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58cf01
jne 0x58cf1d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58cf01
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58cf40
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58cf31
jmp 0x58ce8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58cf40
add edi, ecx
jmp 0x58ce8e
pop esi
mov edi, esi
mov ecx, 0x60fd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58cf5e
cmp byte [edi], 0x2d
jne 0x58cf5e
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 eax, ebx
loop 0x58cf63
lea edi, [esi + 0x188000]
mov eax, dword [edi]
or eax, eax
je 0x58cfdb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18e46c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18e5ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58cf90
mov ecx, edi
jns 0x58cfbf
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 + 0x18e5b0]
or eax, eax
je 0x58cfd5
mov dword [ebx], eax
add ebx, 4
jmp 0x58cfad
call dword [esi + 0x18e5b4]
popal
jmp 0x4bc69a

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10005a48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10005a57
pop dword [ebp - 0x4c]
mov eax, 0x521ac76f
add eax, 0xbde592e8
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x8a101cdf
add dword [ebp - 0x5c], 0xc442286c
mov dword [ebp - 0x58], 0x6ef3c532
add dword [ebp - 0x58], 0xc33f8713
mov dword [ebp - 0x54], 0xcd262e4a
sub dword [ebp - 0x54], 0x80d9ea1c
mov dword [ebp - 0x50], 0x643ad32e
add dword [ebp - 0x50], 0x9bc52cd2
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xcb621dc9
sub dword [ebp - 0x5c], 0x56efb473
mov dword [ebp - 0x58], 0x40b3b15
sub dword [ebp - 0x58], 0xc29ed9a0
mov dword [ebp - 0x54], 0x8260e38
sub dword [ebp - 0x54], 0xa4b6a1cc
mov dword [ebp - 0x50], 0x1648434c
sub dword [ebp - 0x50], 0x1648434c
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xf4fc350e
sub eax, 0xe4fb74e2
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3919e
push 0
call eax
mov ecx, 0xc5f27e89
sub ecx, 0xc5f23201
mov esi, eax
mov edx, 0x1ed411b
add edx, 0xe1732e5
add edx, dword [ebp - 0x4c]
mov edi, 0xff02f30e
add edi, 0x2a2f1ef6
xor dword [ebp - 0x14], 0x527e9d02
mov ebx, dword [edx]
add dword [ebp - 4], ecx
sub ebx, edi
mov dword [ebp - 0x20], 0x85ba545d
mov dword [esi], ebx
xor dword [ebp - 0x2c], ecx
add esi, 4
add edx, 4
loop 0x10005b74
add eax, 0x124f3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x356f47cd
add ecx, 0xda90b833
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10026c0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10026c1d
pop dword [ebp - 0x40]
mov eax, 0xe770cb3f
add eax, 0x2891a0de
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xb4af2954
sub dword [ebp - 0x50], 0x665ce409
mov dword [ebp - 0x4c], 0x3cd8eed2
add dword [ebp - 0x4c], 0xf55a5d73
mov dword [ebp - 0x48], 0x33b5e73e
add dword [ebp - 0x48], 0x18965cf0
mov dword [ebp - 0x44], 0x5bc3a1bb
sub dword [ebp - 0x44], 0x5bc3a1bb
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa7882643
add eax, 0x6877ead9
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x70cc72e5
add dword [ebp - 0x50], 0x3a5f671
mov dword [ebp - 0x4c], 0xf4794feb
sub dword [ebp - 0x4c], 0xb30cee76
mov dword [ebp - 0x48], 0x6645c685
add dword [ebp - 0x48], 0xfd29a5e7
mov dword [ebp - 0x44], 0xcf5d2647
add dword [ebp - 0x44], 0x30a2d9b9
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x88c693dd
sub eax, 0x78c682dd
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x407c2
push 0
call eax
mov ecx, 0x4902241e
sub ecx, 0x4901da4e
xor esi, esi
add esi, eax
mov edi, 0x29410448
sub edi, 0x193d9a48
add edi, dword [ebp - 0x40]
mov ebx, 0xdb27eaab
mov edx, dword [edi]
sub dword [ebp - 0x24], edx
xor edx, ebx
sub dword [ebp - 0x1c], ecx
mov dword [esi], edx
xor dword [ebp - 0x28], 0xa2112a01
add esi, 4
add edi, 0x462c192f
sub edi, 0x462c192b
loop 0x10026d3b
add eax, 0x11a13
xor ebx, ebx
add ebx, eax
add eax, 0xef6921c6
add eax, 0x1096de3f
mov ecx, 0x45df085f
sub ecx, 0x35df085f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x1002e08f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100075dc]
jne 0x1002e6f5
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10032ca0], eax
mov dword [0x10032c9c], ecx
mov dword [0x10032c98], edx
mov dword [0x10032c94], ebx
mov dword [0x10032c90], esi
mov dword [0x10032c8c], edi
mov word [0x10032cb8], ss
mov word [0x10032cac], cs
mov word [0x10032c88], ds
mov word [0x10032c84], es
mov word [0x10032c80], fs
mov word [0x10032c7c], gs
pushfd
pop dword [0x10032cb0]
mov eax, dword [ebp]
mov dword [0x10032ca4], eax
mov eax, dword [ebp + 4]
mov dword [0x10032ca8], eax
lea eax, [ebp + 8]
mov dword [0x10032cb4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10032bf0], 0x10001
mov eax, dword [0x10032ca8]
mov dword [0x10032ba4], eax
mov dword [0x10032b98], 0xc0000409
mov dword [0x10032b9c], 1
mov eax, dword [0x100075dc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10032ad8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10032be8], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100075ec
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10032be8], 0
jne 0x1002e7e1
push 1
call sub.MSVCR100.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 0x40ccb5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40ccc4
pop dword [ebp - 0x4c]
mov eax, 0x462e1357
add eax, 0xba12b96d
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x8eaeb690
add dword [ebp - 0x5c], 0xbfa38ebb
mov dword [ebp - 0x58], 0x2840de6a
add dword [ebp - 0x58], 0x9f26ddb
mov dword [ebp - 0x54], 0x3a2c8e22
add dword [ebp - 0x54], 0x121fb60c
mov dword [ebp - 0x50], 0x196c9d7e
sub dword [ebp - 0x50], 0x196c9d7e
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xf3622491
add dword [ebp - 0x5c], 0x811044c5
mov dword [ebp - 0x58], 0x1abc406c
add dword [ebp - 0x58], 0x26b02109
mov dword [ebp - 0x54], 0x7db0ec90
add dword [ebp - 0x54], 0xe5be7fdc
mov dword [ebp - 0x50], 0xc5fdac41
sub dword [ebp - 0x50], 0xc5fdac41
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x8f1e1d95
sub eax, 0x8ed86d15
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x4c6f8
push 0
call eax
mov ecx, 0xee188098
sub ecx, 0xee183ca4
xor esi, esi
add esi, eax
mov edx, 0x476000
add edx, dword [ebp - 0x4c]
mov edi, 0x62cc0bb8
add dword [ebp - 4], 0xf1c4c321
mov ebx, dword [edx]
xor dword [ebp - 0x48], 0x6a030fb9
sub ebx, edi
add dword [ebp - 0x10], edx
mov dword [esi], ebx
mov dword [ebp - 0x2c], 0xd70714b9
add esi, 0x408319d9
sub esi, 0x408319d5
add edx, 4
loop 0x40cdd7
add eax, 0xa7ed304b
sub eax, 0xa7ec2da8
xor ebx, ebx
add ebx, eax
add eax, 0xb1a5bed0
sub eax, 0xb1a5becb
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x401030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
ret

Function at 0x401b50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x401b82
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.004019b0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004029b0
pop ecx
mov edi, eax
test edi, edi
je 0x401bd7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [edi + eax*4]
push eax
push edi
push esi
call fcn.004019b0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x405448], eax
mov dword [0x40544c], edi
jmp 0x401bdf
push 0xfffffffffffffffc
call fcn.00401cb0
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 4], edx
test eax, eax
jne 0x401c10
mov eax, dword [0x40551c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, eax
xor ecx, ecx
jmp 0x401c31
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x401c1e
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x401c2f
add ecx, edi
add esi, edi
cmp byte [esi], 0
jne 0x401c19
inc ecx
push ecx
call fcn.004029b0
pop ecx
mov ebx, eax
mov dword [0x405454], eax
cmp dword [0x405454], 0
je 0x401c9d
mov eax, dword [ebp - 4]
mov esi, eax
jmp 0x401c7f
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x401c5a
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x401c7d
mov ecx, ebx
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x401c70
pop eax
add ebx, edi
add esi, edi
cmp byte [esi], 0
jne 0x401c55
mov byte [ebx], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40551c]
je 0x401ca5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x401ca5
push 0xfffffffffffffffc
call fcn.00401cb0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401cb0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov eax, dword [esp + 8]
lea edx, [eax + 0x10]
cmp edx, 0xe
ja 0x401d2d
jmp dword [eax*4 + 0x40406c]
mov ebx, 0x404091
push 0x405740
push 0x40408b
call fcn.00402ac0
add esp, 8
push 0x405740
push ebx
call fcn.00402ac0
add esp, 8
push 0x405740
push 0x40407a
call fcn.00402ac0
add esp, 8
push 0x40408b
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x404068
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xff
call fcn.00402af0
pop ecx
pop ebx
ret