joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d58f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax], 0x67452301
ret

Function at 0x4d63e0
Capabilities:
Encode data using xor

Disassembly:
xor cx, cx
sub esp, 0x3c
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [esp + 0x4c]
push ebp
movsx eax, cx
inc cx
or edx, dword [esi + eax*4]
movsx eax, cx
cmp eax, 5
jb 0x4d63f0
test edx, edx
jne 0x4d6436
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push edi
push eax
call fcn.004cf3e0
add esp, 8
push edi
call fcn.004cf380
add esp, 4
lea eax, [edi + 0x14]
push eax
push edi
call fcn.004cf3e0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004cfa70
lea eax, [esp + 0x40]
add esp, 8
push eax
call fcn.004cf340
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x58]
add esp, 4
push eax
push ecx
push edx
call fcn.004cf730
lea ecx, [esp + 0x30]
add esp, 0xc
push ecx
call fcn.004cf380
add esp, 4
xor ecx, ecx
xor edx, edx
movsx eax, cx
inc cx
xor edx, dword [esp + eax*4 + 0x24]
movsx eax, cx
cmp eax, 5
jb 0x4d6479
mov ax, 0x10
mov edi, 0xffffffff
mov cl, al
shr edi, cl
sar ax, 1
mov ebx, edi
and ebx, edx
shr edx, cl
xor ebx, edx
test ax, ax
mov edx, ebx
jg 0x4d6493
test edx, edx
je 0x4d64d4
mov edi, dword [esp + 0x58]
push edi
call fcn.004cf3c0
add esp, 4
add edi, 0x14
push edi
call fcn.004cf3c0
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x10]
push eax
call fcn.004cf3c0
xor cx, cx
add esp, 4
mov edx, 1
movsx edi, cx
mov bx, 4
mov eax, edi
shr eax, 5
inc edi
shr edi, 5
sub bx, ax
mov ax, 4
sub ax, di
movsx edi, bx
lea ebp, [edi*4]
mov edi, dword [esp + edi*4 + 0x24]
xor edi, dword [esp + ebp + 0x10]
and edi, edx
cmp ax, bx
jne 0x4d6529
movsx eax, ax
add edi, edi
add edx, edx
or dword [esp + eax*4 + 0x10], edi
jmp 0x4d6539
mov edx, 1
test edi, edi
je 0x4d6539
movsx eax, ax
mov dword [esp + eax*4 + 0x10], edx
inc cx
cmp cx, 0x9e
jl 0x4d64e9
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
xor eax, dword [esp + 0x10]
push edi
test eax, 0x20000000
je 0x4d6577
add edi, 0x14
call fcn.004cf3c0
add esp, 4
push edi
call fcn.004cf3c0
add esp, 4
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004cf730
add esp, 0xc
lea eax, [edi + 0x14]
push eax
call fcn.004cf3c0
xor cx, cx
add esp, 4
movsx eax, cx
shl eax, 2
inc cx
lea edx, [edi + eax]
mov eax, dword [esi + eax]
xor eax, dword [edx]
mov dword [edx + 0x14], eax
movsx edx, cx
cmp edx, 5
jb 0x4d6594
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x4d65c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
mov esi, dword [esp + 0x30]
push edi
push eax
push esi
call fcn.004cf3e0
lea ecx, [esp + 0x10]
add esp, 8
push ecx
call fcn.004cf340
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
add esp, 4
push eax
push ecx
push esi
call fcn.004cf730
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
add esp, 0xc
cmp word [esi], 0
push edi
je 0x4d6619
lea eax, [esi + 2]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004cf730
add esp, 0xc
jmp 0x4d6621
call fcn.004cf3c0
add esp, 4
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esi + eax + 0x16]
xor ecx, dword [esp + eax + 0x1c]
xor dword [edi + eax], ecx
movsx eax, dx
cmp eax, 5
jb 0x4d6624
pop edi
pop esi
add esp, 0x28
ret

Function at 0x4d6650
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x28]
push ebx
push esi
push edi
push ebp
push eax
call fcn.004cf3c0
lea eax, [esp + 0x50]
add esp, 4
push eax
call fcn.004cf3c0
xor cx, cx
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
add esp, 4
movsx eax, cx
inc cx
lea edi, [eax*4]
lea eax, [edi + ebx]
lea edx, [edi + esi]
mov ebp, dword [eax]
mov eax, dword [eax + 0x14]
xor ebp, dword [edx]
xor eax, dword [edx + 0x14]
movsx edx, cx
mov dword [esp + edi + 0x38], ebp
mov dword [esp + edi + 0x4c], eax
cmp edx, 5
jb 0x4d667f
lea eax, [esp + 0x60]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.004cfa70
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
lea eax, [esp + 0x68]
add esp, 8
push ecx
push edx
push eax
call fcn.004cf730
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
add esp, 0xc
push ecx
push edx
call fcn.004cf3e0
lea ecx, [esp + 0x18]
add esp, 8
push ecx
call fcn.004cf340
mov ecx, dword [esp + 0x88]
add esp, 4
cmp word [ecx], 0
je 0x4d6731
xor dx, dx
mov edi, dword [esp + 0x80]
movsx eax, dx
shl eax, 2
inc dx
mov ebp, dword [eax + ecx + 2]
xor ebp, dword [eax + ebx]
xor ebp, dword [eax + esi]
xor ebp, dword [esp + eax + 0x10]
xor ebp, dword [esp + eax + 0x24]
mov dword [eax + edi], ebp
movsx eax, dx
cmp eax, 5
jb 0x4d670a
jmp 0x4d675c
xor cx, cx
mov edi, dword [esp + 0x80]
movsx eax, cx
shl eax, 2
inc cx
mov edx, dword [eax + ebx]
xor edx, dword [eax + esi]
xor edx, dword [esp + eax + 0x10]
xor edx, dword [esp + eax + 0x24]
mov dword [eax + edi], edx
movsx eax, cx
cmp eax, 5
jb 0x4d673b
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [eax + edi]
xor ecx, dword [eax + esi]
mov dword [esp + eax + 0x38], ecx
movsx eax, dx
cmp eax, 5
jb 0x4d675f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push eax
push ecx
push edx
call fcn.004cf730
xor dx, dx
add esp, 0xc
movsx eax, dx
inc dx
mov ebx, dword [esi + eax*4 + 0x14]
xor ebx, dword [esp + eax*4 + 0x10]
lea ecx, [eax*4]
lea eax, [ecx + edi]
xor ebx, dword [eax]
mov dword [eax + 0x14], ebx
movsx eax, dx
cmp eax, 5
jb 0x4d6793
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x4d67c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x28]
push ebx
push esi
push edi
mov esi, dword [esp + 0x74]
push eax
push esi
call fcn.004cfa70
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
add esp, 8
lea eax, [esi + 0x14]
push ecx
push eax
push edx
call fcn.004cf730
xor dx, dx
add esp, 0xc
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [eax + esi]
xor ecx, dword [esp + eax + 0xc]
mov dword [esp + eax + 0x20], ecx
movsx eax, dx
cmp eax, 5
jb 0x4d67f1
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004cf3e0
lea ecx, [esp + 0x50]
add esp, 8
push ecx
call fcn.004cf340
mov edx, dword [esp + 0x80]
add esp, 4
cmp word [edx], 0
je 0x4d6860
xor cx, cx
mov edi, dword [esp + 0x78]
movsx eax, cx
shl eax, 2
inc cx
mov ebx, dword [eax + edx + 2]
xor ebx, dword [esp + eax + 0x20]
xor ebx, dword [esp + eax + 0x48]
mov dword [eax + edi], ebx
movsx eax, cx
cmp eax, 5
jb 0x4d683f
jmp 0x4d6882
xor dx, dx
mov edi, dword [esp + 0x78]
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x20]
xor ecx, dword [esp + eax + 0x48]
mov dword [eax + edi], ecx
movsx eax, dx
cmp eax, 5
jb 0x4d6867
xor cx, cx
mov edx, 0xffffffff
movsx eax, cx
inc cx
mov dword [esp + eax*4 + 0xc], edx
movsx ebx, cx
cmp ebx, 5
jb 0x4d688a
and dword [esp + 0xc], 0x3fffffff
xor dx, dx
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x20]
xor dword [esp + eax + 0xc], ecx
movsx eax, dx
cmp eax, 5
jb 0x4d68a6
lea eax, [esp + 0x5c]
lea ecx, [esp + 0xc]
push eax
push edi
push ecx
call fcn.004cf730
lea ecx, [esp + 0x40]
add esp, 0xc
push ecx
push esi
call fcn.004cf3e0
lea ecx, [esp + 0x3c]
add esp, 8
push ecx
call fcn.004cf340
xor dx, dx
add esp, 4
movsx eax, dx
shl eax, 2
inc dx
mov ecx, dword [esp + eax + 0x5c]
xor ecx, dword [esp + eax + 0x34]
mov dword [eax + edi + 0x14], ecx
movsx eax, dx
cmp eax, 5
jb 0x4d68ef
pop edi
pop esi
pop ebx
add esp, 0x64
ret

Function at 0x4d6920
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
lea eax, [esp]
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
xor di, di
call fcn.004cf3e0
lea ecx, [esp + 0x24]
add esp, 8
push ecx
call fcn.004cf3c0
add esp, 4
movsx eax, di
inc di
lea ecx, [eax*4]
mov edx, dword [esi + ecx + 0x14]
lea eax, [esi + ecx]
xor edx, dword [eax]
movsx eax, di
mov dword [esp + ecx + 0x1c], edx
cmp eax, 5
jb 0x4d6947
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.004d6650
add esp, 0x10
pop edi
pop esi
add esp, 0x28
ret
Function at 0x4d9d40
Capabilities:
Hash data using sha1

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x18
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], 0xc3d2e1f0
pop edi
ret
Function at 0x4dea6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5628b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4deaaf
push 0x53b5c0
push 4
push eax
call fcn.004fac96
push eax
call fcn.00406330
add esp, 0x10
jmp 0x4deac1
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x4deb2f
push edi
call fcn.004fdea4
mov edi, dword [eax]
call fcn.004fdea4
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004fab3b
add esp, 0x18
mov ebx, eax
call fcn.004fdea4
cmp dword [eax], 0
je 0x4deb0f
call fcn.004fdea4
push dword [eax]
call fcn.004de9f0
pop ecx
jmp 0x4deb16
call fcn.004fdea4
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4deb2f
cmp ebx, esi
jae 0x4deb2f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x4deb31
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004fa95f
leave
ret
Function at 0x4e1070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x53348d
call fcn.00503ac4
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004e8dbb
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4e10bb
call fcn.004e8dbb
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4e10cc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4e10d9
or eax, 0xffffffff
jmp 0x4e1235
mov ecx, esi
call fcn.004e0bc2
mov dword [ebp - 0x14], eax
call fcn.004e4f02
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4e1157
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4e1157
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4e1157
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004dea40
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4e1157
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4e1157
mov ecx, ebx
call fcn.004e7c8c
test eax, eax
je 0x4e1157
push 0
mov ecx, ebx
call fcn.004e7ca7
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004e691b
push dword [ebp - 0x14]
call fcn.004e4e5a
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004e0e78
xor edi, edi
cmp eax, edi
je 0x4e11b4
test byte [esi + 0x3c], 0x10
je 0x4e119e
push 4
pop edi
mov ecx, esi
call fcn.004e7b9d
test ax, 0x100
je 0x4e1194
push 5
pop edi
push edi
mov ecx, esi
call fcn.004e49f0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4e11b4
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004e7e7a
or dword [ebp - 4], 0xffffffff
jmp 0x4e11df
cmp dword [ebp - 0x28], edi
je 0x4e11ed
push 1
mov ecx, ebx
call fcn.004e7ca7
cmp dword [ebp - 0x2c], edi
je 0x4e11fd
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4e1216
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4e1216
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004e0bfc
cmp dword [esi + 0x58], edi
je 0x4e1232
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00503b69
ret
Function at 0x4e17c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4e180d
call fcn.004e8dbb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x4e180d
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4e1850
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4e1839
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4e1839
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4e184d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4e5eeb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4e5f24
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e5eae
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e0088
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4e7a38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4e7a7b
call fcn.004e8dbb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x4e7a7b
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x4e7a96
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004e75ef
test ebx, ebx
mov esi, eax
je 0x4e7a94
test edi, edi
je 0x4e7a94
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4eadcb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4eadf9
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4eae17
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ead35
jmp 0x4eae17
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4eae17
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004ead35
test edi, edi
mov eax, edi
jne 0x4eae01
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5af878]
test ecx, ecx
je 0x4eaeda
jmp 0x4eadca
ret 8
Function at 0x4fa95f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5628b4]
jne 0x4fa969
repz ret
jmp fcn.0050639c
Function at 0x5019e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x501a15
call fcn.004fdeb7
mov dword [eax], esi
call fcn.004fdea4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004fb86a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5019f1
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x501a44
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004fdeca
pop ecx
call fcn.004fdea4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x501a6b
test al, 1
je 0x501a6b
test byte [esp + 0xc], 2
je 0x501a6b
call fcn.004fdeb7
mov dword [eax], 5
call fcn.004fdea4
mov dword [eax], 0xd
jmp 0x501a3b
xor eax, eax
pop esi
ret
Function at 0x502495
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5024d2
cmp dword [ebp + 0x14], edi
je 0x5024d2
cmp ecx, edi
jne 0x5024d9
call fcn.004fdea4
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004fb86a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5024ed
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x50250e
cmp ebx, 0xffffffff
je 0x5024fd
push ebx
push edi
push ecx
call fcn.004fb620
add esp, 0xc
cmp esi, edi
je 0x5024ba
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5024ba
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x50252a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x502531
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x502622
test word [esi + 0xc], 0x10c
je 0x502585
mov eax, dword [esi + 4]
test eax, eax
je 0x502585
jl 0x502683
cmp ebx, eax
mov edi, ebx
jb 0x502556
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x50262a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004fb549
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x50261a
cmp ebx, dword [ebp - 0xc]
jb 0x5025f2
cmp dword [ebp - 0xc], 0
je 0x5025af
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x5025a4
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5025ab
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5025ba
mov eax, SysReAllocString
cmp ebx, eax
ja 0x5025ba
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x502656
push eax
push dword [ebp - 8]
push esi
call fcn.00508e44
pop ecx
push eax
call fcn.00510ab2
add esp, 0xc
test eax, eax
je 0x502695
cmp eax, 0xffffffff
je 0x502683
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x50261a
push esi
call fcn.00508ae4
cmp eax, 0xffffffff
pop ecx
je 0x502687
cmp dword [ebp - 4], 0
je 0x502656
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x502539
mov eax, dword [ebp + 0x14]
jmp 0x5024d4
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x502641
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004fb620
add esp, 0xc
call fcn.004fdea4
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5024ca
cmp dword [ebp + 0xc], 0xffffffff
je 0x50266c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004fb620
add esp, 0xc
call fcn.004fdea4
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5024ca
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5024d4
or dword [esi + 0xc], 0x10
jmp 0x502687
Function at 0x5039f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x503a23
call fcn.004fdeb7
mov dword [eax], esi
call fcn.004fdea4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004fb86a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5039ff
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x503a52
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004fdeca
pop ecx
call fcn.004fdea4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x503a79
test al, 1
je 0x503a79
test byte [esp + 0xc], 2
je 0x503a79
call fcn.004fdeb7
mov dword [eax], 5
call fcn.004fdea4
mov dword [eax], 0xd
jmp 0x503a49
xor eax, eax
pop esi
ret

Function at 0x507158
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x562e08]
je 0x507173
inc edi
cmp edi, 0x17
jb 0x507164
cmp edi, 0x17
jae 0x5072f3
push ebp
push 3
call fcn.0051388f
cmp eax, 1
pop ecx
je 0x5072bf
push 3
call fcn.0051388f
test eax, eax
pop ecx
jne 0x5071a7
cmp dword [0x5628e0], 1
je 0x5072bf
cmp ebx, 0xfc
je 0x5072f2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5aff30
push ebp
call fcn.004fac96
add esp, 0xc
test eax, eax
je 0x5071dd
push esi
push esi
push esi
push esi
push esi
call fcn.004fb76e
add esp, 0x14
push 0x104
mov esi, 0x5aff49
push esi
push 0
mov byte [0x5b004d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x507221
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004fac96
add esp, 0xc
test eax, eax
je 0x507221
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004fb76e
add esp, 0x14
push esi
call fcn.004fd810
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x507266
push esi
call fcn.004fd810
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5b0244
push 0x53f40c
sub ecx, eax
push ecx
push eax
call fcn.00503d67
add esp, 0x14
test eax, eax
je 0x507266
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004fb76e
add esp, 0x14
jmp 0x507268
xor esi, esi
push 0x53f408
push ebx
push ebp
call fcn.00503b9b
add esp, 0xc
test eax, eax
je 0x507288
push esi
push esi
push esi
push esi
push esi
call fcn.004fb76e
add esp, 0x14
push dword [edi*8 + 0x562e0c]
push ebx
push ebp
call fcn.00503b9b
add esp, 0xc
test eax, eax
je 0x5072aa
push esi
push esi
push esi
push esi
push esi
call fcn.004fb76e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005136d2
add esp, 0xc
jmp 0x5072f2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5072f2
cmp ebp, 0xffffffff
je 0x5072f2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x562e0c]
push dword [esi]
call fcn.004fd810
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret