joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c60a
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.0042c7ea
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42c632
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call fcn.0042d3e6
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x42c65c
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0042d3e6
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
test eax, eax
jne 0x42c6bf
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call fcn.0042d758
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x42c7c5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42c7c1
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.00433271
add esp, 0xc
test eax, eax
jne 0x42c7a0
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call fcn.0042d3e6
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [0x4563ba]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x4563be]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x42c6d1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call fcn.0042d758
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x42e8cb
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.0042da3b
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x42e90e
cmp dword [ebp - 0x88], 2
jne 0x42e90e
cmp dword [ebp - 0x94], 5
jb 0x42e90e
push 1
pop eax
jmp 0x42ea10
lea eax, [ebp - 0x122c]
push 0x1090
push eax
push 0x43386f
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42e9fd
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x42e950
mov al, byte [ecx]
cmp al, 0x61
jl 0x42e94b
cmp al, 0x7a
jg 0x42e94b
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42e93d
lea eax, [ebp - 0x122c]
push 0x16
push eax
push 0x433857
call fcn.0042d84b
add esp, 0xc
test eax, eax
jne 0x42e972
lea eax, [ebp - 0x122c]
jmp 0x42e9bb
lea eax, [ebp - 0x19c]
push 0x104
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x19c], bl
lea ecx, [ebp - 0x19c]
je 0x42e9a6
mov al, byte [ecx]
cmp al, 0x61
jl 0x42e9a1
cmp al, 0x7a
jg 0x42e9a1
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x42e993
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.00431ab2
pop ecx
pop ecx
cmp eax, ebx
je 0x42e9fd
push 0x2c
push eax
call fcn.0042d53f
pop ecx
cmp eax, ebx
pop ecx
je 0x42e9fd
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x42e9e2
cmp byte [ecx], 0x3b
jne 0x42e9dd
mov byte [ecx], bl
jmp 0x42e9de
inc ecx
cmp byte [ecx], bl
jne 0x42e9d4
push 0xa
push ebx
push eax
call fcn.0043188c
add esp, 0xc
cmp eax, 2
je 0x42ea10
cmp eax, 3
je 0x42ea10
cmp eax, 1
je 0x42ea10
lea eax, [ebp - 4]
push eax
call fcn.0042e89e
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x4305fc
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4593a2]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x43064a
call ebp
mov esi, eax
cmp esi, ebx
je 0x43062b
mov dword [0x4593a2], 1
jmp 0x430653
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x430725
mov dword [0x4593a2], 2
jmp 0x4306d9
cmp eax, 1
jne 0x4306d4
cmp esi, ebx
jne 0x430663
call ebp
mov esi, eax
cmp esi, ebx
je 0x430725
cmp word [esi], bx
mov eax, esi
je 0x430678
inc eax
inc eax
cmp word [eax], bx
jne 0x43066a
inc eax
inc eax
cmp word [eax], bx
jne 0x43066a
sub eax, esi
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4306c9
push ebp
call fcn.0042d3e6
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4306c9
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4306c5
push dword [esp + 0x10]
call fcn.0042d758
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x430727
cmp eax, 2
jne 0x430725
cmp edi, ebx
jne 0x4306e9
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x430725
cmp byte [edi], bl
mov eax, edi
je 0x4306f9
inc eax
cmp byte [eax], bl
jne 0x4306ef
inc eax
cmp byte [eax], bl
jne 0x4306ef
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.0042d3e6
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x43070f
xor esi, esi
jmp 0x43071a
push ebp
push edi
push esi
call fcn.00431f83
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x430727
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x43076d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4589fe
cmp edx, dword [eax]
je 0x43078f
add eax, 8
inc ecx
cmp eax, 0x458a8e
jb 0x430780
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4589fe]
jne 0x4308bd
mov eax, dword [0x4590f6]
cmp eax, 1
je 0x430897
test eax, eax
jne 0x4307c0
cmp dword [0x4590fa], 1
je 0x430897
cmp edx, 0xfc
je 0x4308bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4307f7
lea eax, [ebp - 0x1a4]
push 0x433b5f
push eax
call fcn.00430a4f
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042e80a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43083a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042e80a
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433b5b
push edi
call fcn.0043094f
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x433b3f
push eax
call fcn.00430a4f
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00430a5b
lea eax, [ebp - 0xa0]
push 0x433b3b
push eax
call fcn.00430a5b
push dword [esi + 0x458a02]
lea eax, [ebp - 0xa0]
push eax
call fcn.00430a5b
push 0x12010
lea eax, [ebp - 0xa0]
push 0x433b13
push eax
call fcn.004322b8
add esp, 0x2c
pop edi
jmp 0x4308bd
lea eax, [ebp + 8]
lea esi, [esi + 0x458a02]
push 0
push eax
push dword [esi]
call fcn.0042e80a
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 0x430ca1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x430cc1
xor eax, eax
jmp 0x430e27
mov eax, dword [ebp + 8]
sar eax, 5
lea ebx, [eax*4 + 0x45a6ee]
mov eax, dword [ebp + 8]
and eax, 0x1f
lea esi, [eax + eax*8]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x430cf1
push 2
push edi
push dword [ebp + 8]
call fcn.0042e50d
add esp, 0xc
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x430dc0
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x430dfb
lea eax, [ebp - 0x414]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x430d4b
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov cl, byte [ecx]
cmp cl, 0xa
jne 0x430d36
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
mov ecx, eax
lea edx, [ebp - 0x414]
sub ecx, edx
cmp ecx, 0x400
jl 0x430d17
mov edi, eax
lea eax, [ebp - 0x414]
sub edi, eax
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x430db5
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x430d87
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x430d11
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x430e24
cmp dword [ebp + 8], edi
je 0x430dfb
push 5
pop esi
cmp dword [ebp + 8], esi
jne 0x430ded
call fcn.0042e1a9
mov dword [eax], 9
call fcn.0042e1b2
mov dword [eax], esi
jmp 0x430df6
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x430d87
lea ecx, [ebp - 0xc]
push edi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x430de2
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x430d89
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x430d89
push dword [ebp + 8]
call fcn.0042e136
pop ecx
or eax, 0xffffffff
jmp 0x430e27
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x430e10
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x430cba
call fcn.0042e1a9
mov dword [eax], 0x1c
call fcn.0042e1b2
mov dword [eax], edi
jmp 0x430df6
sub eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4328b3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x432917
push 0x3d
push dword [ebp + 8]
call fcn.00432e6f
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
mov dword [ebp - 8], esi
je 0x432917
cmp dword [ebp + 8], esi
je 0x432917
mov eax, dword [0x459202]
xor ebx, ebx
cmp byte [esi + 1], bl
sete bl
cmp eax, dword [0x459206]
jne 0x4328fd
push eax
call fcn.00432a92
pop ecx
mov dword [0x459202], eax
cmp eax, edi
jne 0x432955
cmp dword [ebp + 0xc], edi
je 0x43291f
cmp dword [0x45920a], edi
je 0x43291f
call fcn.00432380
test eax, eax
je 0x432955
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp ebx, edi
jne 0x432a33
push 4
call fcn.0042d3e6
cmp eax, edi
pop ecx
mov dword [0x459202], eax
je 0x432917
mov dword [eax], edi
cmp dword [0x45920a], edi
jne 0x432955
push 4
call fcn.0042d3e6
cmp eax, edi
pop ecx
mov dword [0x45920a], eax
je 0x432917
mov dword [eax], edi
sub esi, dword [ebp + 8]
mov edi, dword [0x459202]
mov dword [ebp - 4], edi
push esi
push dword [ebp + 8]
call fcn.00432a3a
mov esi, eax
pop ecx
test esi, esi
pop ecx
jl 0x4329b5
cmp dword [edi], 0
je 0x4329b5
test ebx, ebx
je 0x4329ad
push dword [edi + esi*4]
lea edi, [edi + esi*4]
call fcn.0042d758
pop ecx
cmp dword [edi], 0
je 0x432997
mov eax, dword [edi + 4]
inc esi
mov dword [edi], eax
add edi, 4
jmp 0x432987
mov eax, esi
shl eax, 2
push eax
push dword [ebp - 4]
call fcn.00432b40
pop ecx
test eax, eax
pop ecx
je 0x4329e7
jmp 0x4329e2
mov eax, dword [ebp + 8]
mov dword [edi + esi*4], eax
jmp 0x4329e7
test ebx, ebx
jne 0x432a33
test esi, esi
jge 0x4329bf
neg esi
lea eax, [esi*4 + 8]
push eax
push edi
call fcn.00432b40
pop ecx
test eax, eax
pop ecx
je 0x432917
mov ecx, dword [ebp + 8]
mov dword [eax + esi*4], ecx
and dword [eax + esi*4 + 4], 0
mov dword [0x459202], eax
cmp dword [ebp + 0xc], 0
je 0x432a33
push dword [ebp + 8]
call fcn.0042e80a
inc eax
inc eax
push eax
call fcn.0042d3e6
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x432a33
push dword [ebp + 8]
push esi
call fcn.00430a4f
mov eax, esi
pop ecx
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 8]
and byte [eax], 0
inc eax
neg ebx
sbb ebx, ebx
not ebx
and ebx, eax
push ebx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push esi
call fcn.0042d758
pop ecx
xor eax, eax
jmp 0x43291a
Function at 0x435633
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
xor eax, eax
pushal
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x435728
mov dword [ebp - 0x174], eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x170], eax
push 0x80000
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov dword [ebp - 0x164], eax
push 0x6277
push esp
push dword [ebp + 0xc]
call fcn.00437cd5
add esp, 8
add esp, 4
test eax, eax
je 0x43571c
mov dword [ebp - 0x16c], eax
xor ebx, ebx
cmp ebx, dword [ebp - 0x170]
jae 0x435706
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x170]
sub ecx, ebx
cmp ecx, 0x80000
jbe 0x4356ce
mov ecx, 0x80000
push 0
push eax
push ecx
push dword [ebp - 0x164]
push dword [ebp - 0x174]
call dword [sym.imp.kernel32.dll_ReadFile]
push dword [ebp - 0x168]
push dword [ebp - 0x164]
push dword [ebp - 0x16c]
call fcn.00438380
add esp, 0xc
add ebx, dword [ebp - 0x168]
jmp 0x4356ab
push dword [ebp - 0x16c]
call fcn.0043846c
add esp, 4
mov dword [esp + 0x1c], 1
push dword [ebp - 0x174]
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
leave
ret 8
Function at 0x438380
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
test ebx, ebx
je 0x43839c
cmp byte [ebx + 0x5c], 0x77
je 0x4383a8
mov eax, 0xfffffffe
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [ebx], edi
test esi, esi
mov dword [ebx + 4], esi
je 0x438441
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x4383f3
mov ecx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0xc], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp], ecx
call sub.msvcrt.dll_fwrite
cmp eax, 0x4000
jne 0x438463
mov dword [ebx + 0x10], 0x4000
mov edx, dword [ebx + 4]
xor ecx, ecx
add dword [ebx + 0x68], edx
mov edx, dword [ebx + 0x10]
adc dword [ebx + 0x6c], ecx
xor ecx, ecx
add dword [ebx + 0x70], edx
adc dword [ebx + 0x74], ecx
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00438fc7
mov dword [ebx + 0x38], eax
mov edx, dword [ebx + 4]
xor ecx, ecx
sub dword [ebx + 0x68], edx
mov edx, dword [ebx + 0x10]
sbb dword [ebx + 0x6c], ecx
xor ecx, ecx
sub dword [ebx + 0x70], edx
sbb dword [ebx + 0x74], ecx
test eax, eax
jne 0x438441
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4383b9
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edi, dword [ebx + 0x4c]
mov dword [esp], edi
call fcn.00437a20
mov dword [ebx + 0x4c], eax
mov eax, esi
mov esi, dword [ebx + 4]
sub eax, esi
jmp 0x4383a1
mov dword [ebx + 0x38], 0xffffffff
jmp 0x438441
Function at 0x43890f
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
test ebx, ebx
je 0x43892a
cmp byte [ebx + 0x5c], 0x77
je 0x438937
mov eax, 0xfffffffe
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x10]
lea esi, [esi]
lea edi, [edi]
mov ecx, 0x4000
mov esi, ecx
sub esi, edx
jne 0x4389bd
test edi, edi
jne 0x4389b8
mov edi, dword [ebx + 0x10]
xor ecx, ecx
add dword [ebx + 0x70], edi
adc dword [ebx + 0x74], ecx
xor edi, edi
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.00438fc7
mov dword [ebx + 0x38], eax
mov edx, dword [ebx + 0x10]
sub dword [ebx + 0x70], edx
sbb dword [ebx + 0x74], edi
test esi, esi
jne 0x438982
cmp eax, 0xfffffffb
je 0x4389af
mov esi, dword [ebx + 0x10]
xor edi, edi
test esi, esi
mov edx, esi
jne 0x4389aa
mov eax, dword [ebx + 0x38]
cmp eax, 1
je 0x4389a3
cmp eax, 1
jbe 0x438945
cmp eax, 1
jne 0x43892f
xor eax, eax
jmp 0x43892f
mov edi, 1
jmp 0x438995
mov eax, dword [ebx + 0x38]
jmp 0x4389a3
mov dword [ebx + 0x38], 0
jmp 0x438982
mov eax, dword [ebx + 0x38]
jmp 0x43899a
mov ecx, dword [ebx + 0x40]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov edx, dword [ebx + 0x48]
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
cmp eax, esi
jne 0x4389f1
mov dword [ebx + 0x10], 0x4000
mov edx, dword [ebx + 0x48]
mov dword [ebx + 0xc], edx
jmp 0x438950
mov dword [ebx + 0x38], 0xffffffff
mov eax, 0xffffffff
jmp 0x43892f
Function at 0x443ce0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esi]
mov ecx, edx
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr edx, 8
xor ecx, edx
mov edx, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
push ebx
and ecx, 0xff
mov ebx, dword [edi + ecx*4]
shr edx, 8
xor edx, ebx
mov dword [esi + 8], edx
pop ebx
ret

Function at 0x443d30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov al, byte [esi]
test al, al
je 0x443d97
push ebx
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [edi + eax*4]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov ebx, dword [edi + eax*4]
shr ecx, 8
xor ecx, ebx
inc esi
mov dword [edx + 8], ecx
mov al, byte [esi]
test al, al
jne 0x443d50
pop ebx
pop esi
ret
Function at 0x100024e3
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x454
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x450], eax
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [esp + 0x464]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10046d40]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x46c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
push 0x400
andps xmm0, xmmword [0x10046d60]
divsd xmm0, qword [0x10046d50]
addsd xmm0, qword [0x10046d48]
cvttsd2si eax, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x470], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x35]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x474]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [esp + 0x5c]
push 0x10044eac
push eax
call fcn.100233a0
test eax, eax
mov ecx, 0x10044eb4
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.1003955f
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x458]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1001df6b
add esp, 0x454
ret 0x14
Function at 0x10008eeb
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x454
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x450], eax
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [esp + 0x464]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10046d40]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x46c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
push 0x400
andps xmm0, xmmword [0x10046d60]
divsd xmm0, qword [0x10046d50]
addsd xmm0, qword [0x10046d48]
cvttsd2si eax, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x470], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x35]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x474]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [esp + 0x5c]
push 0x10046ddc
push eax
call fcn.100233a0
test eax, eax
mov ecx, 0x10046de4
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.1003955f
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x458]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1001df6b
add esp, 0x454
ret 0x14