joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002be60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0x400
test byte [0x100331d0], 8
jne 0x1002bfb0
test esi, esi
je 0x1002c030
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax]
test ebx, ebx
jne 0x1002c026
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x24]
xor eax, eax
lock cmpxchg dword [edi + 0x20], edx
jne 0x1002c026
mov edx, dword [edi + 0x1c]
mov eax, dword [edx + 0x5c]
lea ecx, [edx + 0x5c]
lea ebx, [eax - 0x14]
cmp eax, ecx
jne 0x1002bed7
jmp 0x1002bef8
and dword [ebx + 0xc], 0xfffffdff
mov edx, dword [edi + 0x1c]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + 0x5c]
lea ebx, [eax - 0x14]
cmp eax, ecx
je 0x1002bef8
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x1002bec0
mov edx, ebx
mov eax, esi
call sym._retrieve_named_item_disp
test eax, eax
jns 0x1002bec0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [edx + 0x18]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._create_script_disp
test eax, eax
js 0x1002beeb
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 4]
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x10]
sub esp, 4
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsValidLocale]
sub esp, 8
test eax, eax
je 0x1002c018
mov eax, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 4], eax
mov dword [esp + 0xc], 2
mov eax, dword [edi + 0x1c]
mov dword [esp], edx
add eax, 8
mov dword [esp + 4], 0x20001004
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov eax, dword [edi + 0x1c]
sub esp, 0x10
mov edx, dword [eax + 8]
test edx, edx
jne 0x1002bf98
mov dword [eax + 8], 0xfde9
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x1002bfe8
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p_____p__n
mov dword [esp + 8], str.VBScript_SetScriptSite
mov dword [esp + 4], 0x100331d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1002be83
cmp dword [edi + 0x18], 5
je 0x1002bf9f
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x18], 5
mov eax, dword [eax]
test eax, eax
je 0x1002bf9f
mov edx, dword [eax]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [edx + 0x1c]
xor eax, eax
sub esp, 8
jmp 0x1002bfa1
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
mov edx, dword [ebp - 0x10]
jmp 0x1002bf5b
mov eax, 0x8000ffff
jmp 0x1002beeb
mov eax, 0x80004003
jmp 0x1002beeb
Function at 0x10032210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10032268
cmp byte [esi + ebx - 1], 0xa
je 0x1003223c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1004b0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10032810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x1004b0b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x100329d0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x1004b0b4]
movzx eax, al
bt eax, esi
jae 0x10032a30
mov ecx, dword [0x1004b0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x100328d5
test byte [0x10033220], 8
jne 0x10032970
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10033230], 8
jne 0x10032920
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100328a4
cmp esi, 3
jbe 0x100328e0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10042588]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100328a4
mov ecx, dword [0x1004b0b4]
test ecx, ecx
je 0x10032a10
mov dword [esp], 0x10033230
call dword [0x1004b0b4]
test al, 8
je 0x1003287b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x1003287b
mov ebx, dword [0x1004b0b4]
test ebx, ebx
je 0x100329f0
mov dword [esp], 0x10033220
call dword [0x1004b0b4]
test al, 8
je 0x10032866
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x1003286e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1004b0b4
call sym._load_func.part.0
jmp 0x1003282d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1004b0b4
call sym._load_func.part.0
jmp 0x1003297a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1004b0b4
call sym._load_func.part.0
jmp 0x1003292e
mov eax, 0xffffffff
jmp 0x100328d5
Function at 0x10032bb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1004b0c0]
test eax, eax
je 0x10032c68
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10032bf0
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x10032bdc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10032c9d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1004b0c0], eax
sub esp, 8
test eax, eax
jne 0x10032bcd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x10032bde
Function at 0x10032cb0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10032e31
mov eax, dword [esi]
test eax, eax
je 0x10032e20
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10032e35
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10032e18
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x10032dd9
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10032d16
xor eax, eax
jmp 0x10032e08
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10032e08
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x69be09ce
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5c5c4a05
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401bd8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401c2d
sub al, 7
je 0x401ca1
dec al
je 0x401bfb
sub al, 2
je 0x401c25
sub al, 3
je 0x401c17
jmp 0x401c2d
mov eax, dword [0x406240]
cmp eax, dword [0x4061c0]
jle 0x401ca1
dec dword [0x406240]
jmp 0x401ca1
mov edi, dword [0x4061c0]
mov dword [0x406240], edi
jmp 0x401ca1
inc dword [0x406230]
jmp 0x401ca1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x406180]
mov word [ebp - 2], ax
mov eax, dword [0x406240]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x406230]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x406240]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x406230]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x4060f0]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x406240]
mov eax, dword [0x406240]
cmp eax, dword [0x4061e0]
jle 0x401ccf
mov edi, dword [0x4061c0]
mov dword [0x406240], edi
inc dword [0x406230]
jmp 0x401ccf
push 1
call fcn.00401d88
dec dword [0x406230]
mov eax, dword [0x406230]
cmp eax, dword [0x4061f0]
jg 0x401cc2
leave
ret 4
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x401c66
pop dword [ebp - 0x3c]
mov eax, 0x2d478e09
add eax, 0xd2f88e5d
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xb8ed1b4
sub dword [ebp - 0x4c], 0xbd3c8c69
mov dword [ebp - 0x48], 0xcc70245f
sub dword [ebp - 0x48], 0x9a3cd81a
mov dword [ebp - 0x44], 0xb8f41de7
sub dword [ebp - 0x44], 0x6ca7d9b9
mov dword [ebp - 0x40], 0x67c853e6
sub dword [ebp - 0x40], 0x67c853e6
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x8b6f81c0
add eax, 0x74d0ae94
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xd78169bc
sub dword [ebp - 0x4c], 0x630f0066
mov dword [ebp - 0x48], 0x18c28a38
sub dword [ebp - 0x48], 0xd75628c3
mov dword [ebp - 0x44], 0xed3f0255
add dword [ebp - 0x44], 0x76306a17
mov dword [ebp - 0x40], 0x4dcf092b
add dword [ebp - 0x40], 0xb230f6d5
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x7e3d7fcc
add eax, 0x8202b060
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x361ba
push 0
call eax
mov ecx, 0x4682
mov edx, eax
mov esi, 0xdb9ae577
sub esi, 0xdb5a7577
add esi, dword [ebp - 0x3c]
mov ebx, 0x30d70a35
add dword [ebp - 0x2c], edx
mov edi, dword [esi]
xor dword [ebp - 0x34], 0x23e893a
xor edi, ebx
sub dword [ebp - 0x14], 0xdcb4eea7
mov dword [edx], edi
xor dword [ebp - 0x30], 0xcc36bf2f
add edx, 0x4d5301d4
add edx, 0xb2acfe30
add esi, 4
loop 0x401d7c
add eax, 0xb6b945f0
sub eax, 0xb6b83915
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8f0b5764
sub ecx, 0x8ecb5764
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

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 0x3add258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3adda064]
jne 0x3add2597
repz ret
jmp fcn.3add3d0c

Function at 0x3add402e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x3add4069
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x3add4050
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x3add4061
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x3add406b
inc edi
add eax, 0x28
cmp edi, esi
jb 0x3add4046
xor eax, eax
pop edi
pop esi
ret
Function at 0x4166bb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f55
mov dword [ebp - 0x14], eax
cmp dword [0x462008], esi
jne 0x4167ae
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41673b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41688e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41688e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41688e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x462008], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x46200c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x462010], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462018], eax
test eax, eax
je 0x4167ab
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462014], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4167d3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4167c6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4167e8
push 4
pop eax
jmp 0x416890
cmp dword [ebp - 0x14], esi
je 0x4167e8
push dword [0x462008]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4167cd
mov eax, dword [0x462014]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416846
cmp dword [0x462018], edi
je 0x416846
push eax
call ebx
push dword [0x462018]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416846
test eax, eax
je 0x416846
call ecx
test eax, eax
je 0x41683b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41683b
test byte [ebp - 8], 1
jne 0x416846
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416876
mov eax, dword [0x46200c]
cmp eax, edi
je 0x416873
push eax
call ebx
test eax, eax
je 0x416873
call eax
mov esi, eax
test esi, esi
je 0x416873
mov eax, dword [0x462010]
cmp eax, edi
je 0x416873
push eax
call ebx
test eax, eax
je 0x416873
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x462008]
call ebx
test eax, eax
je 0x41688e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416890
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ef2
mov esp, ebp
pop ebp
ret
Function at 0x10002021
Capabilities:
Query environment variable

Disassembly:
cmp dword [esp + 0xc], 0
push ebx
push ebp
je 0x1000209d
xor ebp, ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x14]
call sym.java.dll__JNU_GetStringPlatformChars_12
mov ebx, eax
test ebx, ebx
je 0x1000209d
push edi
push ebp
push ebp
push ebx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov ebp, eax
test ebp, ebp
je 0x10002088
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x10002088
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
push edi
test eax, eax
je 0x10002081
push dword [esp + 0x14]
call sym.java.dll__JNU_NewStringPlatform_8
push edi
mov ebp, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x1000208a
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor ebp, ebp
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x18]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov eax, ebp
pop edi
jmp 0x1000209f
xor eax, eax
pop ebp
pop ebx
ret 0xc

Function at 0x10002819
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 0xc], 0
je 0x10002828
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
jmp 0x1000282e
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
push esi
movzx eax, ax
push edi
push eax
call fcn.1000dd80
mov esi, eax
pop ecx
test esi, esi
je 0x1000285a
mov ecx, dword [esp + 0xc]
push esi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x29c]
push esi
mov edi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x1000286a
push str.memory_allocation_error
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x10003d57
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call sym.java.dll__JNU_ClassString_4
mov ebp, eax
test ebp, ebp
je 0x10003da0
mov ecx, dword [esi]
push str.__B_V
push str._init_
push ebp
push esi
call dword [ecx + 0x84]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10003da0
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov edi, eax
test edi, edi
jne 0x10003da9
push str.GetEnvironmentStrings_failed
push esi
call sym.java.dll__JNU_ThrowOutOfMemoryError_8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor ebx, ebx
cmp byte [edi], bl
je 0x10003dbc
mov al, byte [ebx + edi]
inc ebx
test al, al
jne 0x10003daf
cmp byte [ebx + edi], al
jne 0x10003daf
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x2c0]
mov ecx, eax
mov dword [esp + 0x10], ecx
push edi
test ecx, ecx
jne 0x10003dd9
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
jmp 0x10003da0
mov eax, dword [esi]
push ebx
push 0
push ecx
push esi
call dword [eax + 0x340]
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push dword [esp + 0x10]
mov eax, dword [esi]
push dword [esp + 0x18]
push ebp
push esi
call dword [eax + 0x70]
add esp, 0x10
jmp 0x10003da2