joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e000
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x558438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x47e1c8
test eax, eax
je 0x47e1c8
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x47e1c8
push ecx
push ebx
push eax
call fcn.0049ed70
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x47e1c8
cmp edi, 0xffffffff
je 0x47e1c1
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00454ac0
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x47e1c1
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x47e157
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x47e1c1
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x47e157
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x47e0f0
cmp edi, esi
jae 0x47e157
nop
sub esi, edi
sbb ecx, eax
js 0x47e105
jg 0x47e100
cmp esi, 0x400000
jb 0x47e105
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x47e157
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00454b10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x47e14b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x47e0f0
jg 0x47e157
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x47e0f0
lea eax, [ebp - 0x6c]
push eax
call fcn.004547f0
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x52f984
push 3
push edi
call fcn.00461ac0
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x47e170
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.004d4290
add esp, 8
mov esi, 1
test ebx, ebx
je 0x47e1ad
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x47e1bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d3b6
mov esp, ebp
pop ebp
ret

Function at 0x47f828
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4d95c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d91c7

Function at 0x4d95d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d934a

Function at 0x4df298
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dea1c

Function at 0x4df2a3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dec5b

Function at 0x4dfe03
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dfcd0

Function at 0x4e88c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x5684f8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e8908
cmp byte [edx], 0xa
jne 0x4e8908
or byte [eax + edi + 0x28], 4
jmp 0x4e890d
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4e89fe
mov al, byte [ebx]
cmp al, 0x1a
je 0x4e89df
cmp al, 0xd
je 0x4e8936
mov byte [esi], al
inc esi
inc ebx
jmp 0x4e89d4
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4e8956
cmp byte [eax], 0xa
jne 0x4e894b
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4e8951
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4e89d4
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e89cd
cmp dword [ebp - 0x14], 0
je 0x4e89cd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5684f8]
test byte [eax + edi + 0x28], 0x48
je 0x4e89a4
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4e8994
mov byte [esi], dl
jmp 0x4e89d0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5684f8]
mov byte [eax + edi + 0x2a], dl
jmp 0x4e89d0
cmp byte [ebp - 1], 0xa
jne 0x4e89b6
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4e89b6
mov byte [esi], 0xa
jmp 0x4e8953
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ea565
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e89d1
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4e891f
jmp 0x4e89fe
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5684f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4e89f9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4e89fe
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e8a09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x5684f8]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4e8a4d
cmp word [edx], bx
jne 0x4e8a4d
or byte [edi + eax + 0x28], 4
jmp 0x4e8a52
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4e8ba6
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4e8b86
cmp ax, word [ebp - 0x10]
je 0x4e8a8b
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4e8b7b
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4e8ab1
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4e8aa1
push ecx
pop eax
push 4
jmp 0x4e8aa6
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4e8b75
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e8b6c
cmp dword [ebp - 0x18], 0
je 0x4e8b6c
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x5684f8]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4e8b38
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4e8afc
mov word [esi], ax
jmp 0x4e8b30
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x5684f8]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x5684f8]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x5684f8]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4e8b7b
cmp word [ebp - 4], ax
jne 0x4e8b4d
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4e8b4d
mov word [esi], ax
add esi, 2
jmp 0x4e8b7b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ea565
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4e8b78
jmp 0x4e8b6f
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4e8a6b
jmp 0x4e8ba6
mov ecx, dword [ecx*4 + 0x5684f8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4e8b9d
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4e8ba6
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f05f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004f0c00
add esp, 8
test al, al
je 0x4f0615
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4f0615
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4f0c00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4f20b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f20db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4f20db
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x40f2b6
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f353
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f353
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f353
push 4
push 0xffffffffffffffff
push esi
push 0x40fa6d
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f353
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f31e
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f353
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f359
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f355

Function at 0x4146de
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x4146ee
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x4146f4
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x41471c
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x43a5e0]
test ax, ax
jne 0x414703
mov esi, ecx
jmp 0x41471f
movzx esi, si
pop edi
cmp cx, si
je 0x41473c
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x43a5e0]
test cx, cx
jne 0x414720
mov eax, 0x4390d8
jmp 0x414744
imul eax, edx, 0x1a
add eax, 0x43a5e2
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x41e7fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x41e80d
pop dword [ebp - 0x30]
mov eax, 0xea1569e4
add eax, 0x162c7e29
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x45133
push 0
mov eax, 0xcc731444
add eax, 0x33cfdebc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x4cf0
mov esi, eax
mov edx, 0x44ba00
add edx, dword [ebp - 0x30]
mov ebx, 0x71390736
add dword [ebp - 0x2c], edx
mov edi, dword [edx]
sub dword [ebp - 4], 0xa947c0c6
add edi, ebx
add dword [ebp - 0x10], ecx
mov dword [esi], edi
xor dword [ebp - 0x14], esi
add esi, 0xa8e830b3
add esi, 0x5717cf51
add edx, 0xd55e71e2
sub edx, 0xd55e71de
loop 0x41e85a
add eax, 0x65a46512
sub eax, 0x65a33e7f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x403387
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4033a4
xor eax, eax
jmp 0x4033fd
test al, 0x10
je 0x4033b5
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x4033fd
mov eax, dword [0x4197f4]
test eax, eax
jne 0x4033c7
push esi
call fcn.0040335a
pop ecx
jmp 0x4033fd
cmp eax, 2
jne 0x4033fa
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4033be
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jl 0x4033be
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x4041f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
invalid
clc
Function at 0x404255
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0040378a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040373f
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040377a
add ch, ah
arpl word [edi], bx
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.0040378a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040373f
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0040378a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040373f
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040377a
xchg byte [edi + edx - 0x1c], dl
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
invalid
jns 0x4043c1
test ebx, edi
cli
invalid
call [ecx*4 - 0x5137b]
call dword [eax - 0x18]
jge 0x4043fe
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040373f
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040377a
sub al, 0xad
sub dl, byte [esi + 0x68]
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40446e
cmp dword [ebp - 0x398], 0
je 0x404638
cmp dword [ebp + 0xc], 1
je 0x404638
cmp dword [ebp + 0xc], 8
jne 0x404600
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
invalid
invalid
dec esp
Function at 0x4041fc
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.004069bc
test esi, esi
jne 0x404232
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.00406b14
jmp 0x404250
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404140
mov edi, eax
test esi, esi
je 0x404250
cmp dword [ebx], 0
je 0x404250
dec esi
jmp 0x404239
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404284
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x454008], 0x8088405
inc edx
mov dword [ebx + 0x454008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405b7c
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.00405e18
mov byte [esp], al
cmp byte [esp], 0
jne 0x405d06
test edi, edi
je 0x405d06
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c46
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405c21
cmp edi, 0xffffffff
je 0x405be1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405be1
mov byte [esp], 0
jmp 0x405d06
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405c21
test ebx, ebx
jne 0x405c13
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405c13
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405d06
lea eax, [esp + 0xc]
call fcn.00405910
dec ebp
test ebp, ebp
jg 0x405bc6
cmp edi, 0xffffffff
je 0x405c46
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c44
mov byte [esp], 0
jmp 0x405d06
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405b8a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c46
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405d74
mov edx, eax
mov ebx, dword [0x45a8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405caa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ca8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405caa
xor edi, edi
cmp byte [esp], 0
je 0x405cd0
mov ebx, dword [esi]
test bl, 1
jne 0x405ce6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405cb0
mov byte [esp + 1], 1
jmp 0x405ce6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405cd0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405c5d
cmp byte [esp], 0
je 0x405d06
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 0x4066e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a054], 0
je 0x40674f
cmp word [0x45a340], 0xd7b2
jne 0x406711
cmp dword [0x45a348], 0
jbe 0x406711
mov eax, 0x45a33c
call dword [0x45a358]
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, 0x40677c
call fcn.00407208
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x454032], 0
jne 0x40676b
push 0
push 0x4549c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408adc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408c41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004069bc
cmp si, word [0x454a00]
jb 0x408b74
cmp si, word [0x454c00]
ja 0x408b74
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408b74
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x454a00]
jae 0x408b4e
mov edi, ebx
dec edi
jmp 0x408b6f
cmp si, word [ebx*8 + 0x454a00]
jbe 0x408b5e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408b6f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x454a04]
call fcn.004089fc
jmp 0x408b74
cmp edi, dword [ebp - 8]
jae 0x408b38
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408c23
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c23
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004075ac
push dword [ebp - 0x160]
push 0x408c5c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004075ac
push dword [ebp - 0x164]
push 0x408c6c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004075ac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c48
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406a1c
ret
Function at 0x408df4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408ef8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45cb84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x45cb9c]
jne 0x408e40
mov eax, esi
mov edx, 0x45cb9e
mov ecx, 0x55
call fcn.004075ac
push 0x45cb84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408ee2
push 0x45cb84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004069bc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408eaf
cmp byte [0x45cb80], 0
je 0x408e74
mov edx, esi
mov eax, ebx
call fcn.00408cd8
jmp 0x408eaf
mov edx, esi
mov eax, ebx
call fcn.00408adc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408eaf
cmp dword [esi], 0
je 0x408e98
mov eax, esi
mov edx, 0x408f10
call fcn.00407698
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408adc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407698
push 0x45cb84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x45cb9c], bx
mov eax, dword [esi]
call fcn.00407508
mov ecx, eax
mov eax, 0x45cb9e
mov edx, 0xaa
call fcn.0040895c
push 0x45cb84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408eff
lea eax, [ebp - 4]
call fcn.004069bc
ret