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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100c9228]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100365de
cmp word [ebx], dx
jne 0x100365de
or byte [eax + edi + 0x28], 4
jmp 0x100365e3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10036746
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10036726
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10036624
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003665a
cmp eax, edx
jae 0x10036668
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100365ff
jmp 0x10036746
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10036721
cmp dword [ebp - 0x18], 0
je 0x10036721
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c9228]
test byte [eax + edi + 0x28], 0x48
je 0x100366f7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100366bb
mov word [esi], cx
jmp 0x100366f2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c9228]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100c9228]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c9228]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10036746
pop eax
cmp word [ebp - 4], ax
jne 0x10036707
cmp esi, ebx
jne 0x10036707
mov word [esi], ax
jmp 0x10036743
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10036fd1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10036746
push 0xd
pop eax
jmp 0x10036702
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c9228]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10036740
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10036746
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003af22
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1003afbf
push ebx
push esi
call fcn.1003aeeb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10039ce7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003af6c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003afbe
push edi
push eax
call fcn.100371b2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003af8c
call fcn.10033fc4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003afbd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10039ce7
add esp, 0x20
test eax, eax
jne 0x1003afab
push edi
call fcn.10033fc4
jmp 0x1003afb3
push ebx
call fcn.10033fc4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003d23c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10032352
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003d2ab
cmp esi, dword [ebp - 4]
je 0x1003d2a6
cmp dword [ebp + 0xc], 0
je 0x1003d2a6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003d283
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003cd8e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003d2ad
xor eax, eax
inc eax
jmp 0x1003d2ad
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1003d312
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c7140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10032352
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10032352
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1003d389
cmp word [ecx], dx
je 0x1003d389
mov eax, dword [0x100bdc74]
push edi
dec eax
push eax
push 0x100bdb60
call fcn.1003d2b1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003d3fc
cmp word [eax], dx
je 0x1003d3fc
mov eax, dword [edi]
test eax, eax
je 0x1003d3ad
cmp word [eax], dx
je 0x1003d3ad
lea eax, [ebp - 0x10]
push eax
call fcn.1003cc94
jmp 0x1003d3b6
lea eax, [ebp - 0x10]
push eax
call fcn.1003cd2f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003d426
mov eax, dword [0x100bdb5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100bd850
call fcn.1003d2b1
add esp, 0xc
test al, al
je 0x1003d426
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003d3f1
cmp word [eax], di
je 0x1003d3f1
lea eax, [ebp - 0x10]
push eax
call fcn.1003cc94
pop ecx
jmp 0x1003d428
lea eax, [ebp - 0x10]
push eax
call fcn.1003cd2f
jmp 0x1003d3ee
mov eax, dword [edi]
test eax, eax
je 0x1003d413
cmp word [eax], dx
je 0x1003d413
lea eax, [ebp - 0x10]
push eax
call fcn.1003cc49
pop ecx
jmp 0x1003d426
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1003d4f1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003d136
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003d4f1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003d4f1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003d4f1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003d47e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10034635
test ebx, ebx
je 0x1003d4ec
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10034635
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003d4f1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003d4f1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10041874
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003d4f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100230bc
leave
ret
Function at 0x10042101
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004207d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10042270
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10042270
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10042225
jg 0x1004215d
test eax, eax
je 0x1004221b
push 1
push 0x1000
call fcn.10033ffe
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10042180
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10042212
push 0x8000
push ebx
call fcn.10041fae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100421a9
jg 0x100421a4
cmp ecx, 0x1000
jb 0x100421a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10035805
add esp, 0x10
cmp eax, 0xffffffff
je 0x100421ee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100421a4
jl 0x100421d5
test ecx, ecx
jne 0x10042196
push dword [ebp - 0xc]
push ebx
call fcn.10041fae
push esi
call fcn.10033fc4
add esp, 0xc
xor ebx, ebx
jmp 0x1004227e
cmp byte [edi + 0x24], 0
je 0x10042205
cmp dword [edi + 0x20], 5
jne 0x10042205
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10042210
mov ebx, dword [edi + 0x18]
jmp 0x10042212
xor ebx, ebx
push esi
call fcn.10033fc4
pop ecx
jmp 0x1004227e
test ecx, ecx
jg 0x100421e7
jl 0x10042225
test eax, eax
jae 0x100421e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10036fd1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10042245
cmp byte [edi + 0x1c], 0
je 0x100421e7
jmp 0x10042276
push ebx
call fcn.1003da06
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100421e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004227e
cmp byte [edi + 0x1c], 0
je 0x1004227b
mov ebx, dword [edi + 0x18]
jmp 0x1004227e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10036fd1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10043000
Capabilities:
Parse pe header

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

Disassembly:
mov eax, dword [0x47214c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x4057f2
push 0
push 0
call edi
mov eax, dword [0x47214c]
cmp esi, 0x845013
jne 0x405809
mov eax, dword [0x42b930]
add eax, 0xa231
mov dword [0x47214c], eax
cmp eax, 0x141
jne 0x405824
mov dword [0x42cfe8], 0xec58acac
mov dword [0x42cfec], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x4057e0
call fcn.00405530
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x408dac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408dea
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408df1
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c688
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408f90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43b424], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408fcd
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408fb8
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408faa
mov dword [ecx*4 + 0x43b420], eax
inc ecx
cmp ecx, 0x100
jne 0x408fa3
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408ff0
inc edx
mov cl, byte [edx - 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43b420]
jmp 0x408fd7
pop ebx
not eax
pop esi
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x445a4a45
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x64063f0f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100022c9
Capabilities:
Create thread

Disassembly:
mov eax, 0x25e
mov word [0x10006014], ax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ws2_32
mov dword [0x10006374], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0x10002304
mov dword [0x10006370], eax
call dword [sym.imp.MSVCR120.dll__beginthread]
xor eax, eax
add esp, 0xc
inc eax
ret

Function at 0x1000246a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
mov dword [ebp - 0x18], 0x5dc
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push str.pastebin.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x1bb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
mov word [ebp - 0x14], bx
call dword [sym.imp.WS2_32.dll_connect]
push ecx
push ecx
push dword [sym.imp.WS2_32.dll_recv]
push dword [sym.imp.WS2_32.dll_send]
push esi
call section..text
add esp, 0x14
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str._r_n_r_n
push dword [0x100063dc]
call dword [sym.imp.MSVCR120.dll_strstr]
push 0xa
lea ecx, [ebp - 0x1c]
add eax, 4
push ecx
push eax
call dword [sym.imp.MSVCR120.dll_strtoul]
mov ecx, dword [ebp - 4]
add esp, 0x14
mov dword [edi], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100028b6
mov esp, ebp
pop ebp
ret
Function at 0x1000287d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov edx, dword [ecx]
je 0x100028b0
push esi
push edi
mov edi, dword [ebp + 8]
not edx
xor esi, esi
movzx eax, byte [esi + edi]
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x10004310]
inc esi
cmp esi, dword [ebp + 0xc]
jne 0x10002891
pop edi
not edx
pop esi
mov dword [ecx], edx
pop ebp
ret 8
Function at 0x1008cf2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop eax
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
lea edi, [edi + 1]
jmp 0x1008cb9
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
jmp 0x1008d2d
ja 0x1004033
xor eax, 0xa42ec8bf
sbb eax, dword [esp + 4]
jmp 0x1008ca7
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
push ebx
jmp 0x1008c75
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
jmp 0x1008cc5
ret
jne 0x1004088
lea edi, [ebx]
lea esi, [ebx]
add edi, dword [edx + 0x1c]
jmp 0x1008b86
sub dword [esp], eax
cmp byte [edi], 1
pop eax
jmp 0x1008b5e
ret 4
mov edx, ebx
mov esi, ebx
mov eax, ebx
add eax, dword [ebx + 0x3c]
jmp 0x100407f
inc ecx
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x1008c81
push 0
jmp 0x1004032
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x417c6b
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push str.uxtheme.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
mov dword [edi], esi
je 0x417c6b
test ebx, ebx
invalid

Function at 0x44e8e1
Capabilities:
Check for software breakpoints

Disassembly:
insb byte es:[edi], dx
inc esi
sahf
dec esi
sar byte [ebx], cl
adc bl, byte [eax + 0x4b1797c3]
sar byte [edx + 0x52], cl
or ch, ah
stosd dword es:[edi], eax
pop es
imul edi, dword [edi - 0x4ebcf791], 0xfffffffa
and dword [edi - 0x4c7f18b8], edi
mov word [edx - 0x1e], ds
pop edx
loop 0x44e8c0
mov es, word [esi - 0x52d66577]
pop edx
loop 0x44e8c0
mov es, word [esi - 0x52d66577]
pop edx
rol byte [eax - 0x35], cl
add cl, byte [eax - 0x4c]
push esp
aas
aaa
mov esi, 0xde78e67e
cmp dword [eax + 0x41eaecd4], edx
not dword [eax - 0x6f63bf4d]
push edx
cmp al, 0xcc
je 0x44e8e4
push edx
xchg edx, eax
inc eax
xor dword [eax - 0x7c], esi
outsb dx, byte fs:[esi]
xor byte [edi + 0x5e], ah
add byte [eax - 0x7e], ah
inc esp
pop ecx
ret 0xae70

Function at 0x4ba3d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2360
cmp edx, dword [eax]
je 0x4ba3f3
add eax, 8
inc ecx
cmp eax, 0x4c23f0
jl 0x4ba3e4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2360]
jne 0x4ba521
mov eax, dword [0x4c6cec]
cmp eax, 1
je 0x4ba4fb
test eax, eax
jne 0x4ba424
cmp dword [0x4c228c], 1
je 0x4ba4fb
cmp edx, 0xfc
je 0x4ba521
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba45b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004badb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb240
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba49e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb240
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf914
push edi
call fcn.004bd110
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004badb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004badc0
lea eax, [ebp - 0xa0]
push 0x4bf8f4
push eax
call fcn.004badc0
push dword [esi + 0x4c2364]
lea eax, [ebp - 0xa0]
push eax
call fcn.004badc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd084
add esp, 0x2c
pop edi
jmp 0x4ba521
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2364]
push 0
push eax
push dword [esi]
call fcn.004bb240
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 0x404490
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x408040]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push 0x4e3
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0x4e3
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push str.Russian
push 0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
add esp, 8
push 0xf
push dword [0x46a6d8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff6
mov dword [esp + 0x18], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp + 0x10]
and eax, 0xffffffbf
push eax
push 0xfffffffffffffff6
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push 1
call esi
push eax
call dword [sym.imp.USER32.dll_ShowScrollBar]
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffaffff
push eax
push 0xfffffffffffffff0
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [esp + 0x14]
push eax
push dword [0x46a6d8]
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push dword [0x46a6d8]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
push 0xfffffffffffffff5
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov dword [esp + 0xc], 0x1a000a
push dword [esp + 0xc]
push eax
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x406814
call fcn.00404a80
push 0xfffffffffffffff5
call edi
mov dword [esp + 0xc], 0x1a002d
push dword [esp + 0xc]
push eax
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x406824
call fcn.00404a80
push 0xfffffffffffffff5
call edi
mov dword [esp + 0xc], 0x1a001e
push dword [esp + 0xc]
push eax
call esi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x406830
call fcn.00404a80
mov dword [0x439930], 5
mov dword [0x439920], 5
call fcn.004011f0
call fcn.00403d80
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404d54
mov esp, ebp
pop ebp
ret

Function at 0x4058c8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405907
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405907
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405907
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405907
cmp dword [ecx + 0x74], 0xe
jbe 0x405907
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xadd370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xadd38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb06074
push ecx
mov edi, eax
call fcn.00af1198
mov esi, eax
add esp, 8
test esi, esi
jne 0xadd3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00af102e
push esi
call fcn.00af0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret