joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c7f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040202c
mov eax, dword [0x593258]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406cf8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49c83b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49c997
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e83
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x598788]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040386e
mov ecx, dword [esi*4 + 0x598788]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49c990
cmp eax, dword [edi + ecx + 0x24]
jne 0x49c990
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49c990
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040386e
add esp, 0x14
test edx, edx
jl 0x49c990
jg 0x49c906
test eax, eax
jb 0x49c990
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49c990
jl 0x49c920
cmp dword [ebp - 0x1008], eax
ja 0x49c990
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49c93e
test ebx, ebx
je 0x49c977
cmp ecx, edi
jae 0x49c977
mov al, byte [ecx]
cmp al, 0xd
jne 0x49c958
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49c964
cmp byte [ecx + 1], 0xa
jne 0x49c964
inc ecx
jmp 0x49c964
movzx eax, al
movsx eax, byte [eax + 0x593570]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49c93e
cmp edx, ebx
jne 0x49c93e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49c995
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035f8
leave
ret
Function at 0x49cb9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x598788]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49cbdc
cmp byte [ebx], 0xa
jne 0x49cbdc
or byte [eax + edi + 0x28], 4
jmp 0x49cbe1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49ccdf
mov al, byte [edx]
cmp al, 0x1a
je 0x49ccc1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49cc10
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49cc35
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49cc3f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49cbf2
jmp 0x49ccdf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ccbc
cmp dword [ebp - 0xc], 0
je 0x49ccbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x598788]
test byte [eax + edi + 0x28], 0x48
je 0x49cc96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49cc81
mov byte [esi], dl
jmp 0x49cc92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x598788]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49ccdf
cmp byte [ebp - 1], 0xa
jne 0x49cca5
cmp esi, ebx
jne 0x49cca5
mov byte [esi], 0xa
jmp 0x49ccde
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401aff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49ccdf
mov byte [esi], 0xd
jmp 0x49ccde
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x598788]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49ccdb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ccdf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49cd3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x598788]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49cd7e
cmp word [esi], dx
jne 0x49cd7e
or byte [edi + eax + 0x28], 4
jmp 0x49cd83
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49ced6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49ceb6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49cdc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49cdfb
cmp eax, edx
jae 0x49ce07
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49cd9d
jmp 0x49ced6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ceb2
cmp dword [ebp - 0x14], 0
je 0x49ceb2
mov eax, dword [ebx*4 + 0x598788]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49ce8a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49ce53
mov word [esi], cx
jmp 0x49ce86
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x598788]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x598788]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x598788]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49ced6
pop ebx
cmp word [ebp - 4], bx
jne 0x49ce9b
cmp esi, dword [ebp + 0xc]
jne 0x49ce9b
mov word [esi], bx
jmp 0x49ced3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401aff
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49ced6
push 0xd
jmp 0x49cecf
mov ecx, dword [ebx*4 + 0x598788]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49cecd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ced6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2d81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x593258]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a2dcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a3243
test al, al
jne 0x4a2dc6
sub edx, 2
cmp edx, edi
jne 0x4a2dac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a2dee
lea eax, [edi + 2]
cmp edx, eax
je 0x4a2dee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a297a
add esp, 0x10
jmp 0x4a2ee8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a3243
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2e31
push dword [ebp - 0x25c]
jmp 0x4a2dde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a2e6e
cmp word [ebp - 0x226], 0
je 0x4a2e8f
cmp word [ebp - 0x226], ax
jne 0x4a2e6e
cmp word [ebp - 0x224], 0
je 0x4a2e8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a297a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a2edb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a2e48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a2ec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a2ee8
push 0x4a2362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406217
add esp, 0x10
jmp 0x4a2eb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035f8
leave
ret
Function at 0x401645
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401654
pop dword [ebp - 0x48]
mov eax, 0xe58150e1
sub eax, 0xe5413a8d
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x52bc2bab
add dword [ebp - 0x58], 0xfb9619a0
mov dword [ebp - 0x54], 0x56d187e9
add dword [ebp - 0x54], 0xdb61c45c
mov dword [ebp - 0x50], 0xec8eafe6
add dword [ebp - 0x50], 0x5fbd9448
mov dword [ebp - 0x4c], 0x32189d49
add dword [ebp - 0x4c], 0xcde762b7
lea eax, [ebp - 0x58]
push eax
mov eax, 0xd0df47b
add eax, 0xf332dbd1
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xec89a2c4
add dword [ebp - 0x58], 0x87e8c692
mov dword [ebp - 0x54], 0x1d50b2bb
add dword [ebp - 0x54], 0x241baeba
mov dword [ebp - 0x50], 0x3f74694b
add dword [ebp - 0x50], 0x23fb0321
mov dword [ebp - 0x4c], 0x2308c781
sub dword [ebp - 0x4c], 0x2308c781
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39789
push 0
call eax
mov ecx, 0x1b67cf7d
add ecx, 0xe4987881
xor ebx, ebx
add ebx, eax
mov esi, 0x21620c41
sub esi, 0x21205c41
add esi, dword [ebp - 0x48]
mov edx, 0x4e50787
add edx, 0x9d39b5fc
xor dword [ebp - 0x10], 0xbedc3bb3
mov edi, dword [esi]
sub edi, edx
add dword [ebp - 0xc], 0xe47347a2
mov dword [ebx], edi
add dword [ebp - 0x30], 0x81195820
add ebx, 0x6130d767
add ebx, 0x9ecf289d
add esi, 0xa184faef
sub esi, 0xa184faeb
loop 0x401773
add eax, 0x112cb
xor ebx, ebx
add ebx, eax
add eax, 0xc88bb59d
add eax, 0x37744a68
mov ecx, 0x36d19533
add ecx, 0xc96e6acd
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x10011180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100111ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100111ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40255d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00408040
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00408040
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401c9e
pop ecx
test eax, eax
je 0x402686
xor eax, eax
movzx ecx, word [eax + 0x414c8c]
mov word [eax + 0x4194b8], cx
inc eax
inc eax
cmp cx, si
jne 0x4025bd
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x4193b0], cx
inc eax
inc eax
cmp cx, si
jne 0x4025d4
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x419430], cx
inc eax
inc eax
cmp cx, si
jne 0x4025ec
cmp dword [0x418070], 3
mov ax, word [ebp - 0x38c]
mov word [0x4194b0], ax
mov ax, word [ebp - 0x2ea]
mov word [0x419538], ax
mov dword [0x41953c], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x402644
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402661
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4150c8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404515
add esp, 0xc
push 0x414fdc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404515
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404506
leave
ret

Function at 0x4026a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
mov dword [0x418070], 0
call fcn.00408040
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402759
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40271e
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x4026ff
cmp eax, 1
jne 0x402759
mov dword [0x418070], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404506
add esp, 0x120
ret
cmp eax, 6
jne 0x402759
mov eax, dword [esp + 8]
test eax, eax
jne 0x40274a
mov dword [0x418070], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404506
add esp, 0x120
ret
cmp eax, 1
jne 0x402759
mov dword [0x418070], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404506
add esp, 0x120
ret
Function at 0x402770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00408040
add esp, 0xc
cmp dword [0x418070], 3
jne 0x4027d0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415040
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00404515
add esp, 0xc
jmp 0x4027df
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x415044
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00404506
add esp, 0x20c
ret

Function at 0x4029c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00408040
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402bd0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402ce0
cmp eax, 0xffffffff
jne 0x402a42
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00404506
add esp, 0x218
ret
push esi
call fcn.004028e0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0x218
ret

Function at 0x402a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebp
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x34], bl
call fcn.00408040
add esp, 0xc
cmp edi, 0xffffffff
je 0x402b50
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402b50
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x402b0d
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x402b23
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x402b39
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x402b50
mov esi, eax
push 0x64
call ebp
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0x228
ret
Function at 0x402b70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
cmp edi, 0xffffffff
je 0x402bc4
mov eax, dword [esp + 0x20]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 0x18
ret

Function at 0x402e20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x4150cc
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00404867
add esp, 0xc
test eax, eax
je 0x402e44
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.004053be
mov eax, dword [esp + 0x1c]
push eax
call fcn.004055e0
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.004053be
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.004051dc
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.00404b5a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00404bee
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.00402f00
mov edx, dword [esp + 0x4c]
push 0x4150d4
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404867
add esp, 0x40
test eax, eax
je 0x402ec5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.00404dcc
mov edx, dword [esp + 0x20]
push edx
call fcn.00404bee
add esp, 0x14
test esi, esi
je 0x402eed
push esi
call fcn.004052a6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4041a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe28
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0xe24], eax
mov eax, dword [esp + 0xe30]
push ebx
push ebp
mov ebp, dword [esp + 0xe34]
push esi
push edi
push 0x400
lea ecx, [esp + 0x234]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.00408040
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.00404592
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404200
sub eax, edx
sar eax, 1
lea edi, [esp + eax*2 + 0x232]
mov ecx, 0x80
mov esi, 0x4199c0
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404227
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.004051dc
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.00408040
add esp, 0xc
push 0x7fe
lea ecx, [esp + 0x636]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x28], 0x10000
mov word [esp + 0x63c], ax
call fcn.00408040
add esp, 0xc
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x34], dx
call fcn.00408040
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0xe44]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x630]
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00403b50
add esp, 8
test eax, eax
je 0x404399
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00403c70
add esp, 0xc
test eax, eax
je 0x404399
lea edx, [esp + 0x630]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edx, esi
call fcn.00403e50
add esp, 0xc
test eax, eax
je 0x404399
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404399
cmp dword [esp + 0x1c], 0
je 0x404399
cmp byte [ebp], 0
jne 0x404399
push 0x419bc0
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00404515
add esp, 0xc
push 0x415184
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.00404867
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404391
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.004043e0
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x4043a6
push ebp
call fcn.004052a6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4043b5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0xe28
ret
Function at 0x401390
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test ecx, ecx
je 0x4013b2
push ecx
push str.ERROR:__s_n
push 2
call edi
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov eax, dword [str.Usage:_uconcmd__options__sysname_command]
xor esi, esi
test eax, eax
je 0x4013e4
nop dword [eax]
push eax
push 0x403194
push 2
call edi
add esp, 4
push eax
call fcn.00401010
lea esi, [esi + 1]
add esp, 0xc
mov eax, dword [esi*4 + 0x403334]
test eax, eax
jne 0x4013c0
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x401f1a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401f59
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401f59
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401f59
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401f59
cmp dword [ecx + 0x74], 0xe
jbe 0x401f59
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x409d2f
pop dword [ebp - 0x18]
mov eax, 0xb1e04d86
add eax, 0x4e604fa9
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3918a
push 0
mov eax, 0x88ca07ef
add eax, 0x7776d8e9
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x41e841cb
sub ecx, 0x41e7fa39
mov esi, eax
mov edi, 0x428808e4
sub edi, 0x4246cd20
add edi, dword [ebp - 0x18]
mov edx, 0x8e1c56ac
mov ebx, dword [edi]
xor ebx, edx
add dword [ebp - 4], 0xb38bb6c0
mov dword [esi], ebx
xor dword [ebp - 0xc], edi
add esi, 0x8f12b169
add esi, 0x70ed4e9b
add edi, 4
loop 0x409d88
add eax, 0x7e4f0546
add eax, 0x81b20bd5
mov ebx, eax
add eax, 5
mov ecx, 0x419b4104
sub ecx, 0x415b4104
add ecx, dword [ebp - 0x18]
call ebx
leave
ret