joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ab30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, 0x5e9212fc
mov edx, 0xa761f0f7
sub eax, eax
mov esi, dword [ebp + 0xc]
lea edi, [esi - 1]
inc edi
cmp byte [edi], 0
jne 0x43ab48
cmp esi, edi
je 0x43ab71
mov al, byte [esi]
inc esi
imul ecx, eax, 0x71b2c107
ror edx, 6
xor ecx, edx
imul edx, eax, 0xebae624d
ror ebx, 7
xor edx, ebx
mov ebx, ecx
cmp esi, edi
jb 0x43ab52
and ebx, 0x7fffffff
cmp ebx, 0x7fffffab
jb 0x43ab85
sub ebx, 0x7fffffab
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x43ad0a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebp
mov ebp, dword [ebp + 8]
mov ebx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x94]
test ecx, ecx
je 0x43ad50
lea edx, [esi + ecx]
cmp edx, edi
jbe 0x43ad33
mov edx, edi
mov al, byte [esi]
xor bl, al
mov byte [esi], bl
ror ebx, 8
dec ecx
inc esi
cmp esi, edx
jb 0x43ad33
test ecx, ecx
jne 0x43adf9
xor ebx, dword [ebp + 0x90]
mov edx, dword [ebp]
sub edi, 4
jmp 0x43ad99
mov eax, 0x9c4e
mul edx
mov ecx, 0x7fffffab
div ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 8]
shr eax, 0x1b
mov ecx, dword [ebp + eax*4 + 0xc]
sub ecx, dword [ebp + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + eax*4 + 0xc], edx
xor ebx, ecx
mov ecx, dword [esi]
xor ebx, ecx
mov dword [esi], ebx
mov ebx, ecx
add esi, 4
cmp esi, edi
jbe 0x43ad58
add edi, 4
mov ecx, edi
sub ecx, esi
je 0x43adf6
mov eax, 0x9c4e
mul edx
mov ecx, 0x7fffffab
div ecx
mov ecx, dword [ebp + 4]
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 8]
shr eax, 0x1b
mov ecx, dword [ebp + eax*4 + 0xc]
sub ecx, dword [ebp + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + eax*4 + 0xc], edx
xor ebx, ecx
mov dword [ebp + 0x90], ebx
mov ecx, 4
mov al, byte [esi]
xor bl, al
mov byte [esi], bl
ror ebx, 8
dec ecx
inc esi
cmp esi, edi
jb 0x43ade7
mov dword [ebp], edx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x94], ecx
pop ebp
pop ebx
pop edi
pop esi
leave
ret
Function at 0x13f8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.013f81a8
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 0x13f807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13f806a
add dl, dl
jne 0x13f8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13f80dc
xor eax, eax
add dl, dl
jne 0x13f8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13f817d
add dl, dl
jne 0x13f80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13f80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13f80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13f80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x13f80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x13f8075
mov eax, 1
add dl, dl
jne 0x13f80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13f80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13f80e1
sub eax, ebx
mov ebx, 1
jne 0x13f8128
mov ecx, 1
add dl, dl
jne 0x13f810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x13f8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13f8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13f8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x13f813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x13f814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13f8136
cmp eax, 0x7d00
jae 0x13f816d
cmp eax, 0x500
jb 0x13f8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13f8075
cmp eax, 0x7f
ja 0x13f8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x13f8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x13f819e
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 0x13f8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4027cc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x41a008], 0x8088405
inc edx
mov dword [ebx + 0x41a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41a018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402cec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ccc
xor eax, eax
push ebp
push 0x402cc5
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 0x402d08
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 0x402ccc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41a018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41a018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403598
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b044], 0
je 0x4035f9
cmp word [0x41b218], 0xd7b2
jne 0x4035c1
cmp dword [0x41b220], 0
jbe 0x4035c1
mov eax, 0x41b214
call dword [0x41b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a060
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 0x403620
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a024], 0
jne 0x403615
push 0
push 0x41a058
push 0x41a060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404998
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 0x4049fe
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.00403998
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027e8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4049e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a05
lea eax, [ebp - 0x10]
call fcn.00403734
ret

Function at 0x405a28
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405b32
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405a7b
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403824
jmp 0x405b19
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004059dc
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.004059fc
mov ebx, eax
test esi, esi
je 0x405aa3
dec esi
test esi, esi
jl 0x405aa3
cmp edi, ebx
jne 0x405a82
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.0040392c
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403c24
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039c4
cmp eax, 2
jl 0x405b19
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405b19
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039c4
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405b19
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004039c4
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b39
lea eax, [ebp - 0x110]
call fcn.00403734
ret

Function at 0x405bfc
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x41a7fc]
mov byte [eax], 1
mov edx, dword [0x4050f0]
xor eax, eax
call fcn.004078c0
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x405bec
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x405cc0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x405cdb
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x405cea
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x405cec
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret
Function at 0x408270
Capabilities:
Get file attributes

Disassembly:
call fcn.00405370
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x408284
dec eax
and al, 0x10
sete al
ret

Function at 0x40934c
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x409358
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x409374
push eax
je 0x409375
call dword [0x41a120]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41a120]
ret

Function at 0x40a6f8
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040a58c
je 0x40a72a
mov eax, ebx
push edx
call fcn.004072a4
pop edx
cmp eax, edx
je 0x40a72a
test edx, edx
mov eax, ebx
jne 0x40a71c
pop ebx
inc edx
jmp fcn.00407294
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.00407294
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040a748
ret
Function at 0x40c7d0
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 0x40c809
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403824
jmp 0x40c812
mov eax, ebx
mov edx, esi
call fcn.00403788
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c81c
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 0x40c83d
mov al, byte [esp]
jmp 0x40c83f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cec4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd3c
mov eax, dword [0x41a968]
cmp byte [eax], 0
je 0x40cf40
mov eax, dword [0x41a838]
call fcn.00402748
call fcn.00402624
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.0040bcc4
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 0x40cf88
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf76
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41a804]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41b660]
call fcn.004043dc
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 0x40d934
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d998
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403998
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040bb98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d99f
lea eax, [ebp - 0xc]
call fcn.00403734
ret
Function at 0x411404
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov byte [0x41a628], 1
push esp
xor edx, edx
mov al, 1
call fcn.0040501c
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x411440
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403bb4
xor eax, eax
push ebp
push 0x411675
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.00408104
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.004080cc
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
call fcn.004037cc
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406a00
test eax, eax
jl 0x4114f1
lea ecx, [ebp - 0x110]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406af4
cmp dword [ebp - 0x110], 0
je 0x4114f1
mov ecx, esi
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406af4
jmp 0x41163f
cmp byte [0x41a628], 0
jne 0x411506
mov eax, esi
call fcn.00403734
jmp 0x41163f
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004027ac
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x104]
mov edx, dword [ebp - 4]
call fcn.0040816c
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4115c5
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4115bc
mov edi, dword [edx]
test edi, edi
je 0x4115b3
push esi
xor eax, eax
mov al, byte [edi]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x11c], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x114], 0
lea edx, [ebp - 0x130]
mov ecx, 3
mov eax, 0x41168c
call fcn.00408204
jmp 0x4115cc
mov eax, esi
call fcn.00403734
jmp 0x4115cc
mov eax, esi
call fcn.00403734
jmp 0x4115cc
mov eax, esi
call fcn.00403734
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406a00
test eax, eax
jl 0x4115ea
mov ecx, dword [esi]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406ba0
jmp 0x411612
push dword [ebp - 4]
push 0x4116a0
push dword [esi]
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00403a84
mov edx, dword [ebp - 0x134]
mov eax, dword [ebx + 0x40]
call fcn.00409ff8
cmp dword [esi], 0
jne 0x41163f
lea eax, [ebp - 0x138]
mov ecx, 0x4116ac
mov edx, dword [ebp - 4]
call fcn.00403a10
mov edx, dword [ebp - 0x138]
mov eax, dword [0x41a874]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
call fcn.00412f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41167c
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.00403758
lea eax, [ebp - 0x110]
mov edx, 3
call fcn.00403758
lea eax, [ebp - 4]
call fcn.00403734
ret
Function at 0x414624
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
lea esi, [esp + 4]
mov eax, ebx
call fcn.00403734
push esp
push 0x20019
push 0
push 0x41470c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x41469e
xor eax, eax
mov dword [esi], eax
lea eax, [esp + 8]
mov byte [eax], 0
inc dword [esi]
inc eax
cmp dword [esi], 0x100
jne 0x41465c
mov dword [esi], 0xff
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0x414734
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x41469e
mov eax, ebx
lea edx, [esp + 8]
mov ecx, pe_nt_image_headers32
call fcn.00403998
jmp 0x414701
push esp
push 0x20019
push 0
push 0x41470c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x414701
xor eax, eax
mov dword [esi], eax
lea eax, [esp + 8]
mov byte [eax], 0
inc dword [esi]
inc eax
cmp dword [esi], 0x100
jne 0x4146c1
mov dword [esi], 0xff
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0x414734
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x414701
mov eax, ebx
lea edx, [esp + 8]
mov ecx, pe_nt_image_headers32
call fcn.00403998
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x4016a7
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x64
push fcn.004016a7
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov ebx, dword [ebp + 8]
push ebx
push 1
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
call fcn.0040481f
mov esi, eax
fldz
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
fild qword [ebp - 0x5c]
fcompp
fnstsw ax
sahf
jne 0x4016fa
mov dword [ebp - 0x88], 0
jmp 0x401771
push 0
push 0
push 0
push 4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
call fcn.0040481f
mov edi, eax
fldz
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], 0
fild qword [ebp - 0x5c]
fcompp
fnstsw ax
sahf
jne 0x401737
mov dword [ebp - 0x88], 0
jmp 0x401771
push 4
mov eax, edi
push eax
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
call fcn.0040481f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
call fcn.0040481f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.0040481f
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x401f98
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x64
push sym.hookmsg.dll_MiniNProtect
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0
mov edx, 0x4055e8
call fcn.004049ee
mov ebx, esp
call fcn.004047a3
call fcn.0040153f
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.0040469a
pop eax
add esp, 4
mov esi, eax
push 0
lea ebx, [ebp + 0xc]
push ebx
mov edx, 0x4055e8
call fcn.004049ee
mov ebx, esp
add ebx, 4
call fcn.004047a3
call fcn.004015c0
push eax
mov ebx, esp
mov eax, dword [ebx + 4]
call fcn.0040469a
pop eax
add esp, 4
push dword [ebp + 8]
push dword [0x405534]
mov eax, 0x401f45
push eax
push 3
call dword [sym.imp.USER32.DLL_SetWindowsHookExA]
call fcn.0040481f
mov dword [0x405540], eax
mov eax, dword [0x405540]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x402334
Capabilities:
Accept command line arguments
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word cs:[0x402746], 4
jne 0x402350
jmp 0x402764
jmp 0x402764
cmp dword [ebp + 0xc], 1
jne 0x4027ad
call fcn.0040246a
lea eax, [ebx + 0x470]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00402510
mov dword [ebx + 0x29c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2a8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x2b0], eax
call fcn.00402355
jb 0x402808
inc word [ebx + 0x2a4]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2ac], eax
cmp eax, 2
jne 0x4027c0
call fcn.00402601
push ebx
call fcn.004023c3
pop ebx
cmp dword [ebx + 0x2ac], 3
jne 0x4027d5
call fcn.0040263b
cmp dword [ebx + 0x2ac], 0
jne 0x402808
mov ecx, dword [ebx + 0xd8]
call fcn.00402816
mov ecx, dword [ebx + 0xb0]
jecxz 0x4027f8
push ecx
call dword [pe_dos_header]
mov edi, dword [ebx + 0x2d8]
call fcn.004023c8
call fcn.004023af
movzx eax, word [ebx + 0x2a4]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x402355
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x4023ae
mov dword [ebx + 0x28c], eax
mov dword [ebx + 0x294], 0
mov dword [ebx + 0x290], 0
call fcn.00402601
jb 0x4023ae
mov dword [ebx + 0x290], eax
mov dword [eax + 0x58], 8
call fcn.004023a2
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x4023bc
push ebx
jb 0x402409
add byte [esi - 4], bl
call dword [sym.imp.KERNEL32.DLL_TlsFree]
ret
or bl, ch
mov esp, 0x8d02e6c1
or al, 0x33
Function at 0x40842e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004085de
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40852c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4084cf
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x408512
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4084e6
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x408501
test al, 0x40
je 0x4084f8
mov ecx, dword [edi + 0x20]
jmp 0x4084ff
test al, 0x80
je 0x408512
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x408512
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40849e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret