joyce8/EMBER2024-capa huggingface dataset:
Function at 0x270bc0f4
Capabilities:
Access peb ldr_data
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pushal
cld
xor ebx, ebx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x270bc11b
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x270bc112
cmp edi, 0x6a4abc5b
mov edx, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x270bc108
mov ebx, dword [ebp + 8]
mov dword [ebx], edx
push ebp
mov ebx, edx
mov ebp, ebx
mov ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + ebp + 0x78]
mov ecx, dword [ebx + ebp + 0x18]
mov edx, dword [ebx + ebp + 0x20]
add edx, ebp
call fcn.270bc0d8
push ecx
mov edi, eax
pop ecx
dec ecx
test ecx, ecx
je 0x270bc17f
mov esi, dword [edx + ecx*4]
add esi, ebp
push ecx
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
test ecx, ecx
jne 0x270bc150
pop ecx
mov esi, dword [ebx + ebp + 0x24]
add esi, ebp
movzx esi, word [esi + ecx*2]
mov edi, dword [ebx + ebp + 0x1c]
add edi, ebp
mov edi, dword [edi + esi*4]
add edi, ebp
pop ebp
mov ebx, dword [ebp + 0xc]
mov dword [ebx], edi
popal
pop ebp
ret 8

Function at 0x270bc9a8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.270b4780
xor eax, eax
push ebp
push 0x270bca69
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0xc], 0
je 0x270bc9ea
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.270b451c
mov edx, dword [ebp - 4]
lea eax, [ebp + 8]
mov ecx, dword [ebp + 8]
call fcn.270b4618
mov eax, dword [ebp + 8]
test eax, eax
je 0x270bc9f6
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
mov eax, ebx
add eax, eax
add eax, 2
call fcn.270b6bd4
mov esi, eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.270b8978
mov eax, dword [ebp - 8]
call fcn.270b4b60
mov edx, eax
mov ecx, ebx
add ecx, ecx
mov eax, esi
call fcn.270b6488
call fcn.270b8908
mov eax, dword [eax + 0x10]
add eax, 0x40
mov dword [eax + 4], esi
mov edx, ebx
add edx, edx
mov word [eax], dx
add dx, 2
mov word [eax + 2], dx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x270bca70
lea eax, [ebp - 8]
call fcn.270b4a08
lea eax, [ebp - 4]
call fcn.270b4324
lea eax, [ebp + 8]
call fcn.270b4324
ret
Function at 0x270bd968
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.270b4780
xor eax, eax
push ebp
push 0x270bdab3
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
cmp dword [edi], 0
je 0x270bd9b3
push 0x4021c
mov eax, dword [edi]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
je 0x270bda8b
push 0x270bdacc
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.270bd824
push dword [ebp - 0x2c]
push 0x270bdae0
lea eax, [ebp - 8]
mov edx, 3
call fcn.270b4694
push 1
lea eax, [ebp - 0x1c]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [ebp - 0x28], 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 8]
call fcn.270b4790
push eax
push 0x4021c
push 0
push 4
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
jne 0x270bda75
lea eax, [ebp - 0x30]
mov ecx, 0x270bdaec
mov edx, dword [ebp - 8]
call fcn.270b4618
mov eax, dword [ebp - 0x30]
push eax
call fcn.270b75b4
lea eax, [ebp - 8]
push eax
mov ecx, 0x7fffffff
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.270b47f0
mov eax, dword [ebp - 8]
call fcn.270b4790
push eax
push 0x4021c
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 6
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [edi], eax
cmp dword [edi], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x270bdaba
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.270b4348
lea eax, [ebp - 8]
mov edx, 2
call fcn.270b4348
ret
Function at 0x270be494
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
add esp, 0xfffffff0
call fcn.270be490
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0x64
call sub.kernel32.dll_Sleep_1
call fcn.270be490
sub eax, dword [esp]
sbb edx, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sub.kernel32.dll_GetTickCount_1
mov ecx, eax
sub ecx, ebx
cmp dword [esp + 0xc], 0
jne 0x270be4e2
cmp dword [esp + 8], 0x2faf080
jb 0x270be4ed
jmp 0x270be4e4
jl 0x270be4ed
cmp ecx, 0x32
jb 0x270be4ed
xor eax, eax
jmp 0x270be4ef
mov al, 1
add esp, 0x10
pop ebx
ret
Function at 0x270c31a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x270c324e
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x270c31c9
push 0x493e0
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
cmp eax, 0x493e0
jb 0x270c31bf
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x270e2ecc]
sub eax, dword [edx + 0x208]
cmp eax, 0x493e0
jl 0x270c31bf
push dword [0x270e69a4]
push 0x270c3264
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x270e2ecc]
sub eax, dword [edx + 0x208]
mov ecx, 0x3e8
xor edx, edx
div ecx
lea edx, [ebp - 8]
call fcn.270b6c04
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.270b4694
mov eax, dword [ebp - 4]
push eax
call fcn.270b75b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x270c3255
lea eax, [ebp - 8]
mov edx, 2
call fcn.270b4348
ret

Function at 0x270c3270
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
call fcn.270b4780
mov eax, dword [ebp + 0xc]
call fcn.270b4780
xor eax, eax
push ebp
push 0x270c32ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jne 0x270c32b2
push 5
push 0
mov eax, dword [ebp + 8]
call fcn.270b4790
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x270c32d1
push 5
mov eax, dword [ebp + 0xc]
call fcn.270b4790
push eax
mov eax, dword [ebp + 8]
call fcn.270b4790
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x270c32f3
lea eax, [ebp + 8]
mov edx, 2
call fcn.270b4348
ret
Function at 0x270c32fc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x270c3304
xor eax, eax
push ebp
push 0x270c347a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [0x270e3214]
mov edx, dword [edx]
call fcn.270b451c
mov eax, dword [ebp - 4]
call fcn.270b5f20
test al, al
jne 0x270c3355
lea eax, [ebp - 8]
mov edx, dword [0x270e3230]
mov edx, dword [edx]
call fcn.270b451c
mov eax, dword [ebp - 8]
call fcn.270b5f20
test al, al
je 0x270c33e9
lea eax, [ebp - 0xc]
mov edx, dword [0x270e31bc]
mov edx, dword [edx]
call fcn.270b451c
mov eax, dword [ebp - 0xc]
mov edx, dword [0x270e6990]
call fcn.270b790c
push 4
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x270e6990]
call fcn.270b732c
mov eax, dword [ebp - 0x10]
call fcn.270b4790
push eax
call sub.kernel32.dll_MoveFileExA
lea edx, [ebp - 0x14]
mov eax, dword [0x270e6990]
call fcn.270b73a8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x270e6994]
call fcn.270b4728
je 0x270c33e9
lea edx, [ebp - 0x18]
mov eax, dword [0x270e6990]
call fcn.270b73a8
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x270e69cc]
mov edx, dword [eax]
mov eax, dword [0x270e69bc]
call fcn.270bb718
lea edx, [ebp - 0x1c]
mov eax, dword [0x270e6990]
call fcn.270b73a8
mov edx, dword [ebp - 0x1c]
mov eax, 0x270e6994
call fcn.270b4378
cmp byte [0x270e6976], 0
jne 0x270c3419
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [0x270e6994]
call fcn.270b4790
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x270e2ec0], eax
push dword [0x270e69a4]
push 0x270c3490
lea edx, [ebp - 0x24]
mov eax, dword [0x270e2ec0]
call fcn.270b6c04
push dword [ebp - 0x24]
push 0x270c34a4
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x28]
call fcn.270b6c04
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.270b4694
mov eax, dword [ebp - 0x20]
push eax
call fcn.270b75b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x270c3481
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.270b4348
ret

Function at 0x270c5cfc
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 0x270c5d35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.270b4414
jmp 0x270c5d3e
mov eax, ebx
mov edx, esi
call fcn.270b4378
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x270c5d48
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 0x270c5d6a
movzx eax, byte [esp]
jmp 0x270c5d6c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x270c63fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x270c6274
mov eax, dword [0x270e321c]
cmp byte [eax], 0
je 0x270c6478
mov eax, dword [0x270e314c]
call fcn.270b30f4
call fcn.270b2dbc
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.270c51bc
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 0x270c64c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x270c64ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x270e3124]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x270e67f0]
call fcn.270b4ea8
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

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x4041b0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413998
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x439198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp + 8]
push eax
call fcn.00402540
mov dword [ebp - 0x24], eax
push str.Name
push 0x414442
push str.SELECT__FROM_Win32_Process
push str.ROOTcimv2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 2
jl 0x40424b
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401270
mov al, byte [ebp - 0xd]
jmp 0x404272
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401270
mov al, byte [ebp - 0xe]
jmp 0x404272
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x404a60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413a10
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x439198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x43a2e8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0xffffffff
jne 0x404ad3
push str.NORUN
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 4]
call edx
mov eax, 0x12c
jmp 0x404b2a
push 0x4236ac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x24], str.yzb6jFjELVmnOxceOhf8YIV1dYatk2vyDqOmu0Xe7MkTK9iNf9usonTCtQQylNCJqfcDNThJjFHxUTPsoRARvx7vxulcS80xNcwYKRkr1Q8p7AgdC9tUhHdNlrIHTunz73VRaNPNVECvSR7KNiWwQBuNOltk3cF8h7re4S9tKuBQyc7ukaI8GoR2WSrhLnReHiVsNDhmdPUncQ7w8cpBwvVeHQUJkXbzh5doYVQu2hJXEY4FDqufiGSi54wPEMRytxXlsVab0rFuzx9sMqlQh2zm6vjCwqpkejL4la8SQ3HIKzncBPoQ0ejNdFG71qWNwPJ3qfU48smCdAtx37aSFBBHbiVfXE1fbpAKGRIwwm7BVeJnYFdwHikRigUjroaYgAKs4ooD8zYLc7hweWx9MeXb0cIgYIKWf8OukXodNPsMki7wquPCeetO5pF3d80OqS5MNAGkJvbmIbfF31ulSYigENhCNu94WUzIoaDjty1dSAC6nmDfb7hdaXhXz2mSLmYdAu8JQE36mJ6Bxw4Jb6JCn6A6lrKhFxIIrfpu45yKOczPtCjMsjsLn4k04JoYgUUcA1hGBI1WXXNaYVzPc2E9AkOIJlku03o6ggTIkb7tBpzIFRMQ9p2xL3Dhs6w78GEpfkWfoDI8BjArWXymEvGXYYtLodUTLHVCUtxchVVJWNu06UelDhfLExieMhoCQ69MePdKPy37DsUPczOkAwIuwNeLXiNS81WoIr1obDx7Ndp9bR4my0BXDqCukDV2bLFvudoMOV8BDnvVNWpYciRkpL2vm6waoLkGeWhXyQItpGGTB3YhKVRVxNdXBOh93BF2dm3bvqoBrglA2zCO1ivo5872InQCcYa6g2vU8mtTczSfh3SImF3Dp2TPoHQ0JKU1NsYYfYsiawDUqa1BKfgOfoUAr8PrnUOpPYapWf4JUpSomHXAK5nmAJKtIpjTGCoqXSgxGKda7SRhNEokr82YPhaIbDK327THjkUUgM1yv2MQh6DXwfmDDN7yQlznDPjqCldqJdOUThKgbgMeiaVx3LMdQo97xlihdRI9zy7ebvTmGyAgAwKdojyXk7MfAkctXIptv0EwlUhKQtvNOPknm906AaMxuC5HlCK2DlmPq9QRwFJ52wz6VETSVCmxKdKepbDKn3ndydCQnX7OLRRDrQgEMVHwJdEMMTsMud2JVxuDVhfie54yyqgHFYWzBTYEFa0A1yRsQTjUxHoh8eqHfFho8YctnEBAPexQmsDuFtT9ltx2NjI8QwV5OAuRS37UDiMzhVhWPS2ymUopQjLawKS8FE7hdzCs0xV4oJVI8TvpUQ7rEdRty4Cqb8s7tIhO9AreUm2eJcvSKVolKPdigtkGFJ1wURFVFJK49bhaLSGfn6xTYncoyF9dNpoeg7TwsoI7KwwQ0SykuEDdTiwNbXnQyQeNoQffjuC8MDd5kxfGPnMQM7Dncv8xMtIdzhnJM6mQ92M3vBTqDfdMArLARpnYzucYRJqIHkT0CGtO3u0Kid6LlnNy4050n1Kvyi6rOKsxHKuuPBLGnW771sNGlNgv1bgYYHzLLoxRuC7ebec6zOuHoGbLQxVrJ0lqGry84JTCHRDiJE4HIRW0evyRp99SbvoHkFix7GzPJhl3A8TYOTG36QRpsLVXmDAuGhwydEPNCQwTdOYjXouuw4f86JnREkQkIPun
xor eax, eax
jmp 0x404b2a
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 0x4050a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4050c4
xor eax, eax
jmp 0x405144
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4050db
xor eax, eax
jmp 0x405144
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405127
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x405127
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4050fe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x405133
xor eax, eax
jmp 0x405144
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x405141
xor eax, eax
jmp 0x405144
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c842
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439198]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c3b9
mov dword [ebp - 0x14], eax
cmp dword [0x43afc8], edi
jne 0x40c933
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40c8c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ca13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40ca13
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ca13
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x43afc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x43afcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x43afd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43afd8], eax
test eax, eax
je 0x40c930
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43afd4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c958
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c94b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40c96d
push 4
pop eax
jmp 0x40ca15
cmp dword [ebp - 0x14], edi
je 0x40c96d
push dword [0x43afc8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c952
mov eax, dword [0x43afd4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40c9cb
cmp dword [0x43afd8], esi
je 0x40c9cb
push eax
call ebx
push dword [0x43afd8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c9cb
test eax, eax
je 0x40c9cb
call ecx
test eax, eax
je 0x40c9c0
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 0x40c9c0
test byte [ebp - 8], 1
jne 0x40c9cb
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40c9fb
mov eax, dword [0x43afcc]
cmp eax, esi
je 0x40c9f8
push eax
call ebx
test eax, eax
je 0x40c9f8
call eax
mov edi, eax
test edi, edi
je 0x40c9f8
mov eax, dword [0x43afd0]
cmp eax, esi
je 0x40c9f8
push eax
call ebx
test eax, eax
je 0x40c9f8
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x43afc8]
call ebx
test eax, eax
je 0x40ca13
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40ca15
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407404
leave
ret
Function at 0x10019368
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10019389
jl 0x10019380
test edi, edi
jne 0x10019389
xor eax, eax
xor edx, edx
jmp 0x1001944a
cmp dword [ebx + 0x38], 0
je 0x1001939e
push eax
push edi
push dword [ebp + 8]
call fcn.10019450
jmp 0x1001944a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100193e5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100193e5
cmp eax, edi
jb 0x100193bf
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1001ac50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100193eb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1001943f
mov ecx, ebx
call fcn.10018c1a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1001942a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1002362b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1001943f
jmp 0x100193fd
test edx, edx
je 0x1001943f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1002362b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x100243fd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002443c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002443c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002443c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002443c
cmp dword [ecx + 0x74], 0xe
jbe 0x1002443c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100292e7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003ee28
push 0x1003ee20
push str.FlsAlloc
push 0x1f
call fcn.100291af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002931b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10039170]
call esi
jmp 0x10029321
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10029365
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003ee38
push 0x1003ee30
push str.FlsGetValue
push 0x21
call fcn.100291af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002939c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10039170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100293a4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003ee40
push 0x1003ee38
push str.FlsSetValue
push 0x22
call fcn.100291af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100293de
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10039170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]