joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1024b4a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002878
call fcn.01024d8c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1024b85
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1024b85
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1024b9d
cmp eax, 0x20b
je 0x1024b8a
mov dword [ebp - 0x1c], edi
jmp 0x1024bb1
cmp dword [ecx + 0x84], 0xe
jbe 0x1024b85
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1024bab
cmp dword [ecx + 0x74], 0xe
jbe 0x1024b85
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103760c], 0xffffffff
or dword [0x1037610], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1037534]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1037530]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1037614], eax
call fcn.01024f68
cmp dword [0x1036f50], edi
jne 0x1024c0e
push fcn.01024f68
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01024f51
push 0x1036010
push 0x103600c
call sub.msvcrt.dll__initterm
mov eax, dword [0x103752c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1037528]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1036008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1024c74
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1024d2e
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1024cc2
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1024c90
cmp ax, 0x22
jne 0x1024c7d
cmp word [esi], 0x22
jne 0x1024c9b
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1024ca9
cmp ax, 0x20
jbe 0x1024c96
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1024ccf
movzx eax, word [ebp - 0x50]
jmp 0x1024cd2
cmp word [esi], 0x20
jbe 0x1024c9b
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1024cc2
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1024cf3
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1024d28
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01024dc7
ret
Function at 0x1026c61
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1026d50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1026d50
push esi
push 0x1002c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1026d46
push 0x10024b8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1026d36
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call eax
mov esi, eax
cmp esi, ebx
jl 0x1026d3b
push edi
push ebx
push dword [ebp - 4]
push ebx
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x1026d0a
xor esi, esi
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1026d3b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1026d3b
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1026d3b
mov esi, 0x80004005
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1026d4b
mov esi, 0x80004005
mov eax, esi
pop esi
jmp 0x1026d55
mov eax, 0x80070057
pop ebx
leave
ret 4
Function at 0x1027443
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10275b2
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10275b2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10275b2
mov eax, dword [esi]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
push ecx
push 0x10029c4
push esi
call dword [eax]
mov esi, eax
test esi, esi
jl 0x10275a1
push edi
xor eax, eax
and word [ebp - 0x28], ax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 8]
xor edi, edi
push edx
inc edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x1004
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
jl 0x10275a0
cmp word [ebp - 0x28], di
jbe 0x1027537
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x1027539
cmp dword [ebp - 0x20], 8
jb 0x1027539
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1027513
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
jmp 0x1027547
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10275a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1027525
call esi
mov esi, eax
jmp 0x10275a0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10275a0
xor edi, edi
cmp word [ebp - 0x28], 0x40
jne 0x102759b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x1027513
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1027513
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1027507
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10274f7
call esi
mov esi, eax
jmp 0x1027507
mov esi, 0x80004005
pop edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10275ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10275b7
mov eax, 0x80070057
pop esi
pop ebx
leave
ret 8
Function at 0x1027d5f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x1036f44]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
je 0x1027f8d
cmp edi, ebx
je 0x1027f8d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1027f8d
mov eax, dword [esi]
lea ecx, [ebp - 0x218]
push ecx
push 0x10029c4
push esi
mov dword [ebp - 0x218], ebx
call dword [eax]
mov esi, eax
cmp esi, ebx
jl 0x1027f79
lea edx, [ebp - 0x264]
push edx
xor eax, eax
inc eax
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x218]
push 3
mov dword [ebp - 0x230], 0x1407
mov dword [ebp - 0x228], 0x1405
mov dword [ebp - 0x220], 0x1406
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jl 0x1027f79
cmp dword [ebp - 0x24c], ebx
je 0x1027f65
cmp dword [ebp - 0x25c], ebx
je 0x1027f65
push 0x108
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [ebp - 0x244], 0x48
mov edi, eax
jne 0x1027eaa
cmp dword [ebp - 0x23c], ebx
je 0x1027eaa
push 0x1001948
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x23c]
lea eax, [ebp - 0x374]
push eax
call fcn.01012637
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x374], 0x1001644
call fcn.010047d1
jmp 0x1027ec2
push 0x1001948
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001b64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x214]
push eax
call fcn.01004914
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1027f41
push ebx
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x25c]
push dword [ebp - 0x258]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1027f38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1027f28
call esi
mov esi, eax
jmp 0x1027f38
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1027f6a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1027f53
call esi
mov esi, eax
jmp 0x1027f6a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1027f6a
mov esi, 0x80004005
lea eax, [ebp - 0x264]
push eax
push 3
call dword [sym.imp.ole32.dll_FreePropVariantArray]
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x1027f89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1027f92
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01024a32
leave
ret 0xc
Function at 0x1029582
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa18
mov eax, dword [0x1036f44]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa14], eax
je 0x102967f
test edi, edi
je 0x102967f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
test eax, eax
je 0x102967f
push edi
call ebx
test eax, eax
je 0x102967f
push edi
push esi
lea eax, [ebp - 0xa0c]
push 0x1002d08
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xa10]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0xa0c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x102966d
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0xa10]
mov dword [ebp - 0xa18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x1029651
push dword [ebp - 0xa14]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x102965d
jle 0x102965d
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0xa10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1029684
jg 0x1029673
mov esi, eax
jmp 0x1029684
and eax, 0xffff
or eax, 0x80070000
jmp 0x102966f
mov esi, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01024a32
leave
ret 0xc

Function at 0x102abe4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor ecx, ecx
or eax, 0xffffffff
cmp edx, ecx
je 0x102ac17
cmp dword [ebp + 8], ecx
jbe 0x102ac17
push esi
push edi
movzx esi, byte [ecx + edx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x1002d98]
inc ecx
cmp ecx, dword [ebp + 8]
jb 0x102abfc
pop edi
pop esi
not eax
pop ebp
ret 8

Function at 0x102ac22
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x102ac7f
push esi
push edi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x102ac7f
push ebx
push edi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x102ac75
push ebx
push edi
call fcn.0102abe4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x103086f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.01030741
test al, al
je 0x1030899
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
mov ecx, dword [esi + 4]
xor edx, edx
test eax, eax
jle 0x1030899
xor dword [ecx + edx*4], 0xffffff
inc edx
cmp edx, eax
jl 0x103088d
pop esi
ret
Function at 0x4760c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x526598
push 0x4b6642
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x534008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x476121
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.00476210
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x476164
test bl, bl
jne 0x4761ed
cmp edi, 0x1a
jne 0x4761ed
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x476186
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4761c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.0040a960
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004b5edc
mov esp, ebp
pop ebp
ret
Function at 0x4bd500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb8ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004c22d0
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004b5eed
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.00484850
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c6720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4eb920
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x4c6785
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x4c6775
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4c67b5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.0040a260
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.004c5960
push 0x530a28
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.0040a260
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.004c5960
push 0x530a28
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x57f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
jmp 0x57f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f780
mov eax, 1
add ebx, ebx
jne 0x57f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f7b4
jne 0x57f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7d3
dec eax
add ebx, ebx
jne 0x57f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f798
add ebx, ebx
jne 0x57f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f825
xor ecx, ecx
sub eax, 3
jb 0x57f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f85a
sar eax, 1
mov ebp, eax
jmp 0x57f7f6
add ebx, ebx
jne 0x57f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
inc ecx
add ebx, ebx
jne 0x57f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
add ebx, ebx
jne 0x57f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f806
jne 0x57f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f836
jmp 0x57f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f844
add edi, ecx
jmp 0x57f786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f862
cmp byte [edi], 0x11
jne 0x57f862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x57f867
lea edi, [esi + 0x178000]
mov eax, dword [edi]
or eax, eax
je 0x57f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x219828]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2199a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f894
mov ecx, edi
jns 0x57f8c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2199a8]
or eax, eax
je 0x57f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x57f8b1
call dword [esi + 0x2199b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f910
cmp al, 0xef
ja 0x57f903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f8f2
mov ebp, dword [esi + 0x2199ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x57f944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x401b93
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [ebp - 0x80], esi
cmp ebx, esi
je 0x401c84
cmp edi, esi
je 0x401c84
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401bc9
sub eax, edx
sar eax, 1
je 0x401c84
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00410670
add esp, 0xc
cmp dword [ebp + 0x19c], esi
jne 0x401c2a
cmp dword [0x42df90], 3
jne 0x401c2a
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
call dword [0x42420c]
push 0x427b40
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040e5f5
add esp, 0xc
jmp 0x401c3a
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [0x424228]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040e5f5
and dword [ebp - 0x7c], 0
push 0x427b44
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040e947
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x401c84
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040ec3a
push dword [ebp - 0x7c]
call fcn.0040ecce
add esp, 0x14
mov dword [ebp - 0x80], esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.0040e5e6
add ebp, 0x194
leave
ret

Function at 0x401d2f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
xor esi, esi
call fcn.00410670
and dword [ebp - 0x80], esi
add esp, 0xc
test edi, edi
je 0x401dc3
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [0x424228]
push str.golfinfo.ini
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040e5f5
push 0x427b64
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040e947
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x80], 0
je 0x401dc3
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.0040eeac
push dword [ebp - 0x80]
call fcn.0040ecce
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e5e6
add ebp, 0x190
leave
ret
Function at 0x402c9b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x427b44
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040e947
add esp, 0xc
test eax, eax
je 0x402cc8
xor eax, eax
jmp 0x402d53
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040f4ee
push dword [ebp - 4]
call fcn.0040f710
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040f4ee
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040f30c
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0040ec3a
push dword [ebp - 4]
call fcn.0040ecce
push ebx
lea ebx, [edi + esi]
call fcn.00402d57
push 0x427b64
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040e947
add esp, 0x44
pop esi
test eax, eax
jne 0x402cc1
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.0040eeac
push dword [ebp - 4]
call fcn.0040ecce
add esp, 0x14
test edi, edi
je 0x402d50
push edi
call fcn.0040f3d6
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret