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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10099018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100097e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000981c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000981c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100098e4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10009844
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [esi + 0x38]
test edx, edx
jne 0x10009877
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1004e894
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret 4
mov cl, bl
mov byte [ebp - 0x25], cl
mov edi, dword [edx]
cmp edi, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x100098fa
lea eax, [ebp - 0x25]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x4c]
call fcn.10007b50
or ecx, 0xffffffff
test al, al
pop edi
cmovne ecx, ebx
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100098d4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1004fa8d
add esp, 0x10
cmp edi, eax
jne 0x100098e4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10009807
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d8de
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov ecx, edx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x100098e4
cmp eax, 1
jle 0x100098b7
cmp eax, 3
jne 0x100098e4
mov cl, byte [ebp - 0x25]
jmp 0x10009892
Function at 0x1000b000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10099018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000b0bb
cmp byte [esi + 0x3d], 0
je 0x1000b0bb
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000b0a9
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x1000b0cc
lea edi, [ebp - 0x24]
mov eax, 3
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x1000b074
sub eax, 1
je 0x1000b078
sub eax, 2
jne 0x1000b0a9
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000b092
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1004fa8d
add esp, 0x10
cmp edi, eax
jne 0x1000b0a9
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d8de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002d8de
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x1000b050

Function at 0x1000b380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c3d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10099018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1002dc03
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10013754
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x1009c410]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx + 0x40], eax
mov eax, dword [0x1009c414]
mov dword [ecx + 0x44], eax
mov eax, ecx
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c270
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10099018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.1002dc03
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10013754
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1000c5e0
add esp, 4
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
cmp ecx, vtable.std::ctype_char_.0
jne 0x1000c38d
mov bl, 0x20
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x1000c35d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x1000c379
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x1000c397
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x20
mov ecx, eax
call edx
mov bl, al
jmp 0x1000c343
test cl, 4
je 0x1000c3a3
mov esi, str.ios_base::badbit_set
jmp 0x1000c3b3
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea ecx, [ebp - 0x14]
call fcn.100068c0
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10007810
push 0x10097374
lea eax, [ebp - 0x28]
push eax
call fcn.1002f4d8
int3
Function at 0x1002e449
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push esi
mov byte [ebp - 0x48], 0x37
mov byte [ebp - 0x47], 0x42
mov byte [ebp - 0x46], 0x52
mov byte [ebp - 0x45], 0x79
mov byte [ebp - 0x44], 0x42
mov byte [ebp - 0x43], 0x47
mov byte [ebp - 0x42], 0x70
jo 0x1002e436
inc ebp
mov edi, 0xc045c62b
mov byte [di - 0x3f], 0x61
mov byte [ebp - 0x3e], 0x42
mov byte [ebp - 0x3d], 0x29
mov byte [ebp - 0x3c], 0x76
mov byte [ebp - 0x3b], 0x45
mov byte [ebp - 0x3a], 0x39
mov byte [ebp - 0x39], 0x3e
mov byte [ebp - 0x38], 0x69
mov byte [ebp - 0x37], 0x77
mov byte [ebp - 0x36], 0x57
mov byte [ebp - 0x35], 0x23
mov byte [ebp - 0x34], 0x63
mov byte [ebp - 0x33], 0x30
mov byte [ebp - 0x32], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x54], 0
mov eax, 0x6b
mov word [ebp - 0xa4], ax
mov ecx, 0x65
mov word [ebp - 0xa2], cx
mov edx, 0x72
mov word [ebp - 0xa0], dx
mov eax, 0x6e
mov word [ebp - 0x9e], ax
mov ecx, 0x65
mov word [ebp - 0x9c], cx
mov edx, 0x6c
mov word [ebp - 0x9a], dx
mov eax, 0x33
mov word [ebp - 0x98], ax
invalid
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0xe0]
jae 0x1002e5c5
mov dword [ebp - 0x24], 0
jmp 0x1002e5ae
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6a
jae 0x1002e5c3
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x24]
mov byte [ebp + ecx - 0x150], dl
jmp 0x1002e5a5
jmp 0x1002e588
mov eax, 1
imul ecx, eax, 0x30
movsx edx, byte [ebp + ecx - 0x150]
cmp edx, 0x30
jne 0x1002e5ec
lea eax, [ebp - 0xa4]
push eax
call fcn.1002ee69
add esp, 4
add al, 0x89
inc ebp
invalid
push 0xe3142
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.1002eec9
add esp, 8
mov dword [ebp - 0x58], eax
push 0xd5786
mov edx, dword [ebp - 0x50]
push edx
call fcn.1002eec9
add esp, 8
Function at 0x1002e627
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
jmp 0x1002dc15
push dword [ebp + 8]
call fcn.1005bbd7
pop ecx
test eax, eax
je 0x1002dc24
push dword [ebp + 8]
call fcn.100508e5
pop ecx
test eax, eax
je 0x1002dc08
pop ebp
ret
cmp dword [ebp + 8], 0xffffffff
je 0x1002e60a
jmp 0x1002e5ed
mov ebx, 0x83000008
les ecx, [eax]
mov dword [ebp - 0x7c], eax
push 0x348bfa
mov eax, dword [ebp - 0x50]
push eax
call fcn.1002eec9
add esp, 8
mov dword [ebp - 0x68], eax
cwde
mov dword [ebp - 0x54], 0x32200
push 4
push 0x3000
mov ecx, dword [ebp - 0x54]
push ecx
push 0
call dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
jmp 0x1002e654
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jae 0x1002e6aa
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov esi, 0x17
div esi
mov eax, 1
imul eax, eax, 0
movsx eax, byte [ebp + eax - 0x150]
imul eax, eax, 0x16
mov esi, 1
imul esi, esi, 0x58
movsx esi, byte [ebp + esi - 0x150]
imul eax, esi
sub edx, eax
movzx edx, byte [ebp + edx - 0x48]
xor ecx, edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov byte [eax], cl
jmp 0x1002e64b
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1002ec19
add esp, 4
mov dword [ebp - 0xa8], eax
mov edx, 1
shl edx, 3
movsx eax, byte [ebp + edx - 0x150]
shl eax, 3
push eax
push 0x3000
mov ecx, dword [ebp - 0xa8]
push ecx
push 0
call dword [ebp - 0x58]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002e6f1
xor eax, eax
jmp 0x1002eaa8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1002ec99
add esp, 0xc
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x78]
mov eax, dword [ecx + eax + 0x7c]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x78]
mov ecx, dword [edx + ecx + 0x7c]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x28], 0
jmp 0x1002e7a4
Function at 0x1002eb49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx + 0x78], 0
add byte [ebp + 7], dh
xor eax, eax
jmp 0x1002ec0e
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], 0
jmp 0x1002ebaa
invalid
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jge 0x1002ec0c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
add edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ax, word [ecx + edx*2]
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 4]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1002eab9
add esp, 8
test eax, eax
jne 0x1002ec0a
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
jmp 0x1002ec0e
jmp 0x1002eba1
invalid

Function at 0x1002eec9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
jmp 0x1002ef2c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x18]
jae 0x1002ef6e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1002ee29
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x1002ef6c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
jmp 0x1002ef70
jmp 0x1002ef23
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006515b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.1002eba0
mov eax, dword [0x10099018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x10]
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
push ebx
push esi
mov eax, dword [eax*4 + 0x1009b8d0]
mov esi, dword [ebp + 8]
push edi
mov edi, esi
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1410], eax
add ecx, edx
xor eax, eax
mov dword [ebp - 0x140c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, edx
cmp edx, ecx
jae 0x100651d0
mov esi, dword [ebp - 0x140c]
lea eax, [ebp - 0x6b0]
cmp edi, esi
jae 0x1006513d
movzx ecx, word [edi]
add edi, 2
cmp ecx, 0xa
jne 0x10065130
push 0xd
pop edx
mov word [eax], dx
add eax, 2
mov word [eax], cx
add eax, 2
lea ecx, [ebp - 8]
cmp eax, ecx
jb 0x10065118
push 0
push 0
push 0xd55
lea ecx, [ebp - 0x1408]
push ecx
lea ecx, [ebp - 0x6b0]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
push 0
push 0xfde9
call fcn.1006c4b5
mov esi, dword [ebp + 8]
add esp, 0x20
mov dword [ebp - 0x1418], eax
test eax, eax
je 0x100651c8
xor ebx, ebx
test eax, eax
je 0x100651b2
push 0
lea ecx, [ebp - 0x1414]
sub eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1408]
add eax, ebx
push eax
push dword [ebp - 0x1410]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100651c8
add ebx, dword [ebp - 0x1414]
mov eax, dword [ebp - 0x1418]
cmp ebx, eax
jb 0x1006517d
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp edi, dword [ebp - 0x140c]
jb 0x1006510c
jmp 0x100651d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d8de
leave
ret

Function at 0x10068422
Capabilities:
Read file on windows

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

Function at 0x1006fd3b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006f6f9

Function at 0x1007960c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100794e0
Function at 0x40b6fc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57ed80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40b741
push 0x533350
push 4
push eax
call fcn.0050e003
push eax
call fcn.00405100
add esp, 0x10
jmp 0x40b757
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b7d7
push edi
call fcn.0050dfba
mov edi, dword [eax]
call fcn.0050dfba
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050df57
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050dfba
cmp dword [eax], 0
je 0x40b7ab
call fcn.0050dfba
push dword [eax]
call fcn.0040af84
pop ecx
jmp 0x40b7b2
call fcn.0050dfba
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x40b7d7
cmp dword [ebp - 0x234], esi
jae 0x40b7d7
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40b7d9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050a54b
leave
ret
Function at 0x40be43
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x57ed80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040bcf1
pop ecx
cmp eax, esi
je 0x40bf2d
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40bf2d
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0050d450
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40bf2d
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40bf2d
cmp esi, 0x14
jge 0x40bf2d
push 0x10
push 0
push edi
call fcn.0050b274
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40bf1c
call fcn.0050dfba
cmp dword [eax], 0x22
je 0x40bf1c
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0050d597
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40bef2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5805f0], 0
jne 0x40bfb8
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40bfe1
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040b6fc
pop ecx
pop ecx
test eax, eax
jne 0x40bfe3
inc edi
cmp edi, esi
jl 0x40bfbe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050a54b
leave
ret 8
Function at 0x40dbe5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40dc2d
call fcn.0040acc0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dc2d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40dc70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40dc59
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40dc59
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40dc6d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f5aa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x523fdb
call fcn.0050da0f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004054a0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x40f60c
call fcn.0040a542
cmp eax, 1
jne 0x40f60c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040f1d4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404e40
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405670
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405670
mov eax, esi
call fcn.0050dae7
ret 0x10

Function at 0x40f635
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x523fdb
call fcn.0050da0f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004054a0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x40f697
call fcn.0040a542
cmp eax, 1
jne 0x40f697
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040f1d4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404e40
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405670
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405670
mov eax, esi
call fcn.0050dae7
ret 0x14