joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002171
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
jnp 0x1000219d
mov ebx, ebx
nop
jmp 0x100021aa
nop
nop
ja 0x100021a5
xchg ecx, ecx
je 0x100021a5
jnp 0x10002198
xchg edi, edi
fiadd dword [ebx + 0xf00fc7d]
test dword [ebx + 0x73000000], eax
or esi, dword [edi + eax - 0x79]
invalid
cmp dword [ebp - 4], 0
jne 0x10002237
jae 0x100021c1
je 0x100021bf
xchg ebx, ebx
ja 0x100021bf
xchg edx, edx
nop
jmp 0x100021c4
jae 0x100021b6
sub dword [eax - 0x28], ebp
add al, 0x10
push 0x100467d8
call fcn.100076b0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000222d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
jl 0x1000220c
jge 0x1000220c
jne 0x10002211
test dword [edi], ecx
add byte [eax], al
add byte [ebx + 0x749090db], cl
or dword [edx + eax - 0x79], esi
leave
mov ebx, ebx
nop
nop
je 0x10002211
je 0x1000220c
xchg ecx, ecx
jg 0x100021fc
jle 0x100021fc
add byte [ebx - 0x17ad0bab], cl
push esi
movsd dword es:[edi], dword [esi]
add al, byte [eax]
mov edx, dword [ebp - 0xc]
push edx
call fcn.1002c770
add esp, 4
js 0x10002228
nop
xchg ebx, ebx
jg 0x1000222d
xchg esi, esi
jle 0x1000222d
je 0x1000222a
js 0x1000221f
arpl word [ebx - 0xaf07bb], cx
adc eax, sym.imp.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jnp 0x1000224a
jp 0x1000224a
jl 0x1000224f
mov word [edi], cs
add byte [eax], al
add byte [eax + 0x7d0b7790], dl
or dword [edi + 0x700074f6], eax
out dx, al
nop
nop
ja 0x1000224f
jge 0x1000224f
xchg esi, esi
je 0x1000224a
jo 0x1000223a
jno 0x1000223a
sal byte [ebx + 0xb], 0x74
pop es
jae 0x1000225c
je 0x1000225a
xchg eax, eax
ja 0x1000225a
xchg edx, edx
nop
jmp 0x1000225f
jae 0x10002251
or byte [ebx + 0x5e5ffc45], 0x5b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004870
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, eax
dec eax
test edx, edx
jbe 0x100048de
push edi
mov edi, dword [esp + 0x14]
sub edi, ecx
push esi
mov esi, dword [esp + 0xc]
inc eax
push ebp
push ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
xor edx, edx
mov ebx, 0x7f
mov ebp, 0x7b
div ebx
xor eax, eax
mov al, byte [edx + esi]
xor edx, edx
mov ebx, eax
mov eax, ecx
div ebp
xor eax, eax
mov al, byte [edx + esi]
mov edx, ecx
xor ebx, eax
and edx, 0x7f
mov al, byte [ebx + 0x10046cc8]
mov bl, byte [edx + esi]
xor al, bl
mov bl, byte [ecx + edi]
xor bl, al
mov eax, dword [esp + 0x1c]
mov byte [ecx + edi], bl
inc ecx
dec eax
mov dword [esp + 0x1c], eax
jne 0x10004892
pop ebx
pop ebp
pop esi
pop edi
mov eax, 0x3e9
ret

Function at 0x10007670
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [ebp], al
mov al, byte [ecx]
test al, al
je 0x100076a2
push esi
mov esi, ebp
sub esi, ecx
mov dl, byte [ecx + 1]
mov al, byte [esi + ecx]
inc edi
inc ecx
dec dl
xor al, dl
mov byte [esi + ecx], al
mov al, byte [ecx]
test al, al
jne 0x1000768c
pop esi
mov byte [edi + ebp], 0
mov eax, ebp
pop edi
pop ebp
ret

Function at 0x10014f00
Capabilities:
Encode data using xor

Disassembly:
and esi, dword [esi]
push edx
inc byte [edx]
lea esi, [eax + ecx*4 - 0x72c0d476]
mov edi, 0xa3ad4f41
or eax, 0xbc46d33
add edx, ebx
sbb byte [edx - 0x4766711c], 0x56
or al, 0x49
dec esi
pop esi
wait
fadd qword [ebp + 0xb]
xchg edx, eax
dec edx
mov byte [edi - 0x69d4ccae], 0xa7
or edx, dword [edx + 0x5287c64a]
xor ebp, dword [ebx]
xchg esi, eax
cmpsd dword [esi], dword es:[edi]
inc ecx
cmp eax, 0x862d5673
push 0xffffffffffffff96
mov cl, 0xb9
dec esp
inc edi
dec edx
aam 0x86
test dword [eax + 0x38bcdd5e], ebx
adc byte [ecx - 0x4f], bl
movsd dword es:[edi], dword [esi]
mov ecx, 0x9fc2919e
inc edx
inc esp
add byte [edi + 0x62bf254e], bh
inc edi
mov es, edi
or dword [esi - 0x25acf253], esi
push edi
mov ecx, dword [ebx - 0x10]
add al, 0x55
out dx, al
cdq
mov ecx, 0x950188b1
nop
pop es
jg 0x10014f26
call 0xcf6c1edc
mov esi, 0xe11672a0
mov bl, 0xfb
pop eax
sub byte [0xe984b7c6], ch
xchg esi, eax
lahf
in eax, dx
retf
Function at 0x1001e100
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
lea eax, [ebp + 0x800]
xor edi, edi
push eax
call fcn.1002c7e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001e127
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
push 0
push 0
push eax
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [ebp + 0x800]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e1bd
mov eax, dword [esp + 0x10]
cmp eax, ebp
jb 0x1001e1bd
mov ecx, dword [esp + 0x20]
push ebp
push ecx
push eax
push esi
call fcn.1001e0c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1001e1c1
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 0x800]
add edx, 0x800
cmp ecx, eax
mov dword [esp + 0x24], edx
jne 0x1001e1a3
mov edx, ebp
push 1
neg edx
push edi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [ebp + 0x800]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e15a
test edi, edi
je 0x1001e1e6
mov ebp, dword [esp + 0x24]
sub edi, esi
add ebp, edi
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.1002c770
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov dword [esp + 0x24], 0xffffffff
push esi
mov ebp, dword [esp + 0x28]
call fcn.1002c770
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x10021895
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x100218a5
mov ecx, ecx
js 0x100218a8
nop
jns 0x100218a8
jmp 0x1002189e
jg 0x100218b3
nop
xchg ebx, ebx
js 0x100218b8
xchg ebp, ebp
jns 0x100218b8
ja 0x100218b5
jg 0x100218aa
cmp dword [ebx - 0xdaf7bb], ecx
add byte [eax], al
add byte [ebx - 0x1e7ef3b3], cl
inc dword [eax]
add byte [eax], al
mov eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
xor eax, ecx
mov byte [ebp - 4], al
jl 0x100218da
nop
nop
ja 0x100218d8
xchg eax, eax
je 0x100218d8
jmp 0x100218e2
xchg ebx, ebx
nop
jl 0x100218d0
ja 0x100218f4
adc ecx, dword [edx + 0x5e5ffc45]
mov al, byte [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
adc dword [edx + 0xf], edi

Function at 0x10025c40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x10025c8f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10025c8f
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ax, ax
je 0x10025c8f
cmp dword [esp + 0xc], edi
jne 0x10025c8f
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret
Function at 0x10025ca0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi + 8], 0x65
jne 0x10025cef
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10025cef
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test ax, ax
je 0x10025cef
cmp dword [esp + 0xc], edi
jne 0x10025cef
mov ax, 1
pop edi
pop esi
ret
pop edi
xor ax, ax
pop esi
ret

Function at 0x10026080
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [ebp], al
mov al, byte [ecx]
test al, al
je 0x100260b2
push esi
mov esi, ebp
sub esi, ecx
mov dl, byte [ecx + 1]
mov al, byte [esi + ecx]
inc edi
inc ecx
dec dl
xor al, dl
mov byte [esi + ecx], al
mov al, byte [ecx]
test al, al
jne 0x1002609c
pop esi
mov byte [edi + ebp], 0
mov eax, ebp
pop edi
pop ebp
ret

Function at 0x1002d0f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1002d1b4
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1004d4d8], eax
call fcn.1002db20
test eax, eax
jne 0x1002d114
ret 0xc
mov ecx, dword [0x1004d4d8]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x1004d4e4], edx
mov dword [0x1004d4e0], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x1004d4dc], eax
mov dword [0x1004d4d8], ecx
call fcn.1002e5e0
test eax, eax
jne 0x1002d156
call fcn.1002db60
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1004ef00], eax
call fcn.10030090
mov ecx, dword [0x1004ef00]
mov dword [0x1004d204], eax
test ecx, ecx
je 0x1002d1a5
test eax, eax
je 0x1002d1a5
call fcn.1002fa80
call fcn.1002da60
call fcn.1002fde0
call fcn.1002fcf0
call fcn.1002f920
mov eax, dword [0x1004d200]
inc eax
mov dword [0x1004d200], eax
mov eax, 1
ret 0xc
call fcn.1002e640
call fcn.1002db60
xor eax, eax
ret 0xc
test eax, eax
jne 0x1002d1f4
mov eax, dword [0x1004d200]
test eax, eax
jle 0x1002d1ef
mov ecx, eax
mov eax, dword [0x1004d510]
dec ecx
test eax, eax
mov dword [0x1004d200], ecx
jne 0x1002d1d8
call fcn.1002f970
call fcn.1002fc90
call fcn.1002e640
call fcn.1002db60
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1002d203
push 0
call fcn.1002e710
add esp, 4
mov eax, 1
ret 0xc

Function at 0x1002e5e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1002dba0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1004b190], eax
je 0x1002e638
push 0x74
push 1
call fcn.100308c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1002e638
mov eax, dword [0x1004b190]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1002e638
push esi
call fcn.1002e670
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1002e690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1004b190]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1002e6fe
push 0x74
push 1
call fcn.100308c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1002e6f4
mov ecx, dword [0x1004b190]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1002e6f4
push esi
call fcn.1002e670
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.1002d2c0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x1002e710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1004b190]
cmp eax, 0xffffffff
je 0x1002e7bf
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x1002e734
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1002e7b0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1002e744
push eax
call fcn.1002c770
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1002e754
push eax
call fcn.1002c770
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1002e764
push eax
call fcn.1002c770
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1002e774
push eax
call fcn.1002c770
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1002e784
push eax
call fcn.1002c770
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1002e794
push eax
call fcn.1002c770
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x1004b860
je 0x1002e7a7
push eax
call fcn.1002c770
add esp, 4
push esi
call fcn.1002c770
add esp, 4
mov eax, dword [0x1004b190]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x1002f980
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.1002fa40
mov eax, dword [0x1004d514]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1002f9a4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1004d510], 1
mov byte [0x1004d50c], bl
jne 0x1002f9fe
mov ecx, dword [0x1004eee8]
test ecx, ecx
je 0x1002f9ec
mov esi, dword [0x1004eee4]
sub esi, 4
cmp esi, ecx
jb 0x1002f9ec
mov eax, dword [esi]
test eax, eax
je 0x1002f9e5
call eax
mov ecx, dword [0x1004eee8]
sub esi, 4
cmp esi, ecx
jae 0x1002f9d7
push 0x1003701c
push 0x10037014
call fcn.1002fa60
add esp, 8
push 0x10037024
push 0x10037020
call fcn.1002fa60
add esp, 8
test ebx, ebx
je 0x1002fa1d
call fcn.1002fa50
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x1004d514], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10030090
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1004d620]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x100300d2
call edi
mov esi, eax
test esi, esi
je 0x100300bc
mov eax, 1
jmp 0x100300cd
call ebp
mov ebx, eax
test ebx, ebx
je 0x100301df
mov eax, 2
mov dword [0x1004d620], eax
cmp eax, 1
jne 0x10030172
test esi, esi
jne 0x100300eb
call edi
mov esi, eax
test esi, esi
je 0x100301df
cmp word [esi], 0
mov eax, esi
je 0x10030105
add eax, 2
cmp word [eax], 0
jne 0x100300f3
add eax, 2
cmp word [eax], 0
jne 0x100300f3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10030164
push edi
call fcn.1002c7e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10030164
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10030156
push ebx
call fcn.1002c770
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x100301df
test ebx, ebx
jne 0x10030183
call ebp
mov ebx, eax
test ebx, ebx
je 0x100301df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x1003019b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003018b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1003018b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.1002c7e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100301bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10030230
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x1004b550
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x10030254
add eax, 8
inc ebp
cmp eax, 0x1004b5e0
jb 0x10030245
cmp ecx, dword [ebp*8 + 0x1004b550]
jne 0x100303fb
mov eax, dword [0x1004d20c]
cmp eax, 1
je 0x100303bd
test eax, eax
jne 0x10030280
cmp dword [0x1004d210], 1
je 0x100303bd
cmp ecx, 0xfc
je 0x100303fb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100302bb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10030304
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x10035564
add ebx, ecx
push ebx
call fcn.100306e0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10035544
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x1004b554]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.100326d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1004ede0]
test eax, eax
je 0x100303ce
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x100303d8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x1004b554]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x10031250
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x1003127c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x1004ede0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x100312b7
push 2
push ebp
push ecx
call fcn.10031150
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10031419
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x10031361
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10031312
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x100312ff
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x100312e2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003140a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x1003135d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x100312de
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100313f9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100313b5
cmp eax, 5
jne 0x1003139e
call fcn.10033120
mov dword [eax], 9
call fcn.10033130
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.100330a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x100313d5
cmp byte [ebp], 0x1a
jne 0x100313d5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.10033120
mov dword [eax], 0x1c
call fcn.10033130
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1003135d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003144a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x10031361
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10031361
Function at 0x100338a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x1004d77c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x100338e8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x100338c8
mov eax, 1
jmp 0x100338e3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100339b9
mov eax, 2
mov dword [0x1004d77c], eax
cmp eax, 1
jne 0x10033908
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x100339cb
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10033923
mov ecx, dword [0x1004d4d0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x10033942
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.1002c7e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10033956
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x100339b0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10033994
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x100339b0
push edi
call fcn.1002c770
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x100339c0
push edi
call fcn.1002c770
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.1002c770
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret