joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b83d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb4cd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52de04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x52de40]
cmp eax, 0xffffffff
jne 0x4b8404
xor ebx, ebx
jmp 0x4b840d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4b84e5
nop
cmp dword [ebx + 0x18], 0
jne 0x4b8430
cmp dword [ebx + 0xc], 0
je 0x4b84c0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x4b8479
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4b8462
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x4b8437
cmp dword [ebx + 0x18], 0
je 0x4b8426
nop
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4b849d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4b849d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea ecx, [ebx + 0x14]
call fcn.004b74c0
push 0x20
push eax
call fcn.004b3acc
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebx + 0x18], 0
jne 0x4b8480
jmp 0x4b8420
push 0x4b7cb0
push 0x9c3838
call fcn.004b7890
mov eax, dword [0x52de40]
add esp, 8
cmp eax, 0xffffffff
je 0x4b84e5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 2
test ebx, ebx
je 0x4b8512
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x4b8512
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
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 0x4b8530
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x4b8590
push 0
push 0
call fcn.004d6257
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b8559
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x4b8577
cmp eax, 0xffffffff
je 0x4b8577
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4eab4d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4eab90
call fcn.004cee06
mov dword [eax], 0xf
call fcn.004cee19
mov dword [eax], 0xd
call fcn.004c341f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f28
leave
ret
test eax, eax
jne 0x4eab97
inc eax
jmp 0x4eab84
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4eab82
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4eab84

Function at 0x4f0920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x4fda68
movsd qword [ebx], xmm0
push eax
movsd qword [edi], xmm0
call fcn.0041c070
add esp, 4
push eax
call fcn.0041d3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4f09f7
push esi
push 1
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.004c37de
push esi
call fcn.004c35d5
mov ecx, dword [ebp - 0x1f0]
add esp, 0x14
test ecx, ecx
je 0x4f09f7
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x4f09f7
movd xmm1, dword [ebp - 0x1ec]
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
divsd xmm1, qword [0x501db0]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov al, 1
movsd qword [edi], xmm1
movd xmm1, dword [ebp - 0x1e4]
cvtdq2pd xmm1, xmm1
pop edi
pop esi
divsd xmm1, qword [0x501db0]
addsd xmm1, xmm0
movsd qword [ebx], xmm1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f28
mov esp, ebp
pop ebp
ret

Function at 0x4f2fd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f2ffd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f2ffd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x414c10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x414c2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414c20
mov eax, 1
add ebx, ebx
jne 0x414c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414c38
jne 0x414c54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414c38
xor ecx, ecx
sub eax, 3
jb 0x414c68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414cda
mov ebp, eax
add ebx, ebx
jne 0x414c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414c80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ca4
inc ecx
add ebx, ebx
jne 0x414c90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414c85
jne 0x414ca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414c85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414cc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414cb5
jmp 0x414c26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414cc4
add edi, ecx
jmp 0x414c26
pop esi
mov edi, esi
mov ecx, 0x370
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414ce2
cmp byte [edi], 4
jne 0x414ce2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414ce7
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414d56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x140dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414d14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x140e4]
or eax, eax
je 0x414d50
mov dword [ebx], eax
add ebx, 4
jmp 0x414d31
call dword [esi + 0x140e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x414d87
cmp al, 0xef
ja 0x414d7a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x414d5c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x414d69
mov ebp, dword [esi + 0x140e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414dbb
sub esp, 0xffffff80
jmp 0x40ba04
Function at 0x402f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402dc0
mov esi, eax
cmp dword [0x407e64], 0xffffffff
je 0x402f81
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407e60]
jne 0x402f81
lea eax, [ebp - 0x1c]
push eax
push dword [0x407e60]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407e6c], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407e70], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403098
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x4089a8
call fcn.004061ac
mov esi, dword [eax]
push 0x4089a8
call fcn.004061ac
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405a14
call fcn.00405890
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.0040591c
call fcn.00404524
test eax, eax
jne 0x4031d9
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.004059f4
call fcn.00404524
test eax, eax
jne 0x40314f
cmp word [ebp - 0x190], 0x5a4d
jne 0x40314f
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405938
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.004059f4
jmp 0x403159
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405938
call fcn.00404524
test eax, eax
jne 0x4031bd
cmp word [ebp - 0x190], 0x4550
jne 0x4031bd
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.004059f4
call fcn.00404524
test eax, eax
jne 0x4031bd
cmp dword [ebp - 0x288], 0x4550
jne 0x4031bd
cmp word [ebp - 0x22c], 3
jne 0x4031bd
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405968
push 0x4089a0
call fcn.004061ac
mov dword [eax], 0
push 0x4089a8
call fcn.004061ac
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402dc0
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4032d4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f04], 0
je 0x4032f6
mov eax, dword [0x407f04]
mov dword [ebp - 4], eax
jmp 0x40338b
push 0x104
call fcn.004045f8
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004040c0
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x40333b
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0040326c
mov esi, eax
inc esi
push esi
call fcn.004040c0
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00404658
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x40336c
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x403379
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00404e38
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f04], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403468
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00404dac
xor eax, eax
mov bl, 0
cmp dword [0x407ea8], 0
jne 0x4034b6
push 0x407bf8
push 1
call fcn.00402ccc
mov dword [0x407ea8], eax
cmp dword [0x407ea8], 0
jne 0x4034cf
push 0x8000
call fcn.004045f8
mov esi, eax
mov bl, 1
jmp 0x403509
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407ea8]
test eax, eax
jne 0x4034f9
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x403532
push esi
push 0x8000
push 0xff
call fcn.00404e94
push esi
push 0x24
push 0
call fcn.00404e94
mov eax, esi
add eax, 0xc
push eax
call fcn.004046e0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038e0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.0040386c
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403918
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x4038fe
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407e60]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403cc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403ce0
mov al, byte [ebp - 4]
jmp 0x403ce3
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405ccc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x408258]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405d0a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405d05
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405d05
mov esi, edx
add edx, 0x10
jmp 0x405cee
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405e1e
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405e1e
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405e1c
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405e1c
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405d52
jmp 0x405e1c
sub cl, 3
jne 0x405d6c
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405e17
inc cl
jne 0x405d80
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405e17
inc cl
jne 0x405d94
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405da7
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405db1
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405e0e
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405dc4
cmp byte [ebp - 0x25], 0
jne 0x405e0c
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405dfa
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405dd5
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405e1e
jmp 0x405e1c
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405d44
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4062f4
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.004062d0
call fcn.00403468
mov dword [0x408258], eax
lea edx, [eax + 0x18]
mov dword [0x4082b8], edx
pop edx
call fcn.00406150
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x408284], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x408298], eax
mov dword [0x4082c0], eax
call fcn.00403098
cmp eax, 3
setb byte [0x408261]
call fcn.004040b8
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406580
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x438ca0
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub ecx, 0x7ded46d6
sub esp, 4
mov dword [esp], ecx
pop edi
call fcn.00438ce2
push edi
mov ecx, dword [esp]
add esp, 4
or edi, ecx
dec ecx
xor dword [edx], esi
add edi, ecx
add edx, 1
add ecx, edi
add edi, 0xd5617869
or ecx, edi
cmp edx, ebx
jne fcn.00438ca0
mov edi, ecx
inc ecx
sub ecx, ecx
ret
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44507c]
jne 0x401617
repz ret
jmp fcn.00401f23

Function at 0x406b4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004044cb
and dword [ebp - 0x14], 0
cmp dword [0x447a58], 0
mov dword [ebp - 0x18], eax
jne 0x406bff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406ca7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406ca7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x447a58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x447a5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x447a60], eax
call edi
push eax
call esi
mov dword [0x447a68], eax
test eax, eax
je 0x406bff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x447a64], eax
mov eax, dword [0x447a64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406c58
cmp dword [0x447a68], ecx
je 0x406c58
push eax
call esi
push dword [0x447a68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406c58
test ebx, ebx
je 0x406c58
call edi
test eax, eax
je 0x406c4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406c4f
test byte [ebp - 8], 1
jne 0x406c58
or dword [ebp + 0x10], 0x200000
jmp 0x406c8b
mov eax, dword [0x447a5c]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406c8b
mov eax, dword [0x447a60]
cmp eax, dword [ebp - 0x18]
je 0x406c8b
push eax
call esi
test eax, eax
je 0x406c8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x447a58]
call esi
test eax, eax
je 0x406ca7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406ca9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x43e1ce
Capabilities:
Parse pe header

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

Function at 0x43f4a9
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 0x43f4ca
jl 0x43f4c1
test edi, edi
jne 0x43f4ca
xor eax, eax
xor edx, edx
jmp 0x43f58b
cmp dword [ebx + 0x38], 0
je 0x43f4df
push eax
push edi
push dword [ebp + 8]
call fcn.0043f591
jmp 0x43f58b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43f526
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43f526
cmp eax, edi
jb 0x43f500
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004404f0
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 0x43f52c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43f580
mov ecx, ebx
call fcn.0043ed03
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43f56b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0044964f
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 0x43f580
jmp 0x43f53e
test edx, edx
je 0x43f580
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0044964f
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 0x44c22e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab548
push 0x4ab540
push str.FlsAlloc
push 0x1f
call fcn.0044c099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44c262
push dword [ebp + 8]
mov ecx, esi
call dword [0x45c178]
call esi
jmp 0x44c268
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44c2ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab558
push 0x4ab550
push str.FlsGetValue
push 0x21
call fcn.0044c099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44c2e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x45c178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44c2eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab560
push 0x4ab558
push str.FlsSetValue
push 0x22
call fcn.0044c099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44c325
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45c178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]