joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c77ac
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5173c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4fda78
push esi
call fcn.004c5d72
pop ecx
pop ecx
test eax, eax
jne 0x4c77da
xor al, al
jmp 0x4c7857
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004c74e1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4c7814
push dword [ebp - 0x210]
call fcn.004b8181
xor al, al
jmp 0x4c7855
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c781a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4c783a
push edx
call fcn.004c76e3
pop ecx
test al, al
je 0x4c7805
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c7848
mov bl, 1
push dword [ebp - 0x210]
call fcn.004b8181
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b1240
leave
ret
Function at 0x4cbdfe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x51a818]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cbe3e
cmp byte [ebx], 0xa
jne 0x4cbe3e
or byte [edi + eax + 0x28], 4
jmp 0x4cbe43
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4cbf42
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4cbf25
inc eax
cmp dl, 0xd
je 0x4cbe6f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4cbe95
cmp eax, ecx
jae 0x4cbea3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4cbe57
jmp 0x4cbf42
push 0
lea eax, [ebp - 0x10]
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 0x4cbf20
cmp dword [ebp - 0x10], 0
je 0x4cbf20
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x51a818]
test byte [eax + edi + 0x28], 0x48
je 0x4cbefa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4cbee5
mov byte [esi], dl
jmp 0x4cbef6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51a818]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4cbf42
cmp byte [ebp - 1], 0xa
jne 0x4cbf09
cmp esi, ebx
jne 0x4cbf09
mov byte [esi], 0xa
jmp 0x4cbf41
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c8369
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4cbf42
mov byte [esi], 0xd
jmp 0x4cbf41
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x51a818]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cbf3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cbf42
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cbf4b
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 + 0x51a818]
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 0x4cbf91
cmp word [ebx], dx
jne 0x4cbf91
or byte [eax + edi + 0x28], 4
jmp 0x4cbf96
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 0x4cc0f9
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 0x4cc0d9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4cbfd7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4cc00d
cmp eax, edx
jae 0x4cc01b
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 0x4cbfb2
jmp 0x4cc0f9
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 0x4cc0d4
cmp dword [ebp - 0x18], 0
je 0x4cc0d4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x51a818]
test byte [eax + edi + 0x28], 0x48
je 0x4cc0aa
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 0x4cc06e
mov word [esi], cx
jmp 0x4cc0a5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x51a818]
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 + 0x51a818]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x51a818]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4cc0f9
pop eax
cmp word [ebp - 4], ax
jne 0x4cc0ba
cmp esi, ebx
jne 0x4cc0ba
mov word [esi], ax
jmp 0x4cc0f6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c8369
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4cc0f9
push 0xd
pop eax
jmp 0x4cc0b5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x51a818]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4cc0f3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4cc0f9
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 0x4d1c17
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ff67c
push 0x4ff674
push str.FlsAlloc
push 0x1f
call fcn.004d1a42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d1c4b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e3758]
call esi
jmp 0x4d1c51
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d1c95
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ff68c
push 0x4ff684
push str.FlsGetValue
push 0x21
call fcn.004d1a42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d1ccc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e3758]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d1cd4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ff694
push 0x4ff68c
push str.FlsSetValue
push 0x22
call fcn.004d1a42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d1d0e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4e3758]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4d34b4
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.004d3430
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d3623
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d3623
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d35d8
jg 0x4d3510
test eax, eax
je 0x4d35ce
push 1
push 0x1000
call fcn.004d1740
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d3533
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d35c5
push 0x8000
push ebx
call fcn.004c9c4e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d355c
jg 0x4d3557
cmp ecx, 0x1000
jb 0x4d355c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004cd068
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d35a1
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 0x4d3557
jl 0x4d3588
test ecx, ecx
jne 0x4d3549
push dword [ebp - 0xc]
push ebx
call fcn.004c9c4e
push esi
call fcn.004d0067
add esp, 0xc
xor ebx, ebx
jmp 0x4d3631
cmp byte [edi + 0x24], 0
je 0x4d35b8
cmp dword [edi + 0x20], 5
jne 0x4d35b8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d35c3
mov ebx, dword [edi + 0x18]
jmp 0x4d35c5
xor ebx, ebx
push esi
call fcn.004d0067
pop ecx
jmp 0x4d3631
test ecx, ecx
jg 0x4d359a
jl 0x4d35d8
test eax, eax
jae 0x4d359a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c8369
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d35f8
cmp byte [edi + 0x1c], 0
je 0x4d359a
jmp 0x4d3629
push ebx
call fcn.004d33c6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d359a
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 0x4d3631
cmp byte [edi + 0x1c], 0
je 0x4d362e
mov ebx, dword [edi + 0x18]
jmp 0x4d3631
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c8369
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d50c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5173c4]
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 0x4d510f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d525f
test al, al
jne 0x4d5109
sub edx, 2
cmp edx, edi
jne 0x4d50ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d5131
lea eax, [edi + 2]
cmp edx, eax
je 0x4d5131
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d5010
add esp, 0x10
jmp 0x4d522b
push esi
lea ecx, [ebp - 0x255]
call fcn.004d525f
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 0x4d5174
push dword [ebp - 0x25c]
jmp 0x4d5121
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 0x4d51b1
cmp word [ebp - 0x226], 0
je 0x4d51d2
cmp word [ebp - 0x226], ax
jne 0x4d51b1
cmp word [ebp - 0x224], 0
je 0x4d51d2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d5010
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d521e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d518b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d5206
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d522b
push 0x4d4e40
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c5640
add esp, 0x10
jmp 0x4d51fb
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.004b1240
leave
ret

Function at 0x4d5b41
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d5b52
pop esi
ret
push ebx
push edi
push esi
call fcn.004d5b0a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d00a1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d5b7a
push ebx
push esi
push edi
call fcn.004b4160
add esp, 0xc
push 0
call fcn.004d0067
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d5f4a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d5b8f
Function at 0x4d81c9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004cfcc0
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 0x4d8238
cmp esi, dword [ebp - 4]
je 0x4d8233
cmp dword [ebp + 0xc], 0
je 0x4d8233
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d8210
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d7d1b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d823a
xor eax, eax
inc eax
jmp 0x4d823a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d829f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5173c4]
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.004cfcc0
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.004cfcc0
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 0x4d8316
cmp word [ecx], dx
je 0x4d8316
mov eax, dword [0x4ffc94]
push edi
dec eax
push eax
push 0x4ffb80
call fcn.004d823e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d8389
cmp word [eax], dx
je 0x4d8389
mov eax, dword [edi]
test eax, eax
je 0x4d833a
cmp word [eax], dx
je 0x4d833a
lea eax, [ebp - 0x10]
push eax
call fcn.004d7c21
jmp 0x4d8343
lea eax, [ebp - 0x10]
push eax
call fcn.004d7cbc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d83b3
mov eax, dword [0x4ffb7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ff870
call fcn.004d823e
add esp, 0xc
test al, al
je 0x4d83b3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d837e
cmp word [eax], di
je 0x4d837e
lea eax, [ebp - 0x10]
push eax
call fcn.004d7c21
pop ecx
jmp 0x4d83b5
lea eax, [ebp - 0x10]
push eax
call fcn.004d7cbc
jmp 0x4d837b
mov eax, dword [edi]
test eax, eax
je 0x4d83a0
cmp word [eax], dx
je 0x4d83a0
lea eax, [ebp - 0x10]
push eax
call fcn.004d7bd6
pop ecx
jmp 0x4d83b3
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 0x4d847e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d80c3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d847e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d847e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d847e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d840b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d1eb0
test ebx, ebx
je 0x4d8479
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d1eb0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d847e
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 0x4d847e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c8af2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d8480
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b1240
leave
ret
Function at 0x4dc5ef
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5173c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4dc632
call fcn.004b815b
mov dword [eax], 0xf
call fcn.004b816e
mov dword [eax], 0xd
call fcn.004b8070
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1240
leave
ret
test eax, eax
jne 0x4dc639
inc eax
jmp 0x4dc626
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4dc624
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4dc626

Function at 0x4dd780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dd7ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dd7ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret
Function at 0x40b8c2
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0xbc68bb5a
pop esp
xchg esi, eax
out 0x78, eax
out dx, al
adc byte [ecx + 0x42], cl
sar byte [esi], cl
add cl, byte [edx - 0x78ff08e6]
xchg edi, eax
test al, 0x92
cmpsd dword [esi], dword es:[edi]
stc
xchg dword [ecx - 0x1e37955f], ecx
dec ebx
mov byte [0x230b8d28], al
or dl, byte [esi + 0x79]
push edi
cmp esp, ebx
xor dword [esi - 0x58e237f4], esp
mov byte [edi - 0x526240ee], bl
sti
push es
dec eax
jbe 0x40b8e3
rcr dword [edi + ebp*2 - 0x4b], 0xab
mov dl, 0x6b
cmp al, 0xe0
cmp ch, byte [edi]
inc esp
xchg dword [ecx - 0x2d057c31], edi
push edx
mov bl, 0xd5
out dx, eax
and eax, 0x762ce260
and byte [edx + 0x52f65f47], 0x37
xchg eax, eax
pop edx
inc edi
outsb dx, byte [esi]
lea ebp, ss:[ecx - 0x6b]
xchg esi, eax
inc ebp
invalid

Function at 0x40d111
Capabilities:
Encode data using xor

Disassembly:
push 0x6c0206c0
jno 0x40d0ee
retf 0x2849
sbb cl, byte [ebp + 0x76]
stosb byte es:[edi], al
out 0xe7, eax
aaa
push edx
movsb byte es:[edi], byte [esi]
pop ss
pop esi
add dword [ebx + 7], ecx
push esp
je 0x40d0b1
mov ebp, 0x273607d2
daa
lds ebp, [edi - 0x6e]
retf
iretd
pop edi
imul byte [ebp - 0x14]
insd dword es:[edi], dx
in al, dx
loope 0x40d0ce
cmp dh, byte [edx + 0x71a6059b]
or esi, dword [ebx - 0x3c]
mov ebx, 0x2fb61170
push esi
dec ebp
xor eax, 0x54ec19b3
iretd
push cs
jne 0x40d0eb
lds esp, [edx + 0x5ef32e35]
mov edi, 0x622b996
pop ebp
mov ebx, 0xa1c735a3
das
mov byte [0xc51e7394], al
pop esi
ja 0x40d0f0
lds ebx, [esi + 0x77]
ret 0xde0b
or ebx, esi
xor esp, dword [ecx + 0x1dc36ad4]
ja 0x40d0e4
div dword [0x16ab5f46]
cmp byte [ebx - 0x3a], 0x81
pop es
jne 0x40d12a
invalid
lodsb al, byte [esi]
in eax, 0xc1
xchg edx, eax
or byte [edi + ebx + 0x649df04a], 0xd9
inc edx
fnstcw word [ebp + 0x24]
in al, dx
add dword [ebx], 0xffffffb2
mov al, byte [0x56a4ba7a]
mov edx, 0xa09956a4
push edi
push cs
invalid
push edi
mov ss, word [ecx]
rcl byte [edx + edx*4 - 0x5e4386c7], cl
cmove eax, dword [edi]
dec esp
movsb byte es:[edi], byte [esi]
idiv cl
adc byte [ebx], al
jg 0x40d164
nop
xor dword [edi*2 - 0x2f3d5f8e], ecx
push dword [esi - 0x40]
clc
and dl, 0xa4
retf 0x25e5