joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c1ec0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x100c1f09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x100c2380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ed550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.100c1f30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.100c1fb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.100c1fb0
lea ecx, [esi + 0xc]
call fcn.100dbbcd
lea ecx, [esi + 0x10]
call fcn.100dbbcd
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100c3540
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100c3540
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100c3540
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100dbc42
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100dbc42
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100c6010
Capabilities:
Create process on windows

Disassembly:
push str.Microsoft_Internet_Explorer
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ecx, dword [esp + 4]
push 1
push 0
push 0
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x100c61c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x100c61cc
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x100c625f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x100c6229
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.100c6270
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x100c61fe
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x100c6290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x100c638d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x100c62e2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x100c630e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.100c6270
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x100c634f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x100c62d1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x100c7370
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x10203914]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x100c7383
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x100c73c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x102039bc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x100c73f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100c73fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x100c73eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x100c7418
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100c741c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x100c740d
xor ecx, ecx
mov eax, 0x10203924
xor ebx, ebx
mov bl, byte [ecx + 0x102039cc]
cmp byte [esp + ebx + 0x14], 0
je 0x100c7447
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x102039e4]
cmp byte [esp + ebx + 0x14], 0
je 0x100c745e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x100c742e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x100c73b7
lea edx, [esp + 0x84]
push edx
call fcn.100c74a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x100de04d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100de085
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100dc09d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100dc075
jmp 0x100de091
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100df743
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100df785
call fcn.100e58e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100df785
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100df77c
xor eax, eax
jmp 0x100df78d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100df793
pop edi
pop esi
pop ebx
ret 4

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 0x1001978
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x1001981
xor eax, eax
jmp 0x10019a1
cmp dword [esp + 0xc], 0
jne 0x1001994
push esi
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [esi + eax*2]
jmp 0x10019a0
push dword [esp + 0xc]
push esi
call dword [sym.imp.ntdll.dll_wcschr]
pop ecx
pop ecx
pop esi
ret 8

Function at 0x1001ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
push 0x47
pop ecx
push 7
xor eax, eax
push 0x40
push eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x11c], 0x11c
mov word [ebp - 4], 0x110
call fcn.01002fae
push edx
push eax
push 0x40
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
pop edi
leave
ret

Function at 0x1001f42
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [edx + 0xc]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
cmp dword [esp + 0x10], 0
rep stosb byte es:[edi], al
pop edi
pop esi
je 0x1001f43
mov eax, dword [edx + 0xc]
mov byte [eax], 1
ret 8
Function at 0x10195a8b
Capabilities:
Packed with generic packer

