joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413194
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x42109c], esi
jbe 0x412d94
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x412da0
mov eax, dword [esi*4 + 0x4210a0]
test ah, 0x40
je 0x412da8
xor edi, edi
test ah, 2
je 0x412db4
xor eax, eax
jmp 0x412da0
mov dword [esp], 0xfffffffa
call fcn.004139a8
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x413194
test edx, edx
jne 0x412dbc
xor eax, eax
jmp 0x412da0
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x413194
mov ebp, eax
test ebp, ebp
je 0x412f15
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x412da0
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.004124b8
test eax, eax
je 0x412e18
or byte [esi*4 + 0x4210a1], 2
mov ebp, eax
sub ebp, ebx
je 0x412f11
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x412e4b
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x413194
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x412da0
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x412e71
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.004124b8
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x412eac
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0041257c
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x412e6c
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x412eed
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x4210a1], 0x20
sete cl
test ebp, ebp
jne 0x412f15
and cl, al
jne 0x412f01
jmp 0x412f15
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x412f15
test al, al
je 0x412f15
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x412dc0
jmp 0x412f15
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x412da0
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x42109c], eax
jbe 0x4131e1
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x426230]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x4131ef
mov eax, dword [esp + 0x14]
jmp 0x413205
mov dword [esp], 6
call fcn.004139a8
jmp 0x413205
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x413205
mov dword [esp], ecx
call fcn.004139a8
add esp, 0x18
pop esi
ret
jmp 0x412d5c
Function at 0x41321c
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x42109c], eax
jbe 0x413269
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x426230]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
cmp eax, 1
jne 0x413277
mov eax, dword [esp + 0x14]
jmp 0x41327c
mov dword [esp], 6
call fcn.004139a8
jmp 0x41327c
call fcn.00413a28
add esp, 0x18
pop esi
ret
Function at 0x4164ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x48]
test ah, 0xc0
je 0x412b48
mov ebx, eax
jmp 0x412b57
mov ecx, dword [0x42116c]
mov ebx, 0xc000
and ebx, dword [ecx]
or ebx, eax
mov edi, ebx
shr edi, 1
and edi, 0x4000
xor edi, 0x4000
or edi, ebx
mov eax, ebx
and eax, 0x700
cmp eax, 0x1ff
ja 0x412b85
cmp eax, 0x100
jne 0x412bcb
mov ebp, 4
jmp 0x412bd0
cmp eax, 0x2ff
ja 0x412b95
cmp eax, 0x200
jne 0x412bcb
jmp 0x412bbd
cmp eax, 0x4ff
ja 0x412baa
cmp eax, 0x300
jne 0x412bcb
mov ebp, 2
jmp 0x412bd0
mov ebp, 1
cmp eax, 0x500
je 0x412bd0
cmp eax, 0x600
jne 0x412bc4
mov ebp, 5
jmp 0x412bd0
cmp eax, 0x700
je 0x412bd0
mov ebp, 3
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x1c], eax
je 0x412c08
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
and eax, dword [0x420be8]
mov edx, 1
mov ecx, 0x80
test al, 0x80
cmove ecx, edx
jmp 0x412c1f
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, 0x80000000
mov edx, ebx
and edx, 3
je 0x412c41
cmp edx, 2
jne 0x412c37
mov eax, 0xc0000000
jmp 0x412c41
cmp edx, 1
jne 0x412c67
mov eax, 0x40000000
mov edx, ebx
mov esi, edx
and ebx, 0x70
xor edx, edx
cmp ebx, 0x10
je 0x412c7d
cmp ebx, 0x30
jne 0x412c5b
mov edx, 2
jmp 0x412c7d
cmp ebx, 0x20
jne 0x412c78
mov edx, 1
jmp 0x412c7d
mov dword [esp], 1
call fcn.004139a8
jmp 0x412d53
mov edx, 3
mov ebx, esi
test bl, 4
je 0x412c8f
cmp eax, 0x80000000
sete dl
movzx edx, dl
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
shr ebx, 7
and ebx, 1
xor ebx, 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x412d2c
mov dword [esp], esi
call fcn.00412aa4
mov dword [esp], esi
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp + 4], ecx
call fcn.004135e8
cmp eax, 0xffffffff
jne 0x412d53
mov dword [esp], 4
call fcn.004139a8
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, 0xffffffff
jmp 0x412d53
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
cmp eax, 0x6e
jne 0x412d4b
mov ecx, 0x50
mov eax, 2
cmp dword [esp + 0x1c], 0
cmovne eax, ecx
mov dword [esp], eax
call fcn.004139a8
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x412b34
Function at 0x4164fc
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x42109c], esi
jbe 0x412d94
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x412da0
mov eax, dword [esi*4 + 0x4210a0]
test ah, 0x40
je 0x412da8
xor edi, edi
test ah, 2
je 0x412db4
xor eax, eax
jmp 0x412da0
mov dword [esp], 0xfffffffa
call fcn.004139a8
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x413194
test edx, edx
jne 0x412dbc
xor eax, eax
jmp 0x412da0
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x413194
mov ebp, eax
test ebp, ebp
je 0x412f15
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x412da0
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.004124b8
test eax, eax
je 0x412e18
or byte [esi*4 + 0x4210a1], 2
mov ebp, eax
sub ebp, ebx
je 0x412f11
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x412e4b
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x413194
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x412da0
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x412e71
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.004124b8
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x412eac
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0041257c
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x412e6c
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x412eed
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x4210a1], 0x20
sete cl
test ebp, ebp
jne 0x412f15
and cl, al
jne 0x412f01
jmp 0x412f15
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x412f15
test al, al
je 0x412f15
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x412dc0
jmp 0x412f15
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x412da0
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x42109c], eax
jbe 0x4131e1
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x426230]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x4131ef
mov eax, dword [esp + 0x14]
jmp 0x413205
mov dword [esp], 6
call fcn.004139a8
jmp 0x413205
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x413205
mov dword [esp], ecx
call fcn.004139a8
add esp, 0x18
pop esi
ret
jmp 0x412d5c
Function at 0x41a014
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
test esi, esi
je 0x41a137
lea eax, [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetLocalTime
sub esp, 4
movzx eax, word [esp + 0x2e]
mov dword [esp + 0x24], eax
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x2c]
movzx ebx, word [esp + 0x34]
movzx ebp, word [esp + 0x36]
movzx edi, word [esp + 0x38]
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str._02d__02d__04d__02d:_02d:_02d._03d
mov dword [esp], 0x42650c
call sub.USER32.DLL_wsprintfA
mov dword [esp], 0x42650c
call fcn.0041285c
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x42650c
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov edi, dword [esp + 0x54]
mov dword [esp], edi
call fcn.0041285c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41a148
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x9c
mov ecx, dword [0x42652c]
mov eax, dword [0x426530]
mov edi, dword [esp + 0xac]
test eax, eax
jne 0x41a23d
test ecx, ecx
jne 0x41a23d
cmp dword [0x422374], 0
je 0x41a27f
lea esi, [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], 0x80
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], 0x5c
call fcn.00419edc
test eax, eax
jne 0x41a1ca
mov dword [esp], esi
mov dword [esp + 4], 0x3a
call fcn.00419edc
test eax, eax
je 0x41a1cd
inc eax
mov esi, eax
mov dword [esp + 0x98], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x41a21d
call sub.KERNEL32.DLL_GetCurrentThreadId
lea ecx, [esp + 0x98]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x41a348
call sub.USER32.DLL_EnumThreadWindows
sub esp, 0xc
mov ecx, 0x12010
cmp dword [esp + 0x98], 0
jne 0x41a21d
mov ecx, 0x11010
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.USER32.DLL_MessageBoxA
sub esp, 0x10
jmp 0x41a309
test ecx, ecx
je 0x41a254
cmp ecx, 0xffffffff
je 0x41a309
mov dword [esp], edi
call ecx
mov eax, dword [0x426530]
test eax, eax
je 0x41a309
cmp eax, 0xffffffff
je 0x41a309
cmp byte [eax], 0
je 0x41a309
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0041a014
jmp 0x41a309
mov dword [esp], 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov esi, eax
lea ebx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x4221c4
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], edi
call fcn.0041285c
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x4221c4
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
add esp, 0x9c
pop esi
pop edi
pop ebx
ret
Function at 0x41b194
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x42a560]
test eax, eax
je 0x41b1db
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
je 0x41b266
add eax, 4
xor edi, edi
nop word cs:[eax + eax]
cmp byte [ecx], 1
sbb ecx, ecx
lea edi, [edi + ecx + 1]
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x41b1c4
jmp 0x41b266
mov esi, dword [0x42a59c]
test esi, esi
jne 0x41b208
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x42a59c], esi
test esi, esi
jne 0x41b208
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.0041a328
mov esi, dword [0x42a59c]
mov dword [esp], esi
call fcn.0041285c
xor ebx, ebx
mov ebp, 1
xor edi, edi
test eax, eax
je 0x41b23c
mov ebp, esi
nop dword [eax + eax]
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
lea ebx, [eax + ebx + 1]
inc edi
call fcn.0041285c
test eax, eax
jne 0x41b224
inc ebx
mov ebp, ebx
mov dword [esp], ebp
call fcn.0040fe68
mov ecx, eax
mov dword [0x42a55c], ecx
xor eax, eax
test ecx, ecx
je 0x41b311
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.0041257c
lea eax, [edi + 4]
mov dword [0x42a564], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.0040fe50
mov esi, eax
xor eax, eax
test esi, esi
je 0x41b311
mov edi, dword [0x42a560]
test edi, edi
je 0x41b2c3
mov edx, dword [edi]
test edx, edx
je 0x41b2fe
lea eax, [edi + 4]
xor ecx, ecx
nop
cmp byte [edx], 0
jne 0x41b2b4
dec ecx
jmp 0x41b2b7
mov dword [esi + ecx*4], edx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x41b2a4
jmp 0x41b2fa
mov ebx, dword [0x42a55c]
mov dword [esp], ebx
call fcn.0041285c
test eax, eax
je 0x41b306
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [eax + ebx + 1]
mov dword [esp], ebx
add ebp, 4
call fcn.0041285c
test eax, eax
jne 0x41b2e4
test edi, edi
je 0x41b306
mov dword [esp], edi
call fcn.0040fe78
mov dword [0x42a560], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
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 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 0x107ee058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x107ee1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x107ee07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107ee06a
add dl, dl
jne 0x107ee089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107ee0dc
xor eax, eax
add dl, dl
jne 0x107ee096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107ee17d
add dl, dl
jne 0x107ee0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ee0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ee0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ee0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x107ee0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x107ee075
mov eax, 1
add dl, dl
jne 0x107ee0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107ee0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107ee0e1
sub eax, ebx
mov ebx, 1
jne 0x107ee128
mov ecx, 1
add dl, dl
jne 0x107ee10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107ee119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107ee105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107ee075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107ee13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107ee14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107ee136
cmp eax, 0x7d00
jae 0x107ee16d
cmp eax, 0x500
jb 0x107ee168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107ee075
cmp eax, 0x7f
ja 0x107ee170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107ee075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107ee19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x107ee075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4034f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bc020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40358c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40356c
xor eax, eax
push ebp
push 0x403565
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40356c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4bc020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bc020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4be04c], 0
je 0x404411
cmp word [0x4be220], 0xd7b2
jne 0x4043d9
cmp dword [0x4be228], 0
jbe 0x4043d9
mov eax, 0x4be21c
call dword [0x4be238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bc06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404438
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc030], 0
jne 0x40442d
push 0
push 0x4bc064
push 0x4bc06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4068c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40692a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004047a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406914
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406931
lea eax, [ebp - 0x10]
call fcn.00404534
ret

Function at 0x40c6e4
Capabilities:
Get geographical location

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

Function at 0x40c730
Capabilities:
Get geographical location

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

Function at 0x40cde8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc50
mov eax, dword [0x4bdc98]
cmp byte [eax], 0
je 0x40ce64
mov eax, dword [0x4bd978]
call fcn.00402e7c
call fcn.00402cc8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004096dc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ceac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce9a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bd8fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4be668]
call fcn.00405d14
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret