joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba100
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4ba10b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4ba1c7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
sub edi, 1
jne 0x4ba120
pop edi
test esi, esi
je 0x4ba1ea
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
sub esi, 1
jne 0x4ba1d0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4baa20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4baa65
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4baa60
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x4baa92
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4baa76
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.004d6e20
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x4baab0
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4baa9d
cmp byte [esi + 8], 0
je 0x4baa9d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d523a
mov esp, ebp
pop ebp
ret
Function at 0x4bab70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], ecx
je 0x4babb1
cmp byte [ecx], 0
je 0x4bac02
push 2
push 0
push 0
push dword [esi + 4]
call edx
mov edx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esi + 1]
jmp 0x4babba
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x1c], ecx
cmp byte [esi], 0
je 0x4babda
cmp byte [ecx], 0
je 0x4babd6
push 1
push 0
push 0
push dword [esi + 4]
call edx
mov edi, eax
sub edi, dword [esi + 0xc]
jmp 0x4babdd
xor edi, edi
jmp 0x4babe9
mov edi, dword [esi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], eax
cmp edi, eax
jae 0x4babec
mov dword [ebp - 0x14], edi
push 0x404
call fcn.004df045
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x4bac16
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d523a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x4bad29
nop dword [eax]
add eax, 0x400
mov dword [ebp - 0x18], edi
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x24], edx
cmp edx, 0x404
mov dword [ebp - 0x20], ecx
mov edi, edx
cmova edi, eax
cmp byte [esi], 0
je 0x4bac7f
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
je 0x4bad29
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4bac88
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp byte [esi], 0
mov ebx, edi
je 0x4bacb0
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4bacab
mov byte [esi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4bacdb
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [edx + edi]
cmp eax, ecx
jbe 0x4bacc1
mov ebx, ecx
sub ebx, edx
mov ecx, dword [esi + 0x14]
push ebx
add ecx, edx
push ecx
push dword [ebp - 0x10]
call fcn.004d6e20
add esp, 0xc
mov eax, ebx
add dword [esi + 0x1c], ebx
mov ebx, dword [ebp - 0x10]
xor edx, edx
div edi
cmp eax, 1
jne 0x4bad29
lea ecx, [edi - 3]
test ecx, ecx
js 0x4bad11
lea eax, [ebx + 3]
add eax, ecx
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x4bad0d
cmp byte [edx + ebx], 0x4b
jne 0x4bad0d
cmp byte [eax - 1], 5
jne 0x4bad0d
cmp byte [eax], 6
je 0x4bad46
test ecx, ecx
jns 0x4bacf0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4bad29
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
cmp eax, ecx
jb 0x4bac30
push ebx
call fcn.004da263
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d523a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x4bad14
Function at 0x4bb6c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4bb8aa
cmp dword [edi + 0x18], 0
je 0x4bb8aa
push esi
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x4bb720
mov eax, dword [esi]
test eax, eax
je 0x4bb6f5
push eax
call fcn.004da263
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x4bb709
lea ecx, [esi + 4]
call fcn.004ba360
push esi
mov dword [esi + 0x40], 0
call fcn.004da263
add esp, 4
mov dword [edi + 0x7c], 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.004bb460
add esp, 8
test eax, eax
je 0x4bb745
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
call fcn.004df045
mov esi, eax
add esp, 4
test esi, esi
je 0x4bb787
push 0x4000
call fcn.004df045
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x4bb793
push esi
call fcn.004da263
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x4bb7eb
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.004ba430
test eax, eax
jne 0x4bb7eb
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x4bb80f
mov al, byte [edi + 0x39]
jmp 0x4bb812
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x4bb88b
mov al, byte [ebx]
test al, al
je 0x4bb88b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x55dd28]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x4bb840
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc3b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x4bc3e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4bc3e2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4bc4cc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4bc401
cmp dx, 0x5c
jne 0x4bc403
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4bc3f5
cmp edi, ebx
je 0x4bc44e
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004d6e20
add esp, 0xc
cmp edi, 0x208
jae 0x4bc4dc
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.004bc3b0
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x4bc473
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4bc463
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4bc475
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4bc490
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4bc4cc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d523a
mov esp, ebp
pop ebp
ret
call fcn.004d590d
int3
Function at 0x4bc910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511637
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57b0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44c
call fcn.004d54c1
mov ebx, eax
mov dword [ebp - 0x14], ebx
push 0x44c
push 0
push ebx
call fcn.004d73b0
add esp, 0x10
mov dword [ebx], 0
lea edi, [ebx + 0x244]
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
push edi
push 0x104
mov dword [ebx + 0x240], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc9a2
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4bc9d9
cmp eax, 0x2f
je 0x4bc9d9
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4bc9c6
mov eax, dword [0x55d678]
mov dword [edi], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4bca8e
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
push 0x20
setne bl
call fcn.004d54c1
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [edi], 1
mov byte [edi + 0x10], 1
mov byte [edi + 1], bl
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
cmp esi, 0xffffffff
je 0x4bca4f
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.004bad50
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
test eax, eax
je 0x4bca8e
push 8
mov dword [0x5a9a6c], 0
call fcn.004d54c1
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x23c]
mov dword [0x5a9a6c], 0x200
test eax, eax
je 0x4bcaab
push eax
call fcn.004d54bc
add esp, 4
mov eax, dword [ebx + 0x240]
mov dword [ebx + 0x23c], 0
test eax, eax
je 0x4bcac8
push eax
call fcn.004d54bc
add esp, 4
push 0x44c
push ebx
mov dword [ebx + 0x240], 0
call fcn.004d54f1
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4be4cb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4be4f2
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4be4f5
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004be4a7
pop esi
leave
ret 8
Function at 0x4bef2f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004e7a9e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4bef6e
sub eax, 1
je 0x4bef69
sub eax, 1
je 0x4bef65
xor eax, eax
leave
ret
push 3
jmp 0x4bef70
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4d0db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x57b0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], eax
cmp dword [esi + 0x378], 0
je 0x4d0de2
call fcn.004cff20
mov dword [esi + 0x378], 0
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov bl, byte [ebp + 0x14]
test eax, eax
mov dword [0x5a8bc0], eax
setne al
mov byte [esi + 0x64], al
test al, al
jne 0x4d0e5e
test bl, bl
je 0x4d0e5e
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call fcn.004df78a
push eax
push 0x51646c
lea eax, [esi + 0x370]
push str.CONOUT_
push eax
call fcn.004e83cf
push 0
call fcn.004df78a
push eax
push 0x516484
lea eax, [esi + 0x374]
push str.CONIN_
push eax
call fcn.004e83cf
add esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x5a8bc0], eax
jmp 0x4d0e63
mov eax, dword [0x5a8bc0]
test eax, eax
je 0x4d0e76
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov eax, dword [0x5a8bc0]
cmp byte [esi + 0x64], 0
je 0x4d0ea5
test bl, bl
jne 0x4d0ea5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
test eax, eax
cmovs eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x4d0eb3
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov al, byte [ebp + 0x18]
mov byte [ebp - 0x1c], al
mov al, byte [ebp + 0x1c]
mov byte [ebp - 0x1b], al
mov al, byte [ebp + 0x20]
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0x4d1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x5a8bd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x378]
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 8]
mov ecx, esi
mov dword [esi + 0x37c], eax
push dword [esi + 4]
call fcn.004d0780
push 0x5a8bd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call fcn.004cfea0
mov eax, dword [esi + 0x378]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop ebx
call fcn.004d523a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4d4210
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [0x5a8bf8]
jmp fcn.004d0b70

Function at 0x4d4c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 4]
test eax, eax
je 0x4d4c3c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebx + 4], 0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [ebp + 0xc]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4d4c62
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push edi
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp + 8]
mov edi, eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 2
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebx + 8]
push eax
push esi
call fcn.004d6e20
add esp, 0xc
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8

Function at 0x4d4cc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4d4cdd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d4d09
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 4]
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4d6176
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4d61b5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d61b5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d61b5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4d61b5
cmp dword [ecx + 0x74], 0xe
jbe 0x4d61b5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4ef13e
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 + 0x5a9468]
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 0x4ef17e
cmp byte [ebx], 0xa
jne 0x4ef17e
or byte [eax + edi + 0x28], 4
jmp 0x4ef183
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ef281
mov al, byte [edx]
cmp al, 0x1a
je 0x4ef263
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ef1b2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ef1d7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ef1e1
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 0x4ef194
jmp 0x4ef281
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 0x4ef25e
cmp dword [ebp - 0xc], 0
je 0x4ef25e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5a9468]
test byte [eax + edi + 0x28], 0x48
je 0x4ef238
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ef223
mov byte [esi], dl
jmp 0x4ef234
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5a9468]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ef281
cmp byte [ebp - 1], 0xa
jne 0x4ef247
cmp esi, ebx
jne 0x4ef247
mov byte [esi], 0xa
jmp 0x4ef280
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004f1225
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ef281
mov byte [esi], 0xd
jmp 0x4ef280
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5a9468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ef27d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ef281
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ef28a
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 + 0x5a9468]
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 0x4ef2cd
cmp word [esi], dx
jne 0x4ef2cd
or byte [edi + eax + 0x28], 4
jmp 0x4ef2d2
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 0x4ef425
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 0x4ef405
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4ef314
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ef34a
cmp eax, edx
jae 0x4ef356
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 0x4ef2ec
jmp 0x4ef425
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 0x4ef401
cmp dword [ebp - 0x14], 0
je 0x4ef401
mov eax, dword [ebx*4 + 0x5a9468]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4ef3d9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4ef3a2
mov word [esi], cx
jmp 0x4ef3d5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5a9468]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5a9468]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5a9468]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4ef425
pop ebx
cmp word [ebp - 4], bx
jne 0x4ef3ea
cmp esi, dword [ebp + 0xc]
jne 0x4ef3ea
mov word [esi], bx
jmp 0x4ef422
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f1225
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4ef425
push 0xd
jmp 0x4ef41e
mov ecx, dword [ebx*4 + 0x5a9468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ef41c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ef425
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