joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402880
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416a86
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402250
test al, al
jne 0x4028cb
push str.Wondershare_PDFelement_Monitor
push str.__MSG____s_does_not_exist._n
call fcn.00401130
add esp, 8
jmp 0x4029cb
call fcn.004024d0
xor esi, esi
mov dword [ebp - 0x14], esi
push str.Wondershare_PDFelement_Monitor
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402924
call edi
cmp eax, 0xbc0
jne 0x402959
call fcn.00401330
test al, al
jne 0x402916
push 0x41e418
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xbc0
push eax
call fcn.00405629
sub esp, 8
lea ecx, [ebp - 0x14]
call fcn.004029f0
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
push 0x208
movq qword [ebp - 0x1c], xmm0
call fcn.004038a6
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x1c], ebx
push 0x104
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40296c
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x41e418
push eax
call fcn.00405629
cmp word [ebx], 0
mov edx, ebx
je 0x40297d
add edx, 2
cmp word [edx], 0
jne 0x402974
push ecx
push str.WSMonEditor.dll
mov ecx, ebx
call fcn.00402a40
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4029ab
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x41e418
push eax
call fcn.00405629
lea ecx, [ebp - 0x1c]
call fcn.00401a40
mov dword [ebp - 4], 2
test esi, esi
je 0x4029cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004035c5
mov esp, ebp
pop ebp
ret
Function at 0x402af0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416ac4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
push 0x208
movq qword [ebp - 0x18], xmm0
call fcn.004038a6
mov ebx, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
push 0x208
mov dword [ebp - 4], 0
call fcn.004038a6
mov ecx, dword [ebp - 0x24]
mov edi, ebx
mov ebx, eax
mov dword [ebp - 0x1c], eax
add esp, 8
xor esi, esi
sub edi, ecx
sub ebx, dword [ebp - 0x20]
mov eax, ecx
nop word [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edi + eax - 2], cx
test cx, cx
jne 0x402b70
mov eax, dword [ebp - 0x18]
mov edx, eax
cmp word [eax], cx
je 0x402b99
nop word [eax + eax]
add edx, 2
cmp word [edx], 0
jne 0x402b90
push ecx
push dword [esi*4 + 0x41d164]
mov ecx, eax
call fcn.00402a40
mov ecx, dword [ebp - 0x20]
add esp, 8
nop
movzx eax, word [ecx]
mov word [ebx + ecx], ax
add ecx, 2
test ax, ax
jne 0x402bb0
mov eax, dword [ebp - 0x1c]
mov edx, eax
cmp word [eax], 0
je 0x402bd9
nop word [eax + eax]
add edx, 2
cmp word [edx], 0
jne 0x402bd0
push ecx
push dword [esi*4 + 0x41d164]
mov ecx, eax
call fcn.00402a40
add esp, 8
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x402c0a
mov ecx, dword [ebp - 0x24]
inc esi
cmp esi, 5
jb 0x402b64
push dword [ebp - 0x1c]
call fcn.004035d6
push dword [ebp - 0x18]
call fcn.004035d6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004035c5
mov esp, ebp
pop ebp
ret

Function at 0x402c40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416af6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
cmp esi, 5
ja 0x402cdb
push 0x208
call fcn.004038a6
add esp, 4
xor ebx, ebx
mov edi, eax
test esi, esi
je 0x402cd2
mov eax, dword [ebp - 0x10]
mov esi, edi
sub esi, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x402c90
mov edx, edi
cmp word [edi], cx
je 0x402cb0
add edx, 2
cmp word [edx], 0
jne 0x402ca7
push ecx
push dword [ebx*4 + 0x41d164]
mov ecx, edi
call fcn.00402a40
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [ebp + 8]
jne 0x402c90
push edi
call fcn.004035d6
add esp, 4
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 0x40c702
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.0040bb3c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040baf1
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.0040bb2c
jg 0x40c71e
rol byte [eax - 0x5135b], cl
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
invalid
test esp, ebp
cli

Function at 0x40c831
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
invalid
invalid

Function at 0x40d6d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.0040bb3c
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0040ba9d
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x40daa4
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.0040bb2c
mov al, byte [0xff1d89c1]
mov ch, 0x60
cld
invalid
Function at 0x25810051
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x25810060
pop dword [ebp - 0xc]
mov eax, 0xdc8e41b5
add eax, 0x48f2beab
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xbc402c1f
sub dword [ebp - 0x1c], 0x6dede6d4
mov dword [ebp - 0x18], 0x9600c653
sub dword [ebp - 0x18], 0x63cd7a0e
mov dword [ebp - 0x14], 0x9799c2b4
add dword [ebp - 0x14], 0xb4b2817a
mov dword [ebp - 0x10], 0xff24ab28
add dword [ebp - 0x10], 0xdb54d8
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x833b8a5d
sub dword [ebp - 0x1c], 0xec92107
mov dword [ebp - 0x18], 0xe0f7e646
add dword [ebp - 0x18], 0x60747b2f
mov dword [ebp - 0x14], 0xcf102fc7
sub dword [ebp - 0x14], 0x6ba0c35b
mov dword [ebp - 0x10], 0x9805ef10
add dword [ebp - 0x10], 0x67fa10f0
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3abc1
push 0
call eax
mov ecx, 0xf4164acb
add ecx, 0xbe9fbc7
mov esi, eax
mov edx, 0xc045d49f
add edx, 0x653c0761
add edx, dword [ebp - 0xc]
mov ebx, 0x7e11b3ff
add ebx, 0xe427beb9
add dword [ebp - 8], ecx
mov edi, dword [edx]
add dword [ebp - 4], eax
xor edi, ebx
add dword [ebp - 8], 0x1ed7786a
mov dword [esi], edi
xor dword [ebp - 4], 0x3892852d
add esi, 0xb1949aba
add esi, 0x4e6b654a
add edx, 4
loop 0x25810178
add eax, 0x21558818
add eax, 0xdeab8503
mov ebx, eax
add eax, 5
mov ecx, 0x25800000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x427230
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x427258
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427267
mov eax, 1
ret 4

Function at 0x427ee0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x433158]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4284f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x428533
cmp eax, 0x40
je 0x428525
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x428578
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10007faf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10007fbe
pop dword [ebp - 0x50]
mov eax, 0x10007fbe
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x7462ba29
sub dword [ebp - 0x60], 0x261074de
mov dword [ebp - 0x5c], 0xcdbf2543
add dword [ebp - 0x5c], 0x64742702
mov dword [ebp - 0x58], 0x2a8df52a
add dword [ebp - 0x58], 0x21be4f04
mov dword [ebp - 0x54], 0xa4cc06a5
add dword [ebp - 0x54], 0x5b33f95b
lea eax, [ebp - 0x60]
push eax
mov eax, 0x913ac807
sub eax, 0x81390787
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x1b8dc95a
sub dword [ebp - 0x60], 0xa71b6004
mov dword [ebp - 0x5c], 0x5f53d41
add dword [ebp - 0x5c], 0x3b772434
mov dword [ebp - 0x58], 0x5e499a79
sub dword [ebp - 0x58], 0xfada2e0d
mov dword [ebp - 0x54], 0x2be9d491
sub dword [ebp - 0x54], 0x2be9d491
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x97601cf1
add eax, 0x78a1a30f
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3e503
push 0
call eax
mov ecx, 0x8b03cd77
sub ecx, 0x8b036a33
xor esi, esi
add esi, eax
mov edx, 0x10026800
add edx, dword [ebp - 0x50]
mov edi, 0x29cacb0d
sub edi, 0xf4719e26
add dword [ebp - 0x28], 0x58b14dff
mov ebx, dword [edx]
mov dword [ebp - 0x2c], 0x6a3a7d9c
sub ebx, edi
add dword [ebp - 0x28], eax
mov dword [esi], ebx
xor dword [ebp - 0x34], 0xa98aa210
add esi, 0xe8c0dcf9
add esi, 0x173f230b
add edx, 0x4c8bbf8
sub edx, 0x4c8bbf4
loop 0x100080d7
add eax, 0x17fe3
mov ebx, eax
add eax, 0x694de2f7
add eax, 0x96b21d0e
mov ecx, 0x3398a098
add ecx, 0xdc675f68
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x10008fc4
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x1000
mov dword [esp + 0x14], ebp
call sub.glib_lite.dll_Ordinal_406
mov esi, dword [esp + 0x1c]
mov edi, eax
mov ebx, dword [esp + 0x20]
pop ecx
mov dword [ebx], ebp
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x11c]
sbb ecx, dword [esi + 0x114]
add eax, 0xffffffff
adc ecx, 0xffffffff
cmp ecx, ebp
ja 0x1000901f
jb 0x10009011
cmp eax, 0xffe
ja 0x1000901f
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
jmp 0x10009024
mov eax, 0x1000
test edi, edi
je 0x1000909a
push ebp
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [esi + 0x104]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10009093
push sub.glib_lite.dll_Ordinal_109
push edi
push dword [esp + 0x18]
push ebp
push 0x1000
push edi
push ebp
call sub.gstreamer_lite.dll_Ordinal_25
add esp, 0x1c
mov dword [ebx], eax
test eax, eax
je 0x10009072
mov ecx, dword [esi + 0x110]
mov dword [eax + 0x40], ecx
mov ecx, dword [esi + 0x114]
mov dword [eax + 0x44], ecx
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0x110]
push 0
pop edx
adc edx, dword [esi + 0x114]
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], edx
jmp 0x1000909e
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405516
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push 0x20
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4055ee
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push esi
call fcn.004047aa
push 0x3c
xor edx, edx
pop ecx
div ecx
push esi
mov word [ebp - 0xe], dx
call fcn.004047aa
pop ecx
xor edx, edx
pop ecx
push 0x18
pop ecx
div ecx
sub word [ebp - 0x10], dx
cmp word [ebp - 0x10], si
jg 0x40557c
add word [ebp - 0x10], cx
dec word [ebp - 0x12]
push esi
call fcn.004047aa
pop ecx
xor edx, edx
push 0x1c
pop ecx
div ecx
sub word [ebp - 0x12], dx
cmp word [ebp - 0x12], si
jg 0x4055a6
push esi
call fcn.004047aa
pop ecx
xor edx, edx
push 3
pop ecx
div ecx
mov word [ebp - 0x12], dx
push esi
call fcn.004047aa
pop ecx
xor edx, edx
push 0xc
pop ecx
div ecx
sub word [ebp - 0x16], dx
cmp word [ebp - 0x16], si
jg 0x4055c6
add word [ebp - 0x16], cx
dec word [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x4055f2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004047aa
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x4937ec
call fcn.004076e0
push esi
push edi
push 0x4936e8
call fcn.004076e0
push esi
push edi
push 0x4935e4
call fcn.004076e0
push esi
push edi
push 0x4934e0
call fcn.004076e0
push esi
push edi
push 0x4933dc
call fcn.004076e0
add esp, 0x40
push 0x40f0d0
push 0x2266
push str.Iiiin
call fcn.00403628
push 0x4938f8
call fcn.00402680
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x493900], edi
mov dword [0x4938f0], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4056b2
cmp dword [ebp - 0x8c], ebx
jne 0x4056b2
mov dword [0x493900], ebx
call fcn.00404a0c
mov esi, 0x7d000
push esi
call fcn.00407f7f
cmp eax, edi
pop ecx
mov dword [0x4933d8], eax
jne 0x4056d0
xor eax, eax
jmp 0x4056f4
push esi
push edi
push eax
call fcn.004076e0
call fcn.004057b2
push ebx
push 0x410e04
call fcn.00403472
push eax
push edi
call fcn.0040543d
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x42ea20], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42ea20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42ea24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42ea28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ea30], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ea2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x42ea20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x42ea2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x42ea30], edi
je 0x40c333
push eax
call ebx
push dword [0x42ea30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
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 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x42ea24]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x42ea28]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42ea20]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b04
test esi, esi
je 0x401b04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ae0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cf0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e14
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401d7e
cmp eax, 4
jne 0x401da0
test esi, esi
je 0x401d92
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401d84
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401ddf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401dd1
cmp ecx, 0x40
je 0x401d92
cmp ecx, 4
je 0x401d92
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cf0
lea esi, [esi]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx