joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cf50
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490418
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a8228]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea edi, [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
xor esi, esi
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], esi
call eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], esi
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea esi, [ebx + 0x40]
call fcn.0043f3a0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x48]
add ebx, 0x44
test edx, edx
je 0x43d075
cmp edx, ebx
jne 0x43d075
mov ecx, dword [esp + 0x14]
cmp ecx, eax
sete al
test al, al
je 0x43d02e
mov eax, dword [ebp + 8]
push eax
push str.CFileSystem::GetFile____
push 0x1000000
call fcn.00430530
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0
je 0x43d017
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, dword [edx + 4]
jne 0x43d038
call fcn.00440ba0
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 0
je 0x43d05e
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0043f6d0
int3

Function at 0x443b50
Capabilities:
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebp, 0x811c9dc5
cmp esi, 0xfffffffe
je 0x443b75
test esi, esi
je 0x443b70
cmp esi, dword [esp + 0x1c]
je 0x443b75
call fcn.00461d46
cmp edi, dword [esp + 0x20]
je 0x443be1
cmp esi, 0xfffffffe
mov ebx, edi
je 0x443ba7
test esi, esi
jne 0x443b8b
call fcn.00461d46
cmp dword [esi + 0x18], 0x10
jb 0x443b96
mov eax, dword [esi + 4]
jmp 0x443b99
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x443ba7
call fcn.00461d07
add edi, 1
cmp esi, 0xfffffffe
je 0x443bd4
test esi, esi
jne 0x443bb8
call fcn.00461d46
cmp dword [esi + 0x18], 0x10
jb 0x443bc3
mov eax, dword [esi + 4]
jmp 0x443bc6
lea eax, [esi + 4]
mov edx, dword [esi + 0x14]
add edx, eax
cmp ebx, edx
jb 0x443bd4
call fcn.00461d07
movsx eax, byte [ebx]
imul ebp, ebp, 0x1000193
xor ebp, eax
jmp 0x443b61
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x44a570
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
push esi
push edi
mov esi, ecx
jne 0x44a5d9
lea edi, [esi + 4]
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebx], 0
jne 0x44a5d2
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
call ebx
mov ecx, dword [esi + 0x4c]
mov edi, eax
mov eax, dword [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44a5ce
call ebx
sub eax, edi
push eax
lea edi, [esi + 0x70]
call fcn.0044a7c0
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x44a5a0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44b530
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x44c7d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48daa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4a8228]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
lea esi, [edi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
xor ebx, ebx
push 0xffffffffffffffff
mov ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
call eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebx
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov edx, dword [edi + 0xc]
add edi, 8
mov ecx, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
jmp 0x44c846
mov eax, dword [esp + 0x14]
cmp ecx, edi
jne 0x44c897
cmp eax, dword [esp + 0x1c]
sete dl
test dl, dl
sete dl
test dl, dl
je 0x44c8a1
test ecx, ecx
je 0x44c897
cmp eax, dword [ecx + 4]
je 0x44c89c
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx + 0x20], eax
jne 0x44c886
mov ecx, dword [ebp + 8]
push ebx
call dword [ebp + 0x10]
test eax, eax
jne 0x44c886
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
call fcn.0042bd00
add esp, 8
lea edx, [esp + 0x10]
call fcn.0044d3d0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x44c842
call fcn.0044d2e0
call fcn.0044d270
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 0
je 0x44c8c4
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x28], eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44e730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48da23
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a8228]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], 1
mov ecx, 0x44ea90
sub ecx, eax
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
push 0xe
sub ecx, 0xe
push eax
mov byte [eax], 0xb8
mov dword [eax + 1], esi
mov dword [eax + 5], 0x50240487
mov byte [eax + 9], 0xe9
mov dword [eax + 0xa], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CThreadControl.0
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
lea edx, [esi + 0x44]
mov dword [esi + 0x30], eax
push edx
mov dword [esi + 0x2c], 0xffffffff
call fcn.00438e30
mov byte [esp + 0x14], 1
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x44eaf0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x44eb23
lea eax, [esi + 0x1c]
push eax
mov eax, dword [esp + 8]
push 4
push ecx
lea edx, [esi + 4]
push edx
push eax
push 0
call fcn.004646bc
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
je 0x44eb2b
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x44eb30
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
push ebx
je 0x44eb73
cmp dword [esi + 0x18], 1
jne 0x44eb73
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x44eb50
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x44eb6c
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x44eb6b
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x44eb60
pop edi
mov dword [esi + 0x18], 0
mov eax, 1
pop ebx
ret

Function at 0x44eb80
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44ebc5
cmp dword [esi + 0x18], 0
jne 0x44ebc5
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x44eba3
mov dword [esi + 0x18], 0
xor eax, eax
ret
test eax, eax
jbe 0x44ebbe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x44ebb1
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
ret

Function at 0x44ff50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x10]
mov eax, edi
call fcn.00458f40
mov ecx, dword [edi + 0x74]
lea eax, [edi + 0x70]
mov edi, dword [ecx]
mov ebx, eax
test ebx, ebx
je 0x45000b
cmp ebx, eax
jne 0x45000b
cmp edi, ecx
je 0x44ffeb
cmp edi, dword [ebx + 4]
je 0x44ffe6
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov esi, dword [edi + 8]
mov ecx, dword [esi + 0x30]
push 0
sub edx, 0x11
push edx
push eax
push 0x11
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x30]
xor edx, edx
cmp esi, dword [eax + 0x84]
setne dl
sub edx, 1
and edx, 5
push edx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, dword [ebx + 4]
je 0x44ffe6
mov eax, dword [ebp + 8]
mov edi, dword [edi]
mov ecx, dword [eax + 0x74]
add eax, 0x70
jmp 0x44ff74
call fcn.00450500
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x84]
test eax, eax
je 0x450002
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00450570
int3
Function at 0x4594b0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a8228]
xor eax, esp
mov dword [esp + 0x100], eax
push 0xfe
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00468c40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
cmp eax, 0x412
jg 0x459524
je 0x459513
sub eax, 0x404
je 0x45950c
sub eax, 0xd
jne 0x45952b
push str.MS_Gothic
push 0xff
lea ecx, [esp + 8]
push ecx
jmp 0x45954b
push str.PMingliu
jmp 0x459541
push str.Gulim
push 0xff
lea eax, [esp + 8]
push eax
jmp 0x45954b
cmp eax, 0x804
je 0x45953c
push str.Gulim
push 0xff
lea ecx, [esp + 8]
push ecx
jmp 0x45954b
push str.SimSun
push 0xff
lea edx, [esp + 8]
push edx
call fcn.004627fb
add esp, 0xc
mov ecx, dword [esp + 0x108]
lea eax, [esp]
push eax
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_CreateFontA]
push 0
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004626c8
add esp, 0x104
ret
Function at 0x4626c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8228]
jne 0x4626d2
repz ret
jmp fcn.00468916

Function at 0x46d1c4
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 + 0x4a8b18]
je 0x46d1df
inc edi
cmp edi, 0x17
jb 0x46d1d0
cmp edi, 0x17
jae 0x46d35f
push ebp
push 3
call fcn.0047f3a1
cmp eax, 1
pop ecx
je 0x46d32b
push 3
call fcn.0047f3a1
test eax, eax
pop ecx
jne 0x46d213
cmp dword [0x4a8094], 1
je 0x46d32b
cmp ebx, 0xfc
je 0x46d35e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ab868
push ebp
call fcn.004633e1
add esp, 0xc
test eax, eax
je 0x46d249
push esi
push esi
push esi
push esi
push esi
call fcn.00464234
add esp, 0x14
push 0x104
mov esi, 0x4ab881
push esi
push 0
mov byte [0x4ab985], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46d28d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004633e1
add esp, 0xc
test eax, eax
je 0x46d28d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00464234
add esp, 0x14
push esi
call fcn.00464770
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46d2d2
push esi
call fcn.00464770
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4abb7c
push 0x492dc8
sub ecx, eax
push ecx
push eax
call fcn.0046859e
add esp, 0x14
test eax, eax
je 0x46d2d2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00464234
add esp, 0x14
jmp 0x46d2d4
xor esi, esi
push 0x495e00
push ebx
push ebp
call fcn.0047b948
add esp, 0xc
test eax, eax
je 0x46d2f4
push esi
push esi
push esi
push esi
push esi
call fcn.00464234
add esp, 0x14
push dword [edi*8 + 0x4a8b1c]
push ebx
push ebp
call fcn.0047b948
add esp, 0xc
test eax, eax
je 0x46d316
push esi
push esi
push esi
push esi
push esi
call fcn.00464234
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0047f1e4
add esp, 0xc
jmp 0x46d35e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46d35e
cmp ebp, 0xffffffff
je 0x46d35e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a8b1c]
push dword [esi]
call fcn.00464770
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
Function at 0x47f1e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046a119
xor ebx, ebx
cmp dword [0x4abf10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x47f2ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47f39a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x494ae8
push edi
call esi
cmp eax, ebx
je 0x47f39a
push eax
call fcn.0046a0ab
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4abf10], eax
call esi
push eax
call fcn.0046a0ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4abf14], eax
call esi
push eax
call fcn.0046a0ab
mov dword [0x4abf18], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046a960
test eax, eax
pop ecx
pop ecx
je 0x47f288
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00464234
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x47f2ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046a0ab
cmp eax, ebx
pop ecx
mov dword [0x4abf20], eax
je 0x47f2ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046a0ab
pop ecx
mov dword [0x4abf1c], eax
mov eax, dword [0x4abf1c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x47f33f
cmp dword [0x4abf20], ecx
je 0x47f33f
push eax
call fcn.0046a122
push dword [0x4abf20]
mov esi, eax
call fcn.0046a122
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x47f33f
cmp edi, ebx
je 0x47f33f
call esi
cmp eax, ebx
je 0x47f30c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47f30c
test byte [ebp - 0x18], 1
jne 0x47f33f
lea eax, [ebp - 0x10]
push eax
call fcn.0046aa0f
test eax, eax
pop ecx
je 0x47f327
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00464234
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47f336
or dword [ebp + 0x10], 0x200000
jmp 0x47f37a
or dword [ebp + 0x10], 0x40000
jmp 0x47f37a
mov eax, dword [0x4abf14]
cmp eax, dword [ebp - 8]
je 0x47f37a
push eax
call fcn.0046a122
cmp eax, ebx
pop ecx
je 0x47f37a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47f37a
mov eax, dword [0x4abf18]
cmp eax, dword [ebp - 8]
je 0x47f37a
push eax
call fcn.0046a122
cmp eax, ebx
pop ecx
je 0x47f37a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4abf10]
call fcn.0046a122
cmp eax, ebx
pop ecx
je 0x47f39a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47f39c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x57b92f41
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x71be5477
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4071b4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4072c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x407234
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x40722b
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c2b4
mov eax, dword [ebp - 4]
call fcn.0040c128
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x407264
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c1dc
jmp 0x407280
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c2b4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c128
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4072a8
cmp edi, 0x104
jbe 0x40729c
mov eax, dword [ebp - 4]
call fcn.0040c128
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x4072a8
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072c7
lea eax, [ebp - 4]
call fcn.0040b590
pop eax
jmp eax

Function at 0x407540
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b590
test esi, esi
jne 0x407576
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040b728
jmp 0x407594
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407420
mov edi, eax
test esi, esi
je 0x407594
cmp dword [ebx], 0
je 0x407594
dec esi
jmp 0x40757d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x40a19c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040a65c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a325
test edi, edi
je 0x40a325
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a265
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a240
cmp edi, 0xffffffff
je 0x40a201
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a201
mov byte [esp], 0
jmp 0x40a325
cmp dword [esi], 1
jg 0x40a240
cmp dword [esi], 0
jne 0x40a232
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a232
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a325
lea eax, [esp + 0xc]
call fcn.00409e4c
dec ebp
test ebp, ebp
jg 0x40a1e6
cmp edi, 0xffffffff
je 0x40a265
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a263
mov byte [esp], 0
jmp 0x40a325
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a1aa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a265
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a3a0
mov edx, eax
mov ebx, dword [0x6838fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a2c9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a2c7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a2c9
xor edi, edi
cmp byte [esp], 0
je 0x40a2ef
mov ebx, dword [esi]
test bl, 1
jne 0x40a305
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a2cf
mov byte [esp + 1], 1
jmp 0x40a305
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a2ef
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a27c
cmp byte [esp], 0
je 0x40a325
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b1ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x68305c], 0
je 0x40b253
cmp word [0x683348], 0xd7b2
jne 0x40b215
cmp dword [0x683350], 0
jbe 0x40b215
mov eax, 0x683344
call dword [0x683360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40b280
call fcn.0040be7c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x678036], 0
jne 0x40b26f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret