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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4e6f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x414]
call fcn.00431650
push 0x4cc3a8
mov ecx, dword [ebp + 8]
call fcn.00422330
push eax
lea eax, [ebp - 4]
push eax
call fcn.0047b9ae
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x443a12
xor al, al
jmp 0x443a89
cmp dword [ebp - 4], 0
jne 0x443a1c
xor al, al
jmp 0x443a89
mov cl, byte [0x4c9beb]
mov byte [ebp - 0x410], cl
push 0x3ff
push 0
lea edx, [ebp - 0x40f]
push edx
call fcn.0047c580
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
lea ecx, [ebp - 0x410]
push ecx
call fcn.0047b8cf
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x443a63
jmp 0x443a7b
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x414]
call fcn.00443aa0
jmp 0x443a1c
mov ecx, dword [ebp - 4]
push ecx
call fcn.00478bb7
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477f65
mov esp, ebp
pop ebp
ret 4
Function at 0x444e70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3bc1
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4e6f00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x10], 0
mov eax, 1
test eax, eax
je 0x44504d
lea ecx, [ebp - 0x26c]
call fcn.00445680
mov dword [ebp - 4], 0
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea ecx, [ebp - 0x11b]
push ecx
call fcn.0047c580
add esp, 0xc
mov byte [ebp - 0x224], 0
push 0x103
push 0
lea edx, [ebp - 0x223]
push edx
call fcn.0047c580
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
push str.Name__d
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0047841b
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0x4c1877
lea ecx, [ebp - 0x11c]
push ecx
push 0x4c18ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x248]
call fcn.00404490
lea ecx, [ebp - 0x248]
call fcn.0043c270
movzx eax, al
test eax, eax
je 0x444f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00445710
jmp 0x44504d
mov ecx, dword [ebp - 0x10]
push ecx
push str.IP__d
push 0x104
lea edx, [ebp - 0x11c]
push edx
call fcn.0047841b
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push 0x4c188e
lea edx, [ebp - 0x11c]
push edx
push 0x4c18bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x264]
call fcn.00404490
mov ecx, dword [ebp - 0x10]
push ecx
push str.Port__d
push 0x104
lea edx, [ebp - 0x11c]
push edx
call fcn.0047841b
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x11c]
push ecx
push str.Serv
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], 0x44ff
lea edx, [ebp - 0x26c]
push edx
mov ecx, dword [ebp - 0x270]
call fcn.004457c0
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.00445710
jmp 0x444ea8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00477f65
mov esp, ebp
pop ebp
ret 4

Function at 0x445320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e6f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x70
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x64
mov byte [ebp - 7], 0x6c
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x4efb04
call fcn.0047d3f0
add esp, 0xc
mov eax, 0x4efb04
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477f65
mov esp, ebp
pop ebp
ret
Function at 0x4453a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e6f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x13], 0x58
mov byte [ebp - 0x12], 0x5f
mov byte [ebp - 0x11], 0x53
mov byte [ebp - 0x10], 0x68
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 9], 0x75
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 0
push 0xf
lea eax, [ebp - 0x14]
push eax
push 0x4efb10
call fcn.0047d3f0
add esp, 0xc
mov eax, 0x4efb10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477f65
mov esp, ebp
pop ebp
ret

Function at 0x445440
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4e6f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 0x114]
add ecx, 0x1c
push ecx
push 0x4c188f
push str.ProductName
push 0x4c1980
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 8]
push edx
push 0x104
mov eax, dword [ebp - 0x114]
add eax, 0x224
push eax
push 0x4c18a3
push 0x4c1988
push 0x4c198c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x4c1994
push 0x4c1998
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x114]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp - 0x114]
add ecx, 0x328
push ecx
push 0x4c18b1
push str.KeyPath
push 0x4c19a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 8]
push edx
push 0x104
mov eax, dword [ebp - 0x114]
add eax, 0x42c
push eax
push 0x4c18b2
push str.KeyName
push 0x4c19b8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.0047c580
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
push str.1.0.0.0
push 0x4c19c8
push str.Base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x114]
add ecx, 0x538
push ecx
mov edx, dword [ebp - 0x114]
add edx, 0x534
push edx
mov eax, dword [ebp - 0x114]
add eax, 0x530
push eax
push str._d._d._d
lea ecx, [ebp - 0x110]
push ecx
call fcn.0047dd5e
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
push 0
push str.VectexRote45
push 0x4c19f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne al
mov ecx, dword [ebp - 0x114]
mov byte [ecx + 0x53c], al
mov edx, dword [ebp + 8]
push edx
push 0
push str.Multi
push str.GameInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne al
mov ecx, dword [ebp - 0x114]
mov byte [ecx + 0x53d], al
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00444e70
mov eax, dword [ebp - 0x114]
mov dword [eax + 0x14], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477f65
mov esp, ebp
pop ebp
ret 4
Function at 0x44f280
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b426e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4e6f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x43
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x62
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x78
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0
mov eax, dword [0x4efba0]
and eax, 1
jne 0x44f31f
mov ecx, dword [0x4efba0]
or ecx, 1
mov dword [0x4efba0], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
call fcn.0044ef90
push eax
push 0x4efb84
call fcn.0040d7a0
add esp, 0xc
push 0x4bfd60
call fcn.0047868c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4efb84
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477f65
mov esp, ebp
pop ebp
ret

Function at 0x45ce20
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 0x45ce63
call fcn.0046576c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45ce63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45ce7e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045c9d7
test ebx, ebx
mov esi, eax
je 0x45ce7c
test edi, edi
je 0x45ce7c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x461d77
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e6f00]
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 0x461db7
push 0x4c3a28
push 4
push eax
call fcn.0047a120
push eax
call fcn.004010d0
add esp, 0x10
jmp 0x461dc9
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x461e37
push edi
call fcn.0047f6c8
mov edi, dword [eax]
call fcn.0047f6c8
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.00478437
add esp, 0x18
mov ebx, eax
call fcn.0047f6c8
cmp dword [eax], 0
je 0x461e17
call fcn.0047f6c8
push dword [eax]
call fcn.00457af9
pop ecx
jmp 0x461e1e
call fcn.0047f6c8
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x461e37
cmp ebx, esi
jae 0x461e37
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x461e39
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00477f65
leave
ret
Function at 0x4634b2
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 0x4634f8
call fcn.0046576c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4634f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x46353b
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 0x463524
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 0x463524
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x463538
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 0x464ab8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4b5129
call fcn.0047f55d
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.0046576c
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x464b03
call fcn.0046576c
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 0x464b14
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x464b21
or eax, 0xffffffff
jmp 0x464c7d
mov ecx, esi
call fcn.0046460a
mov dword [ebp - 0x14], eax
call fcn.0045a293
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x464b9f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x464b9f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x464b9f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00458e20
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x464b9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x464b9f
mov ecx, ebx
call fcn.0045f9c8
test eax, eax
je 0x464b9f
push 0
mov ecx, ebx
call fcn.0045f9e3
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0045bcde
push dword [ebp - 0x14]
call fcn.0045a1eb
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004648c0
xor edi, edi
cmp eax, edi
je 0x464bfc
test byte [esi + 0x3c], 0x10
je 0x464be6
push 4
pop edi
mov ecx, esi
call fcn.0045f8d9
test ax, 0x100
je 0x464bdc
push 5
pop edi
push edi
mov ecx, esi
call fcn.00459d81
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x464bfc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045fb91
or dword [ebp - 4], 0xffffffff
jmp 0x464c27
cmp dword [ebp - 0x28], edi
je 0x464c35
push 1
mov ecx, ebx
call fcn.0045f9e3
cmp dword [ebp - 0x2c], edi
je 0x464c45
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x464c5e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x464c5e
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.00464644
cmp dword [esi + 0x58], edi
je 0x464c7a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0047f602
ret
Function at 0x465e38
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x465e61
call fcn.0046576c
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x465e84
push eax
push dword [esi + 4]
call fcn.00465dc3
push esi
push eax
mov ecx, 0x4f177c
call fcn.00465a79
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x466639
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4b52e3
call fcn.0047f52a
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004665fb
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401490
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4666a0
push eax
push dword [esi + 8]
call fcn.00465dc3
push dword [esi + 0xc]
mov ecx, 0x4f177c
push eax
call fcn.00465a79
mov eax, esi
call fcn.0047f602
ret 0x1c

Function at 0x469a6f
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 0x469a9d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469abb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004699d9
jmp 0x469abb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469abb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004699d9
test edi, edi
mov eax, edi
jne 0x469aa5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f17b8]
test ecx, ecx
je 0x469b7e
jmp 0x469a6e
ret 8

Function at 0x4760af
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4760b8
xor eax, eax
jmp 0x476121
cmp dword [esp + 8], 0
jne 0x4760c4
call fcn.0045d04e
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0047b8cf
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4760ff
push dword [esi + 0x10]
call fcn.0047c059
test eax, eax
pop ecx
jne 0x4760ff
mov esi, dword [esi + 0xc]
call fcn.0047f6db
push esi
push dword [eax]
push 1
call fcn.004740ac
push dword [esi + 0x10]
call fcn.0047c088
test eax, eax
pop ecx
je 0x47611e
push dword [esi + 0x10]
call fcn.00480e95
push eax
call fcn.004010d0
pop ecx
pop ecx
jmp 0x4760ed
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x47612a
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x476134
call fcn.0045d04e
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00479326
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x476161
mov esi, dword [esi + 0xc]
call fcn.0047f6db
push esi
push dword [eax]
push 1
call fcn.004740ac
pop esi
ret 8

Function at 0x477f65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e6f00]
jne 0x477f6f
repz ret
jmp fcn.004828b4
Function at 0x47b633
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 0x47b670
cmp dword [ebp + 0x14], edi
je 0x47b670
cmp ecx, edi
jne 0x47b677
call fcn.0047f6c8
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047893a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x47b68b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x47b6ac
cmp ebx, 0xffffffff
je 0x47b69b
push ebx
push edi
push ecx
call fcn.0047c580
add esp, 0xc
cmp esi, edi
je 0x47b658
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x47b658
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47b6c8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x47b6cf
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47b7c0
test word [esi + 0xc], 0x10c
je 0x47b723
mov eax, dword [esi + 4]
test eax, eax
je 0x47b723
jl 0x47b821
cmp ebx, eax
mov edi, ebx
jb 0x47b6f4
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47b7c8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00477f74
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 0x47b7b8
cmp ebx, dword [ebp - 0xc]
jb 0x47b790
cmp dword [ebp - 0xc], 0
je 0x47b74d
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x47b742
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x47b749
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x47b758
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x47b758
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47b7f4
push eax
push dword [ebp - 8]
push esi
call fcn.00480ce2
pop ecx
push eax
call fcn.00489623
add esp, 0xc
test eax, eax
je 0x47b833
cmp eax, 0xffffffff
je 0x47b821
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47b7b8
push esi
call fcn.00486804
cmp eax, 0xffffffff
pop ecx
je 0x47b825
cmp dword [ebp - 4], 0
je 0x47b7f4
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 0x47b6d7
mov eax, dword [ebp + 0x14]
jmp 0x47b672
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47b7df
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047c580
add esp, 0xc
call fcn.0047f6c8
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x47b668
cmp dword [ebp + 0xc], 0xffffffff
je 0x47b80a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0047c580
add esp, 0xc
call fcn.0047f6c8
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x47b668
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47b672
or dword [esi + 0xc], 0x10
jmp 0x47b825
Function at 0x47dc5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x47dc88
call fcn.0047f6db
mov dword [eax], esi
call fcn.0047f6c8
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047893a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x47dc64
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47dcb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047f6ee
pop ecx
call fcn.0047f6c8
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x47dcde
test al, 1
je 0x47dcde
test byte [esp + 0xc], 2
je 0x47dcde
call fcn.0047f6db
mov dword [eax], 5
call fcn.0047f6c8
mov dword [eax], 0xd
jmp 0x47dcae
xor eax, eax
pop esi
ret
Function at 0x488198
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 + 0x4e7ca8]
je 0x4881b3
inc edi
cmp edi, 0x17
jb 0x4881a4
cmp edi, 0x17
jae 0x488333
push ebp
push 3
call fcn.0048c314
cmp eax, 1
pop ecx
je 0x4882ff
push 3
call fcn.0048c314
test eax, eax
pop ecx
jne 0x4881e7
cmp dword [0x4e6efc], 1
je 0x4882ff
cmp ebx, 0xfc
je 0x488332
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f20a8
push ebp
call fcn.0047a120
add esp, 0xc
test eax, eax
je 0x48821d
push esi
push esi
push esi
push esi
push esi
call fcn.0047883e
add esp, 0x14
push 0x104
mov esi, 0x4f20c1
push esi
push 0
mov byte [0x4f21c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x488261
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047a120
add esp, 0xc
test eax, eax
je 0x488261
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047883e
add esp, 0x14
push esi
call fcn.0047be10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4882a6
push esi
call fcn.0047be10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f23bc
push 0x4c5fac
sub ecx, eax
push ecx
push eax
call fcn.0047c8be
add esp, 0x14
test eax, eax
je 0x4882a6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047883e
add esp, 0x14
jmp 0x4882a8
xor esi, esi
push 0x4c67d0
push ebx
push ebp
call fcn.0047c5fa
add esp, 0xc
test eax, eax
je 0x4882c8
push esi
push esi
push esi
push esi
push esi
call fcn.0047883e
add esp, 0x14
push dword [edi*8 + 0x4e7cac]
push ebx
push ebp
call fcn.0047c5fa
add esp, 0xc
test eax, eax
je 0x4882ea
push esi
push esi
push esi
push esi
push esi
call fcn.0047883e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004969f8
add esp, 0xc
jmp 0x488332
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x488332
cmp ebp, 0xffffffff
je 0x488332
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e7cac]
push dword [esi]
call fcn.0047be10
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