joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405f60
test esi, esi
jne 0x40482e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004060ac
jmp 0x40484c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040473c
mov edi, eax
test esi, esi
je 0x40484c
cmp dword [ebx], 0
je 0x40484c
dec esi
jmp 0x404835
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405170
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040540c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4052f9
test edi, edi
je 0x4052f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405239
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405214
cmp edi, 0xffffffff
je 0x4051d5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4051d5
mov byte [esp], 0
jmp 0x4052f9
cmp dword [esi], 1
jg 0x405214
cmp dword [esi], 0
jne 0x405206
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405206
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4052f9
lea eax, [esp + 0xc]
call fcn.00404f20
dec ebp
test ebp, ebp
jg 0x4051ba
cmp edi, 0xffffffff
je 0x405239
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405237
mov byte [esp], 0
jmp 0x4052f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40517e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405239
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405368
mov edx, eax
mov ebx, dword [0x4678f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40529d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40529b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40529d
xor edi, edi
cmp byte [esp], 0
je 0x4052c3
mov ebx, dword [esi]
test bl, 1
jne 0x4052d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4052a3
mov byte [esp + 1], 1
jmp 0x4052d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4052c3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405250
cmp byte [esp], 0
je 0x4052f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405cdc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x467054], 0
je 0x405d43
cmp word [0x467340], 0xd7b2
jne 0x405d05
cmp dword [0x467348], 0
jbe 0x405d05
mov eax, 0x46733c
call dword [0x467358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405d70
call fcn.00406548
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x420022], 0
jne 0x405d5f
push 0
push 0x4209aa
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407a70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407bd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405f60
cmp si, word [0x4209e8]
jb 0x407b08
cmp si, word [0x420be8]
ja 0x407b08
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407b08
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4209e8]
jae 0x407ae2
mov edi, ebx
dec edi
jmp 0x407b03
cmp si, word [ebx*8 + 0x4209e8]
jbe 0x407af2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407b03
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4209ec]
call fcn.00407990
jmp 0x407b08
cmp edi, dword [ebp - 8]
jae 0x407acc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407bb7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407bb7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406684
push dword [ebp - 0x160]
push 0x407bf0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406684
push dword [ebp - 0x164]
push 0x407c00
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406684
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040683c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407bdc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405fc0
ret
Function at 0x407d88
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407e8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x469b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x469b9c]
jne 0x407dd4
mov eax, esi
mov edx, 0x469b9e
mov ecx, 0x55
call fcn.00406684
push 0x469b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407e76
push 0x469b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405f60
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407e43
cmp byte [0x469b80], 0
je 0x407e08
mov edx, esi
mov eax, ebx
call fcn.00407c6c
jmp 0x407e43
mov edx, esi
mov eax, ebx
call fcn.00407a70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407e43
cmp dword [esi], 0
je 0x407e2c
mov eax, esi
mov edx, 0x407ea4
call fcn.0040675c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407a70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040675c
push 0x469b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x469b9c], bx
mov eax, dword [esi]
call fcn.004065f0
mov ecx, eax
mov eax, 0x469b9e
mov edx, 0xaa
call fcn.004078f0
push 0x469b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e93
lea eax, [ebp - 4]
call fcn.00405f60
ret
Function at 0x4080bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406044
xor eax, eax
push ebp
push 0x4082e1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4080fc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408116
mov eax, dword [ebp - 4]
call fcn.004065f0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004078f0
cmp word [ebp - 0x21a], 0
je 0x4082cb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4082f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4081e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4082f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4081e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40832c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4081e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40832c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4081e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408360
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4081e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408394
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4082cb
xor eax, eax
push ebp
push 0x4082c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407ecc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408254
mov eax, dword [ebp - 0x10]
call fcn.00404498
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406648
jmp 0x40829f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4083d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40829f
mov eax, dword [ebp - 0x10]
call fcn.00404498
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4083d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4082cb
cmp dword [ebp - 8], 0
je 0x4082ba
mov eax, dword [ebp - 8]
call fcn.004044b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4082e8
lea eax, [ebp - 4]
call fcn.00405f60
ret
Function at 0x4085d0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406044
xor eax, eax
push ebp
push 0x408690
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406684
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004067b4
mov eax, dword [ebx]
call fcn.00408498
test al, al
jne 0x40866d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406684
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004067b4
mov eax, dword [ebx]
call fcn.00408498
test al, al
jne 0x40866d
mov eax, ebx
call fcn.00405f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408697
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405fc0
lea eax, [ebp - 4]
call fcn.00405f60
ret

Function at 0x409b78
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41449c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4144d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004060ac
jmp 0x4144de
mov eax, ebx
mov edx, esi
call fcn.00406228
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4144e8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41450a
movzx eax, word [esp]
jmp 0x41450c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x415494
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4155b9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041529c
mov esi, eax
mov eax, dword [0x466d70]
cmp byte [eax], 0
je 0x415561
mov eax, dword [0x466c84]
call fcn.004048fc
call fcn.004045ec
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x415464]
call fcn.004073a8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4155d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41559d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x466c60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a598]
call fcn.00407594
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4155c0
lea eax, [ebp - 4]
mov edx, dword [0x415464]
call fcn.004074cc
ret
Function at 0x416220
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x416320
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406270
lea eax, [ebp - 4]
call fcn.004063dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004065f0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41630a
mov eax, ebx
call fcn.00404498
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x416303
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004065f0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4162ed
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416334
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4162ed
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41630a
mov eax, dword [ebp - 0x10]
call fcn.004044b4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416327
lea eax, [ebp - 4]
call fcn.00405f60
ret

Function at 0x418ddc
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00404960
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x41ba00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
test ebx, ebx
je 0x41baa4
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, edx
mov esi, eax
mov edx, dword [esi + 0x78]
mov eax, ebx
call fcn.0041b6cc
mov esi, eax
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jb 0x41baa4
inc ebp
xor edi, edi
mov edx, dword [esi + 0x20]
mov eax, ebx
call fcn.0041b6cc
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.0041b6cc
mov dword [esp + 0xc], eax
mov eax, dword [esp]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x41baa0
mov edx, dword [esi + 0x24]
mov eax, ebx
call fcn.0041b6cc
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.0041b6cc
movzx edx, word [esp + 0x10]
mov eax, dword [eax + edx*4]
mov edx, eax
mov eax, ebx
call fcn.0041b6cc
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x41ba3c
mov eax, dword [esp + 4]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bce8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push 0
push 2
push 0
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bd0a
call fcn.004169bc
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
jne 0x41bd23
call fcn.004169bc
xor esi, esi
mov eax, dword [ebx + 0x3c]
add eax, 4
add ebx, eax
movzx eax, word [ebx + 2]
add ebx, 0xf4
mov edx, eax
test edx, edx
jle 0x41bd55
mov eax, ebx
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 0x10]
cmp esi, ecx
jae 0x41bd4f
mov esi, dword [eax + 0x14]
add esi, dword [eax + 0x10]
add ebx, 0x28
dec edx
jne 0x41bd3d
test ebx, ebx
je 0x41bd5f
push ebx
call sub.kernel32.dll_UnmapViewOfFile
test edi, edi
je 0x41bd69
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x10012718
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100869bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10012771
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1001276c
push 0
push 0
push 0
push 0
push 0x4d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x100128fd
mov dword [ebp - 0x10], 0xfffffff7
mov dword [ebp - 0x20], 0x4a0426a7
mov dword [ebp - 0x18], 0xffffffff
push 1
lea ecx, [ebp - 0x70]
call fcn.10014bbc
and dword [ebp - 4], 0
mov dword [ebp - 0x50], 0x8abff5ec
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x54], 0x3be4655
mov dword [ebp - 0x14], 0
jmp 0x100127b9
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x100127d2
push dword [ebp - 0x14]
lea ecx, [ebp - 0x70]
call fcn.10014c48
mov dword [eax], 0xfffaa232
jmp 0x100127b2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x20], eax
jge 0x100127e9
mov dword [ebp - 0x1c], 1
jmp 0x100127ed
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], eax
je 0x100127fe
mov dword [ebp - 0x48], 1
jmp 0x10012802
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x10], 0x93d0b548
jne 0x10012820
mov dword [ebp - 0x24], 1
jmp 0x10012824
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x24], eax
je 0x1001283b
cmp dword [ebp - 0x10], 0
je 0x1001283b
mov dword [ebp - 0x28], 1
jmp 0x1001283f
and dword [ebp - 0x28], 0
imul eax, dword [ebp - 0x28], 0xfffffff6
cmp eax, 1
jbe 0x10012851
mov dword [ebp - 0x4c], 1
jmp 0x10012855
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
mov esi, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x70]
call fcn.10014c48
sub esi, dword [eax]
cmp esi, dword [ebp - 0x10]
jle 0x10012878
mov dword [ebp - 0x2c], 1
jmp 0x1001287c
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x10012891
mov dword [ebp - 0x30], 1
jmp 0x10012895
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x30], eax
jge 0x100128a6
mov dword [ebp - 0x34], 1
jmp 0x100128aa
and dword [ebp - 0x34], 0
push 0
lea ecx, [ebp - 0x70]
call fcn.10014c48
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
push 0
lea ecx, [ebp - 0x70]
call fcn.10014c48
push 0
lea ecx, [ebp - 0x70]
call fcn.10014c48
imul eax, dword [eax], 0x294b
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x38], eax
je 0x100128e7
mov dword [ebp - 0x3c], 1
jmp 0x100128eb
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10014c43
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001290c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001295b
mov dword [ebp - 0x2c], 0xfffffff7
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10012934
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x10012956
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
jmp 0x10012a60
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
cmp dword [eax], 0xffff
ja 0x10012a20
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
mov esi, eax
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
mov ecx, dword [esi]
imul ecx, dword [eax]
cmp ecx, 0x7552
je 0x100129d3
mov dword [ebp - 0xc], 1
jmp 0x100129d7
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
sub eax, 0x3bd00e8
cmp eax, 7
jg 0x100129fc
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
cmp dword [eax], 0
je 0x100129fc
mov dword [ebp - 0x10], 1
jmp 0x10012a00
and dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x10]
neg esi
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
imul esi, dword [eax]
cmp esi, 0xffffffff
jg 0x10012a20
mov dword [ebp - 0x14], 1
jmp 0x10012a24
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0xfffd
ja 0x10012a36
mov dword [ebp - 0x18], 1
jmp 0x10012a3a
and dword [ebp - 0x18], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.10014c48
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jle 0x10012a54
mov dword [ebp - 0x1c], 1
jmp 0x10012a58
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100188c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001897d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
inc ecx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
test eax, eax
jne 0x1001894a
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xa21b
jg 0x10018924
mov dword [ebp - 0xc], 1
jmp 0x10018928
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 1
jne 0x10018937
mov dword [ebp - 0x10], 1
jmp 0x1001893b
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0x32da
je 0x1001894a
and dword [ebp - 0x14], 0
jmp 0x10018951
mov dword [ebp - 0x14], 1
push 2
mov ecx, dword [ebp - 8]
call fcn.10014c48
mov esi, eax
push 2
mov ecx, dword [ebp - 8]
call fcn.10014c48
mov esi, dword [esi]
sub esi, dword [eax]
imul esi, dword [ebp - 0x14]
push 1
mov ecx, dword [ebp - 8]
call fcn.10014c48
mov dword [eax], esi
jmp 0x10018983
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
pop esi
mov esp, ebp
pop ebp
ret