joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4240b6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x430040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c
mov dword [esp + 0x30], ebx
call fcn.00406533
pop ecx
mov ecx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x28], eax
xor edx, edx
mov byte [esp + ecx + 0x38], cl
push 0x14
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x592d90]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x4240f5
mov esi, ebx
mov edi, ebx
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x42413f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x42411c
movsd xmm0, qword [0x42cd48]
mov eax, ebx
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
movsd qword [esp + 0x30], xmm0
inc eax
and eax, 0x800000ff
jns 0x424185
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [esp + eax + 0x38]
movzx edi, bl
add ecx, edi
mov dword [esp + 0x14], eax
and ecx, 0x800000ff
jns 0x4241a2
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.00403d30
mov esi, dword [esp + 0x1c]
movsd xmm1, qword [esi]
call fcn.00401a7f
push eax
call fcn.00403105
mov edx, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x14]
mov al, byte [esp + edx + 0x38]
mov byte [esp + ecx + 0x38], al
mov byte [esp + edx + 0x38], bl
movzx eax, byte [esp + ecx + 0x38]
mov ebx, dword [esp + 0x10]
add eax, edi
movzx eax, al
mov al, byte [esp + eax + 0x38]
xor byte [ebx + str.iZ7_], al
mov eax, dword [esp + 0x24]
sub eax, esi
and eax, 0xfffffff8
push eax
push esi
call fcn.00403798
xor eax, eax
inc ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
cmp ebx, 0x161e00
jl 0x424176
lea ecx, [esp + 0x28]
call fcn.00401a64
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406520
mov esp, ebp
pop ebp
ret
Function at 0x7b9165
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x7b864e
jmp 0x7b8dbd
mov dword [esp + 0x24], eax
jmp 0x7b8f93
mov dword [esp + 0x24], eax
jmp 0x7b906c
call 0x7b8db5
push ebp
push ebx
inc ebp
push edx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bl, ch
xor ecx, dword [esi - 0x27]
cmp byte [ebx], bl
jb 0x7b8e2a
mov eax, dword [esp]
push ebp
pushfd
lea esp, [esp + 0xc]
sub eax, 0xa1bc1684
jmp 0x7b8da5
pushal
jmp 0x7b8649
clc
invalid
popfd
ret
lea esp, [esp + 8]
sub ecx, 0x100190fc
mov dword [ecx + reloc.RASAPI32.dll_RasHangUpA], eax
jmp 0x7b8fab
mov dword [esp], edi
mov dword [esp], ecx
jmp 0x7b8f69
popal
jmp 0x7b8fc1
movzx ebx, byte [eax]
jmp 0x7b8fc3
popfd
ret
add ebx, 0x915e9ebc
jmp 0x7b8ff1
cmp ebx, 0x915e9f88
je 0x7b9055
jne 0x7b86c5
jmp 0x7b9082
cmp dword [esp + 4], 0
jne 0x7b969f
je 0x7b8e27
call 0x7b9041
dec edi
jo 0x7b909b
outsb dx, byte [esi]
inc ebx
insb byte es:[edi], dx
imul esi, dword [eax + 0x62], 0x6472616f
add cl, ch
loope 0x7b9044
add byte [eax], al
sbb al, 0x86
adc al, 0x73
invalid
or eax, dword [eax]
add byte [eax], al
push ebp
push ebx
inc ebp
push edx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bh, bh
nop
loop 0x7b90b3
jo 0x7b901d
jmp 0x7b902e
popal
jmp 0x7b9088
inc dword [esp + 8]
popfd
ret
inc dword [esp + 8]
popfd
ret
movzx ebx, byte [eax]
add ebx, 0x7f544c88
jmp 0x7b90d4
pop esp
cmp edx, esi
adc eax, 0x96f363c1
sar dword gs:[ecx], 1
movsb byte es:[edi], byte [esi]
cmp bl, byte [ebp - 0x54]
sbb al, 0x51
pop ecx
sub ecx, 0x10019210
mov dword [ecx + reloc.RASAPI32.dll_RasHangUpA], eax
jmp 0x7b908e
cmp ebx, 0x7f544d54
je 0x7b9138
jne 0x7b8872
invalid
pushfd
call fcn.007b910e
cdq
sbb cl, byte [eax - 0x624e511]
jg 0x7b90e0
mov bh, byte [ecx + 0x42]
ror byte [ebp - 0x24], cl
das
inc dword [esp + 8]
jmp 0x7b91b6
jmp 0x7b9155
call 0x7b9165
push ebp
push ebx
inc ebp
push edx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bl, ch
sub al, 0x41
iretd
popfd
ret
inc dword [esp + 8]
jmp 0x7b8e43

Function at 0x7b921f
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.007b88c4
push eax
call fcn.007a3724
jmp 0x7b88bf
Function at 0x7b9665
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x7b917d
mov dword [esp + 0x24], eax
jmp 0x7b91f4
call 0x7b8a34
jmp 0x7b9619
pop ecx
jmp 0x7b91cc
sub ecx, 0x10019284
mov dword [ecx + reloc.RASAPI32.dll_RasHangUpA], eax
jmp 0x7b922a
popal
inc dword [esp + 8]
call fcn.007b91de
cmp al, 0xa9
cmp dword [eax - 0x55], ebx
sbb al, 0x5e
retf 0x3f58
movzx ebx, byte [eax]
jmp 0x7b9242
add ebx, 0x80c6a2d3
jmp 0x7b927a
cmp ebx, 0x80c6a39f
je 0x7b92de
jne 0x7b88e3
lea esp, [esp + 2]
mov byte [esp], ch
lea esp, [esp + 2]
push 0
jmp 0x7b94ea
invalid
pushfd
call 0x7b9303
lea esi, [ecx*4]
push eax
lea eax, [ebx*4]
jmp 0x7b9535
not ax
lea eax, [edx + esi]
mov ax, 0x4f02
jmp 0x7b9581
mov ah, bh
mov ax, 0x5168
push edx
not al
xchg dh, al
rdtsc
jmp 0x7b951f
jmp 0x7b9771
lea edx, [esi*4]
lea edx, reloc.RASAPI32.dll_RasHangUpA
rdtsc
pop edx
call 0x7b956b
mov esi, dword [esp]
lea esi, [ebx + ebx]
not esi
mov esi, 0xfc66228
mov esi, dword [esp]
mov esi, dword [esp]
jmp 0x7b95ce
mov si, 0x7b7b
bswap esi
mov esi, dword [esp + 8]
lea esp, [esp + 0xc]
jmp 0x7b9637
pop eax
sub eax, 0xe922e37f
jmp 0x7b9648
cmp dword [esp + 4], 0
jne 0x7b9555
pushal
jmp 0x7b8a2f
call 0x7b965a
dec ebx
or eax, 0x4b000000
inc ebp
push edx
dec esi
inc ebp
dec esp
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bl, ch
cmpsd dword [esi], dword es:[edi]
stc
je 0x7b9649
lea edi, [edx + ecx*8 - 0x1f]
and byte [ebx - 0x15], ah
jmp 0x7b95f0
call fcn.007a3724
invalid
push cs
hlt
inc dword [esp + 8]
popfd
ret

Function at 0x7e82e9
Capabilities:
Hash data with md5

Disassembly:
lea esp, [esp + 8]
mov dword [eax + 8], 0x67452301
jmp 0x7e8304

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x30004b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
test eax, eax
je 0x30004c02
push esi
push edi
call fcn.30020bc0
xor esi, esi
mov si, ax
and esi, 0x3ff
call fcn.30020bc0
mov edi, dword [esp + 0x18]
and eax, 0xfc00
or eax, esi
mov esi, dword [esp + 0x14]
push eax
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x30004bde
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x30004bfc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x30004bfc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectA]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
mov eax, ebx
pop ebx
ret

Function at 0x30004f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push ebx
push esi
push edi
je 0x3000500b
mov eax, dword [esp + 0x18]
mov esi, eax
and eax, 0xf
shr esi, 4
inc esi
mov ebx, eax
call fcn.30020bc0
xor edi, edi
mov di, ax
movzx esi, si
and edi, 0x3ff
call fcn.30020bc0
and eax, 0xfc00
or eax, edi
mov edi, dword [esp + 0x14]
push eax
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x30004fde
push 6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x3000500b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x3000500b
mov esi, eax
xor ecx, ecx
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
je 0x30005005
cmp ecx, ebx
movzx edi, ax
je 0x30005011
lea esi, [esi + edi*2]
inc ecx
cmp ecx, 0x10
jl 0x30004ff0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [edi + edi + 2]
push eax
call fcn.3007a1f0
push edi
mov ebx, eax
push esi
push ebx
call fcn.3011ea30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 0x10
push 0
push 0
push ecx
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [ebx + edi*2], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov esi, eax
call fcn.30208320
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x3000c000
Capabilities:
Get file size

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
push eax
call fcn.30208320
mov edi, dword [esp + 0xb8]
mov eax, dword [edi + 0x24]
add esp, 4
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x3000c027
sub eax, edx
inc eax
push eax
call fcn.3007a1f0
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x3000c042
lea ecx, [esp + 0x1c]
push ecx
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jbe 0x3000c114
cmp dword [edi + 0x34], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jne 0x3000c0ae
push 0x30293828
lea ecx, [esp + 0x14]
call fcn.30074eb0
mov edx, dword [edi + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.30074eb0
mov eax, dword [edi + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.30074eb0
jmp 0x3000c0bb
mov ecx, dword [edi + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.30074d90
mov edx, dword [esp + 0x10]
push edx
call fcn.3011e7c0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x3000c0ea
mov eax, dword [esp + 0x10]
push eax
call fcn.30208320
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa0
ret 8
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov dword [esi + 0x1c], eax
call fcn.30208320
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x3000c1d6
mov edx, dword [esp + 0xb8]
push edx
mov ecx, edi
call fcn.3011b010
mov ebp, eax
cmp ebp, ebx
je 0x3000c1ff
cmp dword [edi + 0x34], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jne 0x3000c1a3
mov eax, dword [esp + 0xb8]
push eax
mov ecx, edi
call fcn.3011afd0
mov edi, eax
cmp edi, ebx
jne 0x3000c176
push ebp
call fcn.30208320
mov ecx, dword [esp + 0x14]
push ecx
call fcn.30208320
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa0
ret 8
push 0x30293828
lea ecx, [esp + 0x14]
call fcn.30074eb0
push edi
lea ecx, [esp + 0x14]
call fcn.30074eb0
push ebp
lea ecx, [esp + 0x14]
call fcn.30074eb0
push edi
call fcn.30208320
add esp, 4
jmp 0x3000c1ad
push ebp
lea ecx, [esp + 0x14]
call fcn.30074d90
mov edx, dword [esp + 0x10]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov dword [esi + 0x1c], eax
call fcn.30208320
mov eax, dword [esp + 0x14]
push eax
call fcn.30208320
mov eax, dword [esi + 0x1c]
add esp, 8
cmp eax, ebx
je 0x3000c1ff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x3000c20e
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], ebx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa0
ret 8
pop edi
mov dword [esi], eax
mov dword [esi + 4], ebx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xa0
ret 8
Function at 0x3000cff0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
push edi
mov byte [esp + 0xb], 0
jne 0x3000d016
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x3000d016
mov edi, dword [esp + 0x10]
push edi
push 0
call fcn.3000c230
jmp 0x3000d01a
mov edi, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jle 0x3000d0dd
push esi
lea esi, [ebp + 0x10]
jmp 0x3000d030
mov eax, dword [esi]
test eax, eax
jbe 0x3000d069
cmp ebx, eax
jb 0x3000d097
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.300f5250
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x3000d057
push edi
push 2
mov ecx, ebp
call fcn.3000c230
mov ecx, dword [esi]
mov eax, dword [ebp + 4]
sub ebx, ecx
add eax, ecx
mov dword [ebp + 4], eax
mov dword [esi], 0
cmp byte [esp + 0x13], 1
je 0x3000d0dc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
push eax
mov dword [esi], eax
mov eax, dword [ebp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi], 0
ja 0x3000d091
mov byte [esp + 0x13], 1
test ebx, ebx
jg 0x3000d030
jmp 0x3000d0dc
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, edi
call fcn.300f5250
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x3000d0b4
push edi
push 2
mov ecx, ebp
call fcn.3000c230
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
sub ecx, ebx
mov dword [esi], ecx
mov esi, ecx
mov edx, ecx
shr ecx, 2
lea esi, [edi + ebx]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x18]
add eax, ebx
mov dword [ebp + 4], eax
pop esi
mov eax, dword [ebp + 4]
cmp eax, dword [ebp]
pop ebx
jl 0x3000d141
mov eax, dword [edi + 0x644]
test eax, eax
je 0x3000d114
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x3000d114
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp edi, eax
jne 0x3000d141
mov eax, dword [edi + 0x644]
mov ecx, dword [eax + 0x70]
mov edx, dword [ecx]
call dword [edx + 0x24]
pop edi
pop ebp
pop ecx
ret 8
mov ecx, edi
call fcn.300f5a70
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x3000d12c
push edi
push 1
mov ecx, ebp
call fcn.3000c230
mov ecx, dword [edi + 0xdc]
call fcn.300f88b0
push eax
push 1
mov ecx, edi
call fcn.300f2e80
pop edi
pop ebp
pop ecx
ret 8
Function at 0x3000d980
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x30333df4]
test eax, eax
jne 0x3000da8c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
mov dword [0x30333df4], 1
call edi
push str.imm32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
mov esi, eax
call edi
test esi, esi
je 0x3000da89
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmGetContext
push esi
call edi
test eax, eax
mov dword [0x30333df8], eax
je 0x3000da89
push str.ImmReleaseContext
push esi
call edi
test eax, eax
mov dword [0x30333dfc], eax
je 0x3000da89
push str.ImmSetCompositionWindow
push esi
call edi
test eax, eax
mov dword [0x30333e00], eax
je 0x3000da89
push str.ImmSetCompositionFontA
push esi
call edi
test eax, eax
mov dword [0x30333e04], eax
je 0x3000da89
push str.ImmGetCompositionStringW
push esi
call edi
push str.ImmGetOpenStatus
push esi
mov dword [0x30333e08], eax
call edi
push str.ImmSetOpenStatus
push esi
mov dword [0x30333e0c], eax
call edi
push str.ImmGetConversionStatus
push esi
mov dword [0x30333e10], eax
call edi
push str.ImmSetConversionStatus
push esi
mov dword [0x30333e14], eax
call edi
push str.ImmSetCompositionStringW
push esi
mov dword [0x30333e18], eax
call edi
push str.ImmNotifyIME
push esi
mov dword [0x30333e1c], eax
call edi
push str.ImmGetCandidateListW
push esi
mov dword [0x30333e20], eax
call edi
mov dword [0x30333e24], eax
mov dword [0x30333df4], 2
pop edi
pop esi
pop ebx
ret

