joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401b33
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a74
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b2c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401a60
mov dword [esp], eax
mov esi, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401b70
mov esi, dword [0x4053a4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b50
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b25
sub eax, 4
and eax, 0xfffffffb
je 0x401b25
add ebx, dword [0x4053a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401b3a
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x401a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
Function at 0x401fb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402005
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401ffe
test esi, esi
je 0x401ffe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fe0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x478120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e000]
push edi
jmp 0x47813a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x478141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x478130
mov eax, 1
add ebx, ebx
jne 0x478153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x478164
jne 0x478183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x478183
dec eax
add ebx, ebx
jne 0x478170
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x478148
add ebx, ebx
jne 0x47817f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4781d5
xor ecx, ecx
sub eax, 3
jb 0x47819b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47820a
sar eax, 1
mov ebp, eax
jmp 0x4781a6
add ebx, ebx
jne 0x4781a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x478174
inc ecx
add ebx, ebx
jne 0x4781b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x478174
add ebx, ebx
jne 0x4781c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4781b6
jne 0x4781d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4781b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4781f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4781e6
jmp 0x478136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4781f4
add edi, ecx
jmp 0x478136
pop esi
mov edi, esi
mov ecx, 0x27f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x478212
cmp byte [edi], 0xa
jne 0x478212
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 0x478217
lea edi, [esi + 0x76000]
mov eax, dword [edi]
or eax, eax
je 0x478286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x85b34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x85bac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x478244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x85bb0]
or eax, eax
je 0x478280
mov dword [ebx], eax
add ebx, 4
jmp 0x478261
call dword [esi + 0x85bc0]
mov ebp, dword [esi + 0x85bb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x4782ba
sub esp, 0xffffff80
jmp 0x434bdf
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x2a4c57b3
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
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
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6f6b71e2
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x40197d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401990
push esp
mov dword [ebp - 0x24], 0x4016f4
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a2f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a10
pop ebp
ret 0x10
Function at 0x408a1e
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x40f014]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
lea eax, [esp + 0x260]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x408a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408bdb
movzx esi, si
or esi, 0x80070000
jmp 0x408bdb
push ecx
lea eax, [esp + 0x264]
mov edx, ebx
push eax
push 0
lea ecx, [esp + 0x164]
call fcn.004072c5
mov esi, eax
test esi, esi
js 0x408bdb
push 0x4029b0
mov edx, ebx
lea ecx, [esp + 0x15c]
call fcn.004071d2
mov esi, eax
test esi, esi
js 0x408bdb
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408a55
push 0x40294c
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408ba0
push 0x402950
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408ba0
lea eax, [esp + 0x158]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x158]
push 0
lea eax, [esp + 0x14]
mov edx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.004034e0
mov esi, eax
test esi, esi
js 0x408bd4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push eax
lea eax, [esp + 0x1c]
push eax
push 0x4029b8
call fcn.00406fd3
mov esi, eax
test esi, esi
js 0x408bd4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00406f9f
mov esi, eax
test esi, esi
js 0x408bd4
test byte [esp + 0x18], 0x10
je 0x408ba0
push 0x90
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x158]
call fcn.00407d65
mov esi, eax
test esi, esi
js 0x408bd4
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x408bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x408bd4
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x36c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dd40
mov esp, ebp
pop ebp
ret
Function at 0x40ac13
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x40ac2d
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x40ac40
mov edi, 0xfff80000
mov edx, dword [0x40f49c]
mov eax, dword [0x40f494]
test edx, edx
jne 0x40ac5b
test eax, eax
je 0x40ac6e
mov edx, eax
mov dword [0x40f49c], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x40ac6e
cmp ecx, ebx
jb 0x40ac6e
cmp ecx, edi
jbe 0x40ad62
mov edx, eax
test eax, eax
jmp 0x40ac90
test edx, edx
je 0x40ac8b
mov eax, dword [edx + 8]
test eax, eax
je 0x40ac8b
cmp eax, ebx
jb 0x40ac8b
cmp eax, edi
jbe 0x40ad62
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x40f49c], edx
jne 0x40ac74
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x40acbf
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.0040ab8a
mov edx, eax
test edx, edx
jne 0x40ad28
cmp esi, 0x40000000
jae 0x40acd4
lea ecx, [esi + 0x40000000]
mov edx, edi
call fcn.0040aaf5
mov edx, eax
test edx, edx
jne 0x40ad28
cmp esi, 0x40000000
jbe 0x40acf5
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.0040aaf5
mov edx, eax
test edx, edx
jne 0x40ad28
cmp esi, 0x40000000
jae 0x40ad0a
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.0040ab8a
mov edx, eax
test edx, edx
jne 0x40ad28
mov edx, esi
mov ecx, ebx
call fcn.0040ab8a
mov edx, eax
test edx, edx
jne 0x40ad28
mov edx, edi
mov ecx, esi
call fcn.0040aaf5
mov edx, eax
test edx, edx
je 0x40ad87
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x40f494]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x40f49c], edx
mov dword [0x40f494], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x40ad52
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x40ad87
cmp esi, edi
ja 0x40ad87
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x40ad89
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40ae18
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x40f4a4], 0
je 0x40ae2e
mov eax, 0x10dd
jmp 0x40ae83
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x40f4a4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x40ae27
push esi
mov esi, dword [0x40f494]
mov dword [0x40f484], eax
mov dword [0x40f48c], eax
mov dword [0x40f4a0], eax
mov dword [0x40f4a8], eax
mov dword [0x40f498], eax
jmp 0x40ae7c
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x40ae67
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b586
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x40f4a4], eax
je 0x40b5ae
mov eax, 0x10dd
jmp 0x40b6a2
mov eax, dword [0x40f4a8]
test eax, eax
jne 0x40b6a2
test esi, esi
jne 0x40b5c7
push 0x57
pop eax
jmp 0x40b6a2
test ebx, ebx
jne 0x40b5cf
push 6
jmp 0x40b5c1
cmp dword [ebx], 0
jne 0x40b5e7
push 6
pop eax
mov dword [0x40f4a8], eax
mov dword [0x40f498], ebx
jmp 0x40b6a2
push edi
push 0x18
push 8
pop edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40b688
mov ecx, dword [ebx]
call fcn.0040adb4
mov ecx, dword [ebp - 8]
mov edi, eax
call fcn.004034e0
movzx ecx, byte [edi + 0x36]
mov edx, eax
mov eax, dword [edi + 0x40]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40b67c
cmp ecx, 0x1e
ja 0x40b67c
cmp dword [edi + 0x44], edx
jne 0x40b67c
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b652
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40b688
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x40f484]
mov dword [esi], eax
xor eax, eax
mov dword [0x40f484], esi
jmp 0x40b6a1
cmp dword [0x40f488], 0
push 9
pop edi
jne 0x40b68e
mov dword [0x40f4a8], edi
test esi, esi
je 0x40b699
mov ecx, esi
call fcn.00403541
mov dword [0x40f498], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c987
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x40f014]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.004034e0
push 0x403018
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00403470
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40ca0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ca43
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x402fd0
call fcn.0040c720
mov edi, eax
jmp 0x40ca43
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040c86c
mov ebx, eax
test ebx, ebx
jns 0x40ca35
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.0040c701
mov edi, ebx
jmp 0x40ca43
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x40ca4d
push esi
call fcn.0040c77c
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 8
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403434
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405698
test esi, esi
jne 0x40346a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405788
jmp 0x403488
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032d8
mov edi, eax
test esi, esi
je 0x403488
cmp dword [ebx], 0
je 0x403488
dec esi
jmp 0x403471
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40452c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5c9024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4045c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4045a4
xor eax, eax
push ebp
push 0x40459d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4045e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x5c9024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5c9024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405444
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d304c], 0
je 0x4054a5
cmp word [0x5d3220], 0xd7b2
jne 0x40546d
cmp dword [0x5d3228], 0
jbe 0x40546d
mov eax, 0x5d321c
call dword [0x5d3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x4054cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5c9030], 0
jne 0x4054c1
push 0
push 0x5c9768
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40561c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5c9038], 0
je 0x405642
mov edx, esi
mov eax, ebx
call dword [0x5c9038]
jmp 0x405651
mov eax, 8
call fcn.00402fe8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5d304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4055e4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4073d8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40745b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407608
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40745b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4074e4
xor eax, eax
push ebp
push 0x4074dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407214
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4074c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407644
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4074c2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4074e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4075fe
cmp byte [ebp - 0xd], 0
jne 0x40752b
cmp byte [ebp - 0x12], 0
je 0x4075fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407544
dec ebx
cmp byte [ebx], 0x2e
je 0x407553
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407543
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4075fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407590
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4075fe
cmp byte [ebp - 0xd], 0
je 0x4075fe
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4075fe
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret