joyce8/EMBER2024-capa huggingface dataset:
Function at 0x78afa955
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b54610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b589ec]
test dword [ebp + 8], eax
je 0x78afa9ea
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [ebp - 0x808]
call fcn.78b47b2a
xor eax, eax
pop ecx
mov word [ebp - 8], ax
mov eax, dword [0x78b555ec]
pop ecx
pop ebx
test eax, eax
je 0x78afa9dd
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b589f4]
push dword [0x78b589f0]
call fcn.78ac8210
add dword [0x78b589f0], 1
adc dword [0x78b589f4], 0
or eax, edx
jne 0x78afa9ea
push dword [0x78b555ec]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afa9ea
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab0807
leave
ret

Function at 0x78afe8af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78afe8d6
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78afe92b
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afe8bc
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe903
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b47b2a
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afe92b
test al, 0x10
jne 0x78afe929
test al, 1
je 0x78afe929
test byte [ebp + 0xc], 2
je 0x78afe929
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afe8fa
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78afe946
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afe96e
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afe98b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b47b2a
pop ecx
jmp 0x78afe969
test byte [ebp + 0xc], 0x80
je 0x78afe996
and eax, 0xfffffffe
jmp 0x78afe999
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afe97c
xor eax, eax
pop ebp
ret
Function at 0x78b00307
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b0032f
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b0034c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78b47b2a
pop ecx
jmp 0x78b0032a
test byte [ebp + 0xc], 0x80
je 0x78b00357
and eax, 0xfffffffe
jmp 0x78b0035a
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b0033d
xor eax, eax
pop ebp
ret

Function at 0x78b2c16f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x78b58650], eax
mov dword [0x78b5864c], ecx
mov dword [0x78b58648], edx
mov dword [0x78b58644], ebx
mov dword [0x78b58640], esi
mov dword [0x78b5863c], edi
mov word [0x78b58668], ss
mov word [0x78b5865c], cs
mov word [0x78b58638], ds
mov word [0x78b58634], es
mov word [0x78b58630], fs
mov word [0x78b5862c], gs
pushfd
pop dword [0x78b58660]
mov eax, dword [ebp]
mov dword [0x78b58654], eax
mov eax, dword [ebp + 4]
mov dword [0x78b58658], eax
lea eax, [ebp + 8]
mov dword [0x78b58664], eax
mov eax, dword [ebp - 0x320]
mov dword [0x78b585a0], 0x10001
mov eax, dword [0x78b58658]
mov dword [0x78b58554], eax
mov dword [0x78b58548], 0xc0000409
mov dword [0x78b5854c], 1
mov eax, dword [0x78b54610]
mov dword [ebp - 0x328], eax
mov eax, dword [0x78b553f8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x78b58598], eax
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x78b2c270
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x78b58598], 0
jne 0x78b2c25b
push 1
call sym.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x78b47b2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x78b47b39
pop dword [ebp - 0x3c]
mov eax, 0x78b47b39
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x57ce7
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x9505ab22
add ecx, 0x6afaaeb5
mov edx, eax
mov ebx, 0x59eb5c19
add ebx, 0x1eca91e7
add ebx, dword [ebp - 0x3c]
mov esi, 0x3934191e
add esi, 0x913ae296
xor dword [ebp - 0x28], 0x75d44519
mov edi, dword [ebx]
sub dword [ebp - 0x2c], ebx
xor edi, esi
xor dword [ebp - 0x28], eax
mov dword [edx], edi
add edx, 4
add ebx, 0x33067e3c
add ebx, 0xccf981c8
loop 0x78b47b8e
add eax, 0x31ce5e25
sub eax, 0x31cd03f6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x78aa0000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1000bac7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x1000bc0b
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x1000bb6e
mov dword [esp], 0x6f
call fcn.10016431
sub esp, 4
mov ecx, 0
jmp 0x1000bc0b
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + 0x40d000]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x1000bc03
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + 0x40d000]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x1000bc03
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x1000bc03
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + 0x40d000]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x1000bb2d
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + 0x40d000]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x1000bb50
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + 0x40d000]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x40d000]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x1000bb7e
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10011797
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
xor dh, byte [edx]
cmp byte [esi + esi], dh
xor dh, byte ss:[eax]
xor dh, byte [eax]
Function at 0x100126d0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
cmp dword ss:[edi + 0x6a], esp
xor byte [edi], dh
outsb dx, byte [esi]
jae 0x10012740
Function at 0x100130e0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
jb 0x10013155
imul esp, dword [edx + 0x38], 0x38376765
xor dword [esi + 0x6e], ebp
xor byte [edi + 0x63], dh
insb byte es:[edi], dx
xor byte [eax + 0x33], ch
jae 0x1001315b
outsd dx, dword ss:[esi]
cmp byte ss:[eax], bh
insb byte es:[edi], dx
cmp byte [ecx + 0x31], dh
xor byte gs:[bx + di], dh
jb 0x1001313c
xor eax, 0x37326c6c
xor eax, 0x38393436
xor dword [0x39357376], esi
xor eax, 0x6b323165
xor al, 0x68
jno 0x1001317f
insd dword es:[edi], dx
cmp byte [esi + 0x39], ah
imul esi, dword [esi], 0x66
cmp dword [edx], esi
xor al, 0x68
xor byte [esi], dh
xor dword [ebp + esi + 0x6a], esi
jbe 0x10013164
cmp byte [ecx], bh
xor al, 0x30
jne 0x1001316b
imul esi, dword [edi + ebp*2], 0x33616738
imul si, word [ecx + 0x76], 0x34
outsw dx, word [esi]
xor esp, dword [esi + 0x6b]
jno 0x100131b7
xor al, 0x66
outsd dx, dword [esi]
imul edi, dword [ecx], 0x30
bound esp, qword [edi + 0x34]
js 0x1001317f
jbe 0x100131bb
js 0x10013188
ja 0x10013185
je fcn.100131c0
aaa
xor eax, 0x71743030
xor byte [ecx], dh
xor al, 0x70
xor dword [eax + esi*2], esi
cmp dword [ebp + 0x30], esp
arpl word [esi + 0x33], sp
js 0x100131ce
cmp dword [eax + 0x34], edi
jno 0x100131da
bound esi, qword [esi]
cmp dword [ebx + 0x36], esp
cmp dword [edi + esi + 0x64], ebp
xor dh, byte [si]
xor dh, byte [esi + esi]
jae 0x100131df
outsb dx, byte [esi]
xor dword [edx + 0x35], ebp
cmp dword [0x78763430], esi
xor eax, 0x34303539
jbe 0x100131fe
js 0x100131b7
xor byte [ecx], bh
cmp dword [edi], esi
aaa
ja 0x100131c2
xor esi, dword [ecx]
cmp dword [esp], esi
xor al, 0x6f
xor dword [ecx], esi
aaa
outsb dx, byte [esi]
xor al, 0x33
xor dh, byte [ebx + ebp*2]
cmp dword [edi], esi
cmp byte [ecx], dh
arpl word [eax + edi], si
jae 0x10013219
xor byte [edx], dh
cmp dword [ecx + esi], esi
xor eax, 0x726f3375
insb byte es:[edi], dx
bound esi, qword [edi]
xor eax, 0x6331386b
imul edi, dword [eax], 0x31
arpl word [eax + 0x65], di
js 0x10013222
jo 0x10013237
xor byte [bx + di], dh
jne 0x1001320f
ja 0x10013244
ja 0x10013212
insb byte es:[edi], dx
insd dword es:[edi], dx
outsb dx, byte [esi]
insb byte es:[di], dx
push 0x36677734
insb byte es:[edi], dx
push 0x68
Function at 0x100131c0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
jb 0x10013155
imul esp, dword [edx + 0x38], 0x38376765
xor dword [esi + 0x6e], ebp
xor byte [edi + 0x63], dh
insb byte es:[edi], dx
xor byte [eax + 0x33], ch
jae 0x1001315b
outsd dx, dword ss:[esi]
cmp byte ss:[eax], bh
insb byte es:[edi], dx
cmp byte [ecx + 0x31], dh
xor byte gs:[bx + di], dh
jb 0x1001313c
xor eax, 0x37326c6c
xor eax, 0x38393436
xor dword [0x39357376], esi
xor eax, 0x6b323165
xor al, 0x68
jno 0x1001317f
insd dword es:[edi], dx
cmp byte [esi + 0x39], ah
imul esi, dword [esi], 0x66
cmp dword [edx], esi
xor al, 0x68
xor byte [esi], dh
xor dword [ebp + esi + 0x6a], esi
jbe 0x10013164
cmp byte [ecx], bh
xor al, 0x30
jne 0x1001316b
imul esi, dword [edi + ebp*2], 0x33616738
imul si, word [ecx + 0x76], 0x34
outsw dx, word [esi]
xor esp, dword [esi + 0x6b]
jno 0x100131b7
xor al, 0x66
outsd dx, dword [esi]
imul edi, dword [ecx], 0x30
bound esp, qword [edi + 0x34]
js 0x1001317f
jbe 0x100131bb
js 0x10013188
ja 0x10013185
je fcn.100131c0
aaa
xor eax, 0x71743030
xor byte [ecx], dh
xor al, 0x70
xor dword [eax + esi*2], esi
cmp dword [ebp + 0x30], esp
arpl word [esi + 0x33], sp
js 0x100131ce
cmp dword [eax + 0x34], edi
jno 0x100131da
bound esi, qword [esi]
cmp dword [ebx + 0x36], esp
cmp dword [edi + esi + 0x64], ebp
xor dh, byte [si]
xor dh, byte [esi + esi]
jae 0x100131df
outsb dx, byte [esi]
xor dword [edx + 0x35], ebp
cmp dword [0x78763430], esi
xor eax, 0x34303539
jbe 0x100131fe
js 0x100131b7
xor byte [ecx], bh
cmp dword [edi], esi
aaa
ja 0x100131c2
xor esi, dword [ecx]
cmp dword [esp], esi
xor al, 0x6f
xor dword [ecx], esi
aaa
outsb dx, byte [esi]
xor al, 0x33
xor dh, byte [ebx + ebp*2]
cmp dword [edi], esi
cmp byte [ecx], dh
arpl word [eax + edi], si
jae 0x10013219
xor byte [edx], dh
cmp dword [ecx + esi], esi
xor eax, 0x726f3375
insb byte es:[edi], dx
bound esi, qword [edi]
xor eax, 0x6331386b
imul edi, dword [eax], 0x31
arpl word [eax + 0x65], di
js 0x10013222
jo 0x10013237
xor byte [bx + di], dh
jne 0x1001320f
ja 0x10013244
ja 0x10013212
insb byte es:[edi], dx
insd dword es:[edi], dx
outsb dx, byte [esi]
insb byte es:[di], dx
push 0x36677734
insb byte es:[edi], dx
push 0x68
Function at 0x10013730
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
jb 0x10013766
xor eax, 0x68636f6e
arpl word [esi], si
xor byte [ecx + 0x30], ah

Function at 0x10013760
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
outsd dx, dword [esi]
cmp byte [ecx + ebp*2 + 0x62], ah
jo 0x100137ca
xor byte ss:[ecx + 0x30], ah
push 0x6a
bound si, dword [esi]
Function at 0x100144d0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
cmp dword [ebp + 0x32], esi
je 0x1001453e
push 0x386e7230
xor byte fs:[esi], dh
xor al, 0x30

Function at 0x10014580
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
jne 0x100145e4
cmp dword [ebx + 0x32], esi
xor esi, dword ss:[edi + 0x33]
Function at 0x402f48
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4031ac
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4031df
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4031e6
cmp edx, dword [ebx + 8]
je 0x4031f0
mov eax, 0x65
jmp 0x4031eb
mov eax, 5
jmp 0x4031eb
call sub.kernel32.dll_GetLastError
call fcn.004028b4
mov eax, ebx
pop ebx
ret

Function at 0x4037a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x475024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403838
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403818
xor eax, eax
push ebp
push 0x403811
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 0x403854
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 0x403818
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x475024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x475024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x477048], 0
je 0x40455d
cmp word [0x47721c], 0xd7b2
jne 0x404525
cmp dword [0x477224], 0
jbe 0x404525
mov eax, 0x477218
call dword [0x477234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x475094
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 0x404584
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x475034], 0
jne 0x404579
push 0
push 0x47508c
push 0x475094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x477049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404678
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40640c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406472
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040496c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40645c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406479
lea eax, [ebp - 0x10]
call fcn.004046fc
ret

Function at 0x40b9c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ec
jmp 0x40ba0a
mov eax, ebx
mov edx, esi
call fcn.00404750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba14
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba35
mov al, byte [esp]
jmp 0x40ba37
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c0bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf34
mov eax, dword [0x476d9c]
cmp byte [eax], 0
je 0x40c138
mov eax, dword [0x476ab0]
call fcn.00402d6c
call fcn.00402894
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409168
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c180
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c16e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x476a3c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x477664]
call fcn.00405920
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c9d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40caaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404794
lea eax, [ebp - 8]
call fcn.00404c0c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bbc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca94
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bbc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cabc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca77
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca94
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cab1
lea eax, [ebp - 8]
call fcn.004046fc
ret

Function at 0x40d030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d094
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040496c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408c20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d09b
lea eax, [ebp - 0xc]
call fcn.004046fc
ret

Function at 0x41b718
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b570
dec esi
jne 0x41b73a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41c87c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x477888
cmp dword [edi], 0
jne 0x41c8f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x477884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x475414
mov ecx, 2
call fcn.00402934
mov edx, 0x41c854
lea eax, [esi + 5]
call fcn.0041c874
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c874
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41c8cd
mov dword [0x477884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41de7c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41de82
ret

Function at 0x420444
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x420495
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42047c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42046c
jmp 0x420495
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42047d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428f7c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404bac
xor eax, eax
push ebp
push 0x4290aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42907d
xor eax, eax
push ebp
push 0x429076
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049bc
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42904b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42903a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049bc
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404bbc
mov edx, ebx
pop ecx
call fcn.00402934
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429041
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47699c]
mov dl, 1
mov eax, dword [0x4077ec]
call fcn.0040c240
call fcn.004040b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4290b1
lea eax, [ebp - 4]
call fcn.004046fc
ret