Function at 0x3000da90
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 7
lea ecx, [esp + 0xc]
push ecx
movzx eax, ax
push 0x1004
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x3000dada
push esi
push 0xa
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.300f61a0
add esp, 0x10
test eax, eax
mov eax, dword [esp + 4]
jne 0x3000dadc
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x3000db80
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [0x30333df4]
sub esp, 8
test eax, eax
push edi
mov edi, str.UNKNOWN
jne 0x3000db97
call fcn.3000d980
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [0x30333df4], 2
jne 0x3000dcb8
mov eax, dword [0x30333e14]
test eax, eax
je 0x3000dcb8
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [0x30333df8]
mov esi, eax
test esi, esi
je 0x3000dcb7
push ebx
call fcn.3000da90
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
mov ebx, eax
call dword [0x30333e14]
test eax, eax
je case.0x3000dc30.17
mov eax, dword [esp + 0xc]
cmp eax, 0x400
jbe 0x3000dc00
sub eax, 0x400
lea ecx, [ebx - 0x3a4]
cmp ecx, 0x12
ja case.0x3000dc30.17
movzx ecx, byte [ecx + 0x3000dcd0]
jmp dword [ecx*4 + 0x3000dcc0]
add eax, 0xfffffff0
cmp eax, 0xb
ja case.0x3000dc30.17
movzx edx, byte [eax + 0x3000dcfc]
jmp dword [edx*4 + 0x3000dce4]
pop ebx
mov edi, 0x30293d60
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, 0x30293d48
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, 0x30293d30
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, 0x30293d1c
pop esi
mov eax, edi
pop edi
add esp, 8
ret
cmp eax, 9
ja case.0x3000dc30.17
movzx eax, byte [eax + 0x3000dd18]
jmp dword [eax*4 + 0x3000dd08]
pop ebx
mov edi, str.ALPHANUMERIC_HALF
pop esi
mov eax, edi
pop edi
add esp, 8
ret
pop ebx
mov edi, str.KOREAN
pop esi
mov eax, edi
pop edi
add esp, 8
ret
cmp eax, 9
ja case.0x3000dc30.17
movzx ecx, byte [eax + 0x3000dd34]
jmp dword [ecx*4 + 0x3000dd24]
mov edi, str.CHINESE
pop ebx
pop esi
mov eax, edi
pop edi
add esp, 8
ret
Function at 0x3000e110
Capabilities:
Get keyboard layout

Disassembly:
mov eax, dword [0x30333df4]
sub esp, 0x34
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x3000e124
call fcn.3000d980
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x3000e174
cmp dword [0x30333df4], 2
jne 0x3000e225
cmp dword [0x30333e20], ebx
je 0x3000e225
mov eax, dword [esp + 0x3c]
push eax
call dword [0x30333df8]
cmp eax, ebx
je 0x3000e225
push ebx
push 2
push 0x15
push eax
call dword [0x30333e20]
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 8]
push ecx
push 0x302c3d1c
push 1
push ebx
push 0x302c36ac
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x3000e225
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
push ecx
push str.c_t4
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x3000e21b
push esi
push edi
mov ecx, 4
mov edi, 0x302992f0
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
je 0x3000e21b
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], 1
mov word [esp + 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1c
lea ecx, [esp + 0x20]
push ecx
push 1
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SendInput]
xor edx, edx
cmp edx, eax
sbb ebx, ebx
neg ebx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop ebx
add esp, 0x34
ret
Function at 0x3000e730
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
xor eax, eax
push esi
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x10
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x68]
xor bl, bl
test al, al
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0x44
je 0x3000e778
mov dword [esp + 0x48], 1
mov word [esp + 0x4c], 5
mov ecx, dword [esp + 0x64]
push ecx
call fcn.30075310
mov esi, eax
add esp, 4
test esi, esi
je 0x3000e7d0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
push esi
setne bl
call fcn.30208320
add esp, 4
test bl, bl
je 0x3000e7d0
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x54
ret

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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xc8
mov esi, ecx
mov ebx, 0x32
call fcn.3007a1f0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x3000f079
mov esi, dword [esi + 0x30]
xor edi, edi
test esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
je 0x3000f079
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
mov eax, dword [esi + 0x14]
cmp eax, 1
mov dword [esp + 0x18], esi
jl 0x3000f062
cmp eax, 2
jg 0x3000f062
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
test eax, eax
je 0x3000f062
mov al, byte [esi + 0x11]
test al, al
je 0x3000f062
test ebx, ebx
jne 0x3000f055
lea esi, [edi*4]
lea eax, [esi + 0xc8]
push eax
call fcn.3007a1f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x3000f079
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.30208320
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, ebx
add esp, 4
mov ebx, 0x32
mov eax, dword [esi + 0x3c]
mov dword [ebp + edi*4], eax
inc edi
mov dword [esp + 0x14], edi
dec ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x3000efe0
test edi, edi
jne 0x3000f0a0
push ebp
call fcn.30208320
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov dword [eax], 0
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ecx], ebp
mov dword [edx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8