joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405cba
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405cb1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405d2f
cmp dword [0x7be3a0], ebx
je 0x405d2f
cmp byte [0x7c2bc0], bl
je 0x405cf9
cmp dword [0x40a058], 0xffffffff
jne 0x405d02
push 4
push 0x40000000
push 0x7c2bc0
call fcn.00405a49
mov dword [0x40a058], eax
cmp eax, 0xffffffff
je 0x405d2f
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405d2f
push esi
push 0x408cc4
mov esi, 0x7be3c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x405f2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7b9260
push esi
call fcn.00405bd9
push esi
call fcn.004059b2
mov edi, eax
test edi, edi
jne 0x405f4d
xor eax, eax
jmp 0x405fa5
push edi
call fcn.00405bfb
test byte [0x7c70a8], 0x80
je 0x405f66
mov al, byte [edi]
test al, al
je 0x405f49
cmp al, 0x5c
je 0x405f49
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405f86
push esi
call fcn.00405e47
test eax, eax
je 0x405f80
test byte [eax], 0x10
je 0x405faa
push esi
call fcn.00405f05
push esi
call ebx
cmp eax, edi
jg 0x405f71
push esi
call fcn.00405ed8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405fa4
Function at 0x40625e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e6e
mov esi, dword [esp + 0x18]
test eax, eax
je 0x406282
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4063bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7bb260], 0x4c554e
mov edi, 0x400
mov ebp, 0x7bb260
test esi, esi
je 0x4062c6
push 1
push 0
push esi
call fcn.00405a49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4063c1
cmp eax, edi
jg 0x4063c1
push edi
mov esi, 0x7bbba0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4063c1
cmp eax, edi
jg 0x4063c1
push esi
push ebp
push str._s_s_r_n
push 0x7bb660
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x7c702c]
push dword [eax + 0x150]
push esi
call fcn.00406004
push 4
push 0xc0000000
push esi
call fcn.00405a49
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x4063bb
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4063b4
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4063b4
cmp edi, dword [esp + 0x18]
jne 0x4063b4
push str._Rename__r_n
push esi
call fcn.00405fae
test eax, eax
jne 0x4063c8
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405bd9
add edi, 0xa
mov eax, edi
push ebx
push 0x7bb660
add eax, esi
push eax
call fcn.00405a05
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7c7110]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408d70
add eax, 0xa
push eax
call fcn.00405fae
test eax, eax
je 0x40637f
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x4063ef
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4063e4
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x406381
Function at 0x40661b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x7bdfa4], 0
jne 0x406659
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40662f
mov dword [ecx*4 + 0x7bdfa0], eax
inc ecx
cmp ecx, 0x100
jl 0x40662a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406686
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x7bdfa0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406667
not eax
pop ebp
ret 0xc
Function at 0x404c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
not ebx
not ecx
mov eax, ecx
mov dword [ebp - 8], ebx
sub edx, 1
mov edi, edx
test edi, edi
jl 0x404cdc
mov edx, 0xffffffff
lea esi, [esi]
add edx, 1
mov ecx, eax
and ecx, 0xff
mov esi, dword [ebp - 4]
movzx ebx, byte [esi]
xor ecx, ebx
mov ebx, eax
mov esi, dword [ebp - 8]
shrd ebx, esi, 8
shr esi, 8
xor ebx, dword [ecx*8 + 0x4f02d0]
xor esi, dword [ecx*8 + 0x4f02d4]
mov eax, ebx
mov dword [ebp - 8], esi
add dword [ebp - 4], 1
cmp edi, edx
jg 0x404ca0
mov esi, esi
mov edx, dword [ebp - 8]
not edx
not eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
sar eax, 0x1f
mov ebx, 0
add esi, ecx
adc eax, ebx
mov ecx, esi
not eax
not ecx
mov dword [ebp - 8], ecx
lea ecx, [edx - 1]
test ecx, ecx
jl 0x404d6c
mov eax, 0xffffffff
lea esi, [esi]
add eax, 1
mov bl, byte [edi]
movzx edx, bl
add edx, dword [ebp - 8]
and edx, 0xff
mov esi, dword [ebp - 4]
mov dl, byte [esi + edx + 4]
mov byte [edi], dl
mov dl, byte [ebp - 8]
xor dl, bl
and edx, 0xff
mov esi, dword [ebp - 8]
shr esi, 8
xor esi, dword [edx*4 + 0x4efed0]
mov dword [ebp - 8], esi
add edi, 1
cmp ecx, eax
jg 0x404d30
mov eax, dword [ebp - 8]
not eax
mov edx, dword [ebp - 4]
sub eax, dword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
sar eax, 0x1f
mov ebx, 0
add esi, ecx
adc eax, ebx
mov ecx, esi
not eax
not ecx
mov dword [ebp - 8], ecx
lea ecx, [edx - 1]
test ecx, ecx
jl 0x404e00
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
movzx eax, byte [edi]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x104]
movzx edx, byte [ebp - 8]
sub eax, edx
mov byte [ebp - 0xc], al
mov byte [edi], al
mov al, byte [ebp - 8]
xor al, byte [ebp - 0xc]
and eax, 0xff
mov edx, dword [ebp - 8]
shr edx, 8
xor edx, dword [eax*4 + 0x4efed0]
mov dword [ebp - 8], edx
add edi, 1
cmp ecx, ebx
jg 0x404dc0
mov esi, esi
mov eax, dword [ebp - 8]
not eax
mov edx, dword [ebp - 4]
sub eax, dword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edi, edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, esi
sar eax, 0x1f
mov edx, 0
add esi, ebx
adc eax, edx
mov edx, esi
not eax
not edx
mov dword [ebp - 0xc], edx
sub ecx, 1
test ecx, ecx
jl 0x404ea4
mov ebx, 0xffffffff
add ebx, 1
mov eax, dword [ebp - 8]
movzx esi, byte [eax]
mov edx, dword [ebp - 4]
movzx eax, byte [edx + esi + 0x104]
movzx edx, byte [ebp - 0xc]
sub eax, edx
mov byte [ebp - 0x10], al
mov byte [edi], al
mov al, byte [ebp - 0xc]
xor al, byte [ebp - 0x10]
movzx edx, al
mov eax, dword [ebp - 0xc]
shr eax, 8
xor eax, dword [edx*4 + 0x4efed0]
mov dword [ebp - 0xc], eax
add dword [ebp - 8], 1
add edi, 1
cmp ecx, ebx
jg 0x404e60
nop
mov eax, dword [ebp - 0xc]
not eax
mov edx, dword [ebp - 4]
sub eax, dword [edx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405aa0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x5c], 0
lea eax, [ebx + 0x1c]
xor cl, cl
mov edx, 0x40
call fcn.00447d10
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
pop ebx
ret
Function at 0x40f360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x40f388
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x40f486
mov esi, esi
xor eax, eax
push 0x40f467
push ebp
push 0x4598c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push 0x400000
mov eax, dword [ebp - 0xc]
mov cl, 1
xor edx, edx
call fcn.0047fd20
mov eax, dword [ebp - 0xc]
mov byte [eax + 9], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 0x134], edx
call fcn.004025a0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x138], eax
mov dword [ecx + 0x13c], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x138]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x13c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x130], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x13]
mov byte [edx + 0x158], al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x159], 0
mov eax, dword [ebp - 0xc]
call fcn.0047fe80
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x40f45c
cmp dword [ebp - 8], 0
je 0x40f45c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x40f486
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4532d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4f1fa0], eax
xor eax, eax
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x4f1f9c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x4f1fa0], edx
cmp eax, 0x26f
jl 0x4532e0
mov dword [0x4b22c0], 0x270
mov esp, ebp
pop ebp
ret

Function at 0x453320
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0xffffffff
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x4f1fa4]
mov ebx, dword [eax*4 + 0x4f1fa0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4f25d4]
mov dword [eax*4 + 0x4f1fa0], edx
cmp eax, 0xe2
jl 0x453330
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x4f1fa4]
mov ebx, dword [eax*4 + 0x4f1fa0]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x4f1c14]
mov dword [eax*4 + 0x4f1fa0], edx
cmp eax, 0x26e
jl 0x453380
mov edx, dword [0x4f1fa0]
mov ecx, dword [0x4f295c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x4f25d0]
mov dword [0x4f295c], eax
mov dword [0x4b22c0], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453410
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x4b22c0]
add dword [0x4b22c0], 1
mov eax, dword [0x4f0b40]
cmp eax, dword [0x4b1a10]
jne 0x453436
cmp ebx, 0x271
jb 0x453458
mov eax, dword [0x4f0b40]
call fcn.004532d0
not dword [0x4f0b40]
mov eax, dword [0x4f0b40]
mov dword [0x4b1a10], eax
mov ebx, 0x270
lea esi, [esi]
cmp ebx, 0x270
jne 0x453474
call fcn.00453320
xor ebx, ebx
mov dword [0x4b22c0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x4f1fa0]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455000
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ax, word [0x4b1750]
cmp ax, 0xcb
je 0x45510c
cmp ax, 0xcc
je 0x45510c
mov edx, dword [0x4f2ba0]
test edx, edx
je 0x455035
mov eax, dword [0x4f2a50]
call edx
mov ebx, eax
jmp 0x45503a
mov ebx, 0x4f2a54
cmp word [0x4f2a40], 0
jle 0x455060
mov eax, 0x4f2a20
call fcn.004552d0
mov eax, ebx
call fcn.00454b80
mov eax, ebx
call fcn.00454c00
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x455082
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x45507d
mov edx, edi
mov eax, ebx
call fcn.00453fd0
jmp 0x455080
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x455068
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x4f2a40], 0
jle 0x45510c
mov edx, 0x4f2960
mov eax, ebx
call fcn.00454120
mov edi, eax
test edi, edi
je 0x4550dc
mov eax, dword [0x4f29f4]
mov dword [edi + 0xc], eax
cmp dword [0x4f29f4], 0
je 0x4550d0
mov eax, dword [0x4f29f4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x4f29f4], eax
nop
sub word [0x4f2a40], 1
cmp word [0x4f2a40], 0
sete bl
mov eax, 0x4f2a20
call fcn.004552f0
test bl, bl
je 0x45510c
mov eax, 0x4f2a20
call fcn.004552c0
lea esi, [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457e30
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00457e20
push ebp
push 0x459540
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x457e69
mov eax, 0x4f1e20
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0044f910
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x457e8c
mov eax, 0x4f1e20
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x457e99
mov eax, 0x4f1e20
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x457f5e
jmp 0x457eb3
sub edx, 1
cmp edx, 3
jbe 0x457ec4
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x457eb0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x457edd
cmp eax, ecx
je 0x457ee8
lea eax, [ebp - 0xc]
call fcn.0044f910
lea esi, [esi]
mov eax, 0x401200
mov edx, dword [ebp - 0xc]
call fcn.00457d90
mov edx, dword [0x4f2ba0]
test edx, edx
je 0x457f08
mov eax, dword [0x4f1c80]
call edx
jmp 0x457f0d
mov eax, 0x4f1c84
cmp word [eax], 0
jne 0x457f6a
mov eax, esi
test esi, esi
je 0x457f1d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x457f6a
cmp word [esi + 2], 0x3a
jne 0x457f6a
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x457f4f
mov eax, 0x4f1e20
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x457f6a
mov eax, 0x401200
mov edx, esi
call fcn.00457d90
mov edx, dword [0x4f2ba0]
test edx, edx
je 0x457f7d
mov eax, dword [0x4f1c80]
call edx
jmp 0x457f82
mov eax, 0x4f1c84
cmp word [eax], 2
jne 0x457fa8
mov edx, dword [0x4f2ba0]
test edx, edx
je 0x457f9c
mov eax, dword [0x4f1c80]
call edx
jmp 0x457fa1
mov eax, 0x4f1c84
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00457e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00457fc0
push ebp
push 0x459540
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x45810a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0044f910
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x45806f
mov edx, 0x4f1e20
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4580c1
call sub.kernel32.dll_GetLastError
call fcn.00448750
lea eax, [ebp - 0x10]
call fcn.0044e680
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0044eb10
mov edx, dword [ebp - 0x14]
mov ecx, 0x4d7920
lea eax, [ebp - 0x10]
call fcn.0044e9b0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0044f290
jmp 0x458158
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x4580da
cmp eax, ecx
je 0x4580e4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0044f910
cmp byte [0x4b19d0], 0
jne 0x458158
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0044fe50
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0044f2d0
lea esi, [esi]
jmp 0x458158
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0044f910
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x45812e
mov eax, 0x4f1e20
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x4b19d0], 0
jne 0x458158
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0044fe50
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0044f2d0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00457fc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458670
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x4f1d80], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00458850
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x4f1d80]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00447cd0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4b17d0], eax
mov ebx, eax
jmp 0x458813
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4586f8
cmp byte [ebx], 0
je 0x45881c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x458773
mov al, byte [ebx]
cmp al, 1
jb 0x458768
sub al, 0x20
jbe 0x458738
sub al, 2
je 0x45874c
jmp 0x458768
mov al, byte [ebp - 0x114]
test al, al
je 0x458778
add dword [ebp - 0x110], 1
jmp 0x458770
cmp byte [ebx + 1], 0x22
je 0x458763
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x458770
add ebx, 1
jmp 0x458770
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x458728
test dword [ebp - 0x10c], 0xffffffff
je 0x45880c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00458850
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x4f1d80]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x458803
mov al, byte [ebx]
cmp al, 1
jb 0x4587f8
sub al, 0x20
jbe 0x4587c8
sub al, 2
je 0x4587dc
jmp 0x4587f8
mov al, byte [ebp - 0x114]
test al, al
je 0x458808
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x458800
cmp byte [ebx + 1], 0x22
je 0x4587f3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x458800
add ebx, 1
jmp 0x458800
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4587b8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4586fb
mov ebx, dword [ebp - 0x10c]
mov dword [0x4f1d70], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x4f1d80
call fcn.00454e30
mov eax, dword [0x4f1d80]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x45c18b
jmp 0x45c198
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x45c1a0
jmp 0x45c1a8
jmp 0x45c256
xor eax, eax
push 0x45c233
push ebp
push 0x4598c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x45c1de
jmp 0x45c204
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.0047a080
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x45c213
jmp 0x45c228
cmp dword [ebp - 8], 0
jne 0x45c21b
jmp 0x45c228
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x45c256
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4