Disassembly:
push esp
mov byte [esp], 0xed
adc al, al
jmp 0x1019adcc
pushal
pushfd
pushal
lea esp, [esp + 0x44]
call fcn.100f5057
jmp 0x100f873d
lea esp, [esp + 4]
je 0x1019b5d2
test di, ax
stc
pushfd
cmp ebx, 3
call fcn.1019a300
add byte [eax], al
dec ebp
jae 0x10195b1b
popal
inc edx
outsd dx, dword [esi]
js 0x10195af0
inc ecx
add byte [edx + 0x71d72ec2], dl
xchg byte [edi], ch
arpl word [esi + eax*2 + 0x754b9f7d], dx
idiv dword fs:[edi]
mov ebx, 0x735ad685
pop cx
invalid
or ah, cl
mov dh, 0x87
stosd dword es:[edi], eax
fcom qword [edx]
pop edi
jp 0x10195afa
sub ch, dh
or dword [ebp + 0x4c7cabd6], eax
dec eax
or al, bl
or al, 0xe7
lds eax, [esi]
loop 0x10195aee
cmpsb byte [esi], byte es:[edi]
add ecx, dword [esi - 0x2be2b59e]
jge 0x10195aae
push 0xffffffffffffff9f
pop ebp
xchg byte [ebp + ecx*2 + 0x1f], bl
in eax, dx
pop ss
test al, 0x61
xchg dword [esi + 0x28], edi
sal byte [ebx - 0x1b], 0xc1
mov ch, 0xf9
invalid
call 0x1019b5d7
mov word [ecx - 0x72952a01], ss
mov eax, dword [0x8883794a]
shr byte [ebx], 0x61
invalid
call fcn.10195359
lea esp, [esp + 8]
jae 0x10195284
call fcn.1019a221
push 0xe2a55cf4
call fcn.1019ba92
rol byte [0xbb0f6698], 0xf6
Function at 0x402be0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp + 0x18]
mov byte [ebx + 0x10], 0
mov ebx, dword [ebp + 0x18]
mov byte [ebx + 0x11], 0
push 0x11
call sub.USER32.dll_GetKeyState
movsx eax, ax
test eax, eax
jge 0x402c2b
mov byte [ebp - 8], 1
jmp 0x402c2f
mov byte [ebp - 8], 0
mov eax, dword [ebp + 0x18]
mov bl, byte [ebp - 8]
mov byte [eax + 0x12], bl
push 0x10
call sub.USER32.dll_GetKeyState
movsx eax, ax
test eax, eax
jge 0x402c4c
mov byte [ebp - 0xc], 1
jmp 0x402c50
mov byte [ebp - 0xc], 0
mov eax, dword [ebp + 0x18]
mov bl, byte [ebp - 0xc]
mov byte [eax + 0x14], bl
push 0x12
call sub.USER32.dll_GetKeyState
movsx eax, ax
test eax, eax
jge 0x402c6d
mov byte [ebp - 0x10], 1
jmp 0x402c71
mov byte [ebp - 0x10], 0
mov eax, dword [ebp + 0x18]
mov bl, byte [ebp - 0x10]
mov byte [eax + 0x13], bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ebx, [ebp - 0x18]
push ebx
call sub.USER32.dll_GetCursorPos
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x28], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebx + 0x24]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ecx + 0x28]
mov dword [eax + 0x30], ebx
cmp dword [ebp + 0xc], 0x200
jne 0x402cfc
mov ebx, dword [ebp + 0x10]
and ebx, 1
cmp ebx, 0
setne al
mov ebx, dword [ebp + 0x18]
mov byte [ebx + 0x20], al
mov eax, dword [ebp + 0x10]
and eax, 0x10
cmp eax, 0
setne bl
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x21], bl
mov ebx, dword [ebp + 0x10]
and ebx, 2
cmp ebx, 0
setne al
mov ebx, dword [ebp + 0x18]
mov byte [ebx + 0x22], al
jmp 0x402dae
cmp dword [ebp + 0xc], 0x201
je 0x402d17
cmp dword [ebp + 0xc], 0x202
je 0x402d17
cmp dword [ebp + 0xc], 0x203
jne 0x402d23
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x20], 1
jmp 0x402dae
cmp dword [ebp + 0xc], 0x207
je 0x402d3e
cmp dword [ebp + 0xc], 0x208
je 0x402d3e
cmp dword [ebp + 0xc], 0x209
jne 0x402d47
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x21], 1
jmp 0x402dae
cmp dword [ebp + 0xc], 0x204
je 0x402d62
cmp dword [ebp + 0xc], 0x205
je 0x402d62
cmp dword [ebp + 0xc], 0x206
jne 0x402d6b
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x22], 1
jmp 0x402dae
cmp dword [ebp + 0xc], 0x100
je 0x402d7d
cmp dword [ebp + 0xc], 0x101
jne 0x402d88
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov dword [eax + 0x1c], ebx
jmp 0x402dae
cmp dword [ebp + 0xc], 0x102
jne 0x402d9c
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
jmp 0x402dae
cmp dword [ebp + 0xc], 0x233
jne 0x402dae
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov dword [eax + 0x34], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cb10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa4], 0
je 0x40cc46
push dword [ebp + 0xc]
call fcn.00428d50
test eax, eax
je 0x40cc1d
push dword [ebp + 8]
call fcn.00407810
cmp dword [eax + 0x310], 0
je 0x40cc1b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407810
push dword [eax + 0x310]
call fcn.004158a0
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa4]
call fcn.0041b250
test eax, eax
jne 0x40cc1b
lea eax, [ebp - 0x208]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
pop edi
pop eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathW
lea eax, [ebp - 0x410]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
pop edi
pop eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x42c69c
lea eax, [ebp - 0x208]
push eax
call sub.KERNEL32.dll_GetTempFileNameW
push 0xa
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407810
push dword [eax + 0x310]
call fcn.004158a0
push eax
call fcn.00413270
test al, al
jne 0x40cbfa
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa4]
call fcn.0041b1c0
lea eax, [ebp - 0x410]
push eax
call fcn.00414090
jmp 0x40cc46
mov eax, dword [ebp + 8]
push dword [eax + 0xa4]
call fcn.0041b5f0
push 1
push 0x42c00c
push 0x104
mov eax, dword [ebp + 8]
lea ebx, [eax + 0xa8]
push ebx
call fcn.00427dd0
push dword [ebp + 0xc]
push 0x104
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0xa8]
push eax
call fcn.00427c10
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412bd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x412c06
jmp 0x412ca7
push dword [ebp - 0x10]
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x412c24
jmp 0x412ca7
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412c97
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42c650
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412c97
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
shr ebx, 0x10
mov word [ebp - 0x18], bx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 8]
and eax, 0xffff
mov word [ebp - 0x1c], ax
movzx eax, word [ebp - 0x18]
push eax
fild dword [esp]
add esp, 4
movzx eax, word [ebp - 0x1c]
push eax
fild dword [esp]
add esp, 4
fdiv qword [0x42e670]
fxch st(1)
faddp st(1)
fmul qword [0x42e670]
fistp dword [ebp - 4]
push dword [ebp - 0x14]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20c]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
pop edi
pop eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x412fb2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
push dword [ebp - 4]
call sub.ole32.dll_CoTaskMemFree
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.00410c10
add esp, 8
jmp 0x413007
push 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
push 0
push 1
push 0x42c00c
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
call fcn.00426c30
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.00410c70
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00427550
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x413270
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov byte [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x42c830
push 1
push dword [ebp + 0xc]
call fcn.00428cd0
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.00427c80
test eax, eax
sete al
shr eax, 1
sbb eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call fcn.00428a80
cmp dword [ebp - 0x10], 0
je 0x413309
push 0xffffffffffffffff
push 2
push dword [ebp + 0xc]
call fcn.00428d70
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
call fcn.00428450
sub esp, 4
fistp dword [esp]
pop word [ebp - 0x28]
add esp, 2
push dword [ebp - 0x2c]
call fcn.00428a80
movzx eax, word [ebp - 0x28]
and eax, 0xffff
movzx eax, ax
mov dword [ebp - 0x30], eax
push dword [ebp + 0x14]
mov ax, word [ebp - 0x30]
movzx eax, ax
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceW
mov dword [ebp - 8], eax
jmp 0x41331a
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413329
mov byte [ebp - 4], 0
jmp 0x4133be
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x413343
mov byte [ebp - 4], 0
jmp 0x4133be
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x413363
mov byte [ebp - 4], 0
jmp 0x4133be
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41338c
mov byte [ebp - 4], 0
jmp 0x4133be
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
setne bl
mov byte [ebp - 0x24], bl
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_CloseHandle
mov bl, byte [ebp - 0x24]
mov byte [ebp - 4], bl
mov al, byte [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4133d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push 0
push 0
push 0xe
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageW
mov dword [ebp - 4], eax
push 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00427aa0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.00426c30
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00410c70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.00427550
lea eax, [ebp - 0x14]
push eax
call fcn.00410e10
push eax
mov eax, dword [ebp - 4]
inc eax
mov ebx, eax
push ebx
push 0xd
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageW
lea ebx, [ebp - 0x14]
push ebx
call fcn.00410e50
add eax, 0xffffffff
mov ebx, eax
push ebx
lea ebx, [ebp - 0x14]
push ebx
call fcn.00410e10
push eax
call fcn.00428cd0
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.00410c10
add esp, 8
push dword [ebp - 0x24]
call fcn.00428a80
lea eax, [ebp - 0x14]
push eax
call fcn.00410dc0
add esp, 4
jmp 0x41349e
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov byte [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4140a3
jmp 0x4140b4
push dword [ebp + 8]
call sub.KERNEL32.dll_DeleteFileW
cmp eax, 0
setne bl
mov byte [ebp - 4], bl
mov al, byte [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418010
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x254]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x94
rep stosd dword es:[edi], eax
pop edi
pop eax
push dword [ebp + 8]
call fcn.00428d50
test eax, eax
jne 0x418047
jmp 0x4181c0
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_FindFirstFileW
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x41806a
jmp 0x4181c0
push dword [ebp - 0x258]
call sub.KERNEL32.dll_FindClose
mov eax, dword [ebp - 0x254]
and eax, 0x10
cmp eax, 0x10
sete bl
shr ebx, 1
sbb ebx, ebx
mov eax, dword [ebp - 0x254]
and eax, 0x100
cmp eax, 0x100
sete cl
shr ecx, 1
sbb ecx, ecx
or ebx, ecx
je 0x4180a8
jmp 0x4181c0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x268], 0
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x4180fe
jmp 0x4181c0
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x264], 0
je 0x41812f
push dword [ebp - 0x26c]
call sub.KERNEL32.dll_CloseHandle
jmp 0x4181c0
mov dword [ebp - 0x270], 0
push dword [ebp - 0x260]
push 1
call sub.msvcrt.dll_calloc
add esp, 8
mov dword [ebp - 0x270], eax
push 0
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x260]
push dword [ebp - 0x270]
push dword [ebp - 0x26c]
call sub.KERNEL32.dll_ReadFile
mov dword [ebp - 0x25c], eax
push dword [ebp - 0x26c]
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x25c], 0
je 0x4181c0
cmp dword [ebp - 0x270], 0
je 0x4181c0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x260]
push dword [ebp - 0x270]
call fcn.00417cd0
mov dword [ebp - 4], eax
push dword [ebp - 0x270]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0x14