joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100179a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x100179e7
call fcn.10018d51
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100179e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10017a03
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001751a
mov esi, eax
test edi, edi
je 0x10017a01
test ebx, ebx
je 0x10017a01
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100184dd
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1004d2bc
call fcn.10039aa4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10018502
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10018548
lea ecx, [ebp - 0x10]
call fcn.100032a0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10018152
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100108f0
mov eax, esi
call fcn.10039b7c
ret 8

Function at 0x1001c069
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x1001c08d
cmp dword [edi + 0x54], 0
jne 0x1001c08d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10018d51
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1001c02a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100243de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.10018d51
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x1002440b
xor eax, eax
jmp 0x100244b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x10024404
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10024404
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10010b20
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x10024462
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x10024451
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.10023144
push edi
mov ebx, eax
call fcn.10010b4f
pop ecx
test ebx, ebx
je 0x100244a4
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.100237f3
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.100238a7
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x1002ff6b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x1004d299
call fcn.10039aa4
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10003300
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1002ffcd
call fcn.10018602
cmp eax, 1
jne 0x1002ffcd
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1000b850
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10004b40
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100108f0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100108f0
mov eax, esi
call fcn.10039b7c
ret 0x10

Function at 0x1002fff6
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x1004d299
call fcn.10039aa4
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10003300
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x10030058
call fcn.10018602
cmp eax, 1
jne 0x10030058
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1000b850
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10004b40
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100108f0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100108f0
mov eax, esi
call fcn.10039b7c
ret 0x14
Function at 0x10037761
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100851a8]
jne 0x1003776b
repz ret
jmp fcn.1003df8c

Function at 0x10045dde
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1003d8d1
and dword [ebp - 4], 0
cmp dword [0x10089004], 0
mov ebx, eax
jne 0x10045e8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10045f40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10056310
push edi
call esi
test eax, eax
je 0x10045f40
push eax
call fcn.1003d85f
mov dword [esp], 0x10056300
push edi
mov dword [0x10089004], eax
call esi
push eax
call fcn.1003d85f
mov dword [esp], 0x100562ec
push edi
mov dword [0x10089008], eax
call esi
push eax
call fcn.1003d85f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1008900c], eax
call esi
push eax
call fcn.1003d85f
pop ecx
mov dword [0x10089014], eax
test eax, eax
je 0x10045e8f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003d85f
pop ecx
mov dword [0x10089010], eax
mov eax, dword [0x10089010]
cmp eax, ebx
je 0x10045ee7
cmp dword [0x10089014], ebx
je 0x10045ee7
push eax
call fcn.1003d8da
push dword [0x10089014]
mov esi, eax
call fcn.1003d8da
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10045ee7
test edi, edi
je 0x10045ee7
call esi
test eax, eax
je 0x10045ede
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10045ede
test byte [ebp - 0xc], 1
jne 0x10045ee7
or dword [ebp + 0x10], 0x200000
jmp 0x10045f20
mov eax, dword [0x10089008]
cmp eax, ebx
je 0x10045f20
push eax
call fcn.1003d8da
pop ecx
test eax, eax
je 0x10045f20
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10045f20
mov eax, dword [0x1008900c]
cmp eax, ebx
je 0x10045f20
push eax
call fcn.1003d8da
pop ecx
test eax, eax
je 0x10045f20
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10089004]
call fcn.1003d8da
pop ecx
test eax, eax
je 0x10045f40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10045f42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4063a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d8c], 0
push esi
jne 0x4063db
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4063b5
mov dword [ecx*4 + 0x426d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4063b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40640c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d88]
xor eax, esi
inc ecx
dec edx
jne 0x4063ee
pop edi
not eax
pop esi
ret 0xc

Function at 0x467000
Capabilities:
Accept command line arguments
Copy file
Create directory
Delete file
Get common file path
Get file system object information
Packed with generic packer
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
pushal
push 0x467031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x46703a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x467047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.0040335a
Function at 0x40121e
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
sub esp, 0x120
push ebx
push edi
push str._id
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4012ee
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [section.bss], eax
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [section.bss]
lea ecx, [esp + 0x28]
add eax, ecx
push str._u.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.0040143a
add esp, 0x10
test eax, eax
je 0x4012ee
push ebp
xor ebp, ebp
mov dword [esp + 0x18], 4
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0x403000
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004024cf
mov esi, eax
cmp dword [esp + 0x10], ebp
je 0x4012d7
push dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cmp esi, eax
pop esi
pop ebp
jne 0x4012ee
mov ecx, dword [esp + 0x1c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
jmp 0x4012f0
xor eax, eax
pop edi
pop ebx
add esp, 0x120
ret

Function at 0x4012f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040121e
test eax, eax
je 0x401335
mov ecx, dword [ebp - 8]
cmp dword [ecx + 5], 0
je 0x4013cd
cmp dword [ecx + 1], 0
je 0x4013cd
mov edx, dword [ebp - 4]
call section..text
jmp 0x4013cd
push edi
xor edx, edx
mov edi, 0x204
mov cl, byte [edx*2 + 0x404100]
mov al, byte [edx*2 + str.A_r0]
and cl, 0xf0
shr al, 4
or cl, al
xor cl, dl
mov byte [ebp + edx - 0x20c], cl
inc edx
cmp edx, edi
jb 0x40133d
mov ecx, dword [ebp - 0x20c]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x208]
call fcn.00402395
pop ecx
pop ecx
test eax, eax
je 0x4013cc
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 4], 0x400
jb 0x4013cc
push 0xea60
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 4]
push 0
call fcn.004011e0
pop ecx
test edi, edi
je 0x4013cc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi
Function at 0x401050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x408910
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov eax, dword [edi + 0x3c]
push 0x28e
push 0
mov esi, dword [eax + edi + 0x78]
add esi, edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x408955
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x408982
push 0
push 0
push 0x41
push 0
call ebx
jmp 0x408982
push 0
push 0
push 0
push 0
push 0xf
push 0x311
push 0x36c
push 0x43
push 0x800000
push str.t6786tgdgfdfgdhgfhgd
push str.csfdghsfghdqf
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
add ecx, edi
add eax, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x24]
add ecx, edi
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x4089cc
mov ebp, eax
mov eax, dword [ebp]
mov ecx, dword [0x410c70]
add eax, edi
push ecx
push eax
call fcn.004013c0
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ecx
je 0x4089d4
mov eax, dword [esi + 0x18]
inc ebx
add ebp, 4
cmp ebx, eax
jb 0x4089a4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [eax + ebx*2]
mov eax, dword [ecx + edx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4010b9
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x402920
push 0xffffffffffffffff
push 0x40c4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x5c]
xor ebx, ebx
mov dword [esp + 0x1c], eax
xor ebp, ebp
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x402afa
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x402aa3
push 0x72
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, 0x80000000
je 0x40298c
mov dword [esp + 0x10], 0x72
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::HitTest
mov ecx, dword [esi + 0x94]
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x402a39
test ah, 1
mov dword [esi + 0x94], eax
je 0x4029dc
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0x100
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x8c], 1
jmp 0x402a39
test ah, 2
je 0x4029ff
mov eax, dword [esi + 0x20]
push ebx
push 0x64
push 0x200
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x90], 1
jmp 0x402a39
mov eax, dword [esi + 0x8c]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
cmp eax, ebx
je 0x402a20
mov ecx, dword [esi + 0x20]
push 0x100
push ecx
call edi
mov dword [esi + 0x8c], ebx
cmp dword [esi + 0x90], ebx
je 0x402a39
mov edx, dword [esi + 0x20]
push 0x200
push edx
call edi
mov dword [esi + 0x90], ebx
mov eax, dword [esi + 0x54]
cmp eax, ebp
je 0x402a51
push eax
push ebp
mov ecx, esi
call fcn.00401154
test eax, eax
jne 0x402a51
cmp ebp, ebx
jne 0x402a7d
cmp dword [esp + 0x10], 0x72
je 0x402a84
mov eax, dword [esi + 0x78]
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040a95a
xor eax, eax
jmp 0x402b0d
cmp dword [esp + 0x10], 0x72
jne 0x402aa3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, 0x80000000
je 0x402a9e
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x5c], ecx
jmp 0x402ae8
mov edx, dword [esi + 0x70]
jmp 0x402ae5
mov al, byte [esp + 0x14]
push 0x11
test al, 0x5e
je 0x402aca
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, 0x80000000
je 0x402ac5
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x5c], ecx
jmp 0x402ae8
mov edx, dword [esi + 0x68]
jmp 0x402ae5
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, 0x80000000
je 0x402ae2
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x5c], ecx
jmp 0x402ae8
mov edx, dword [esi + 0x74]
mov dword [esi + 0x5c], edx
mov esi, dword [esi + 0x5c]
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x402afa
push esi
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040a95a
mov eax, ebp
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40114a
Capabilities:
Write file on windows

Disassembly:
jmp 0x4054e0
push 0xffffffffffffffff
push 0x40c648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
xor ebx, ebx
push 0x4109e4
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x405537
lea ecx, [esp + 0x2c]
push 0x40f200
push ecx
mov dword [esp + 0x34], ebx
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 2
lea edi, [edx + 4]
push 1
push edi
call ebp
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x10
je 0x40556d
lea eax, [esp + 0x2c]
push 0x40f200
push eax
mov dword [esp + 0x34], 5
call sub.MSVCRT.dll__CxxThrowException
cmp word [edi], bx
mov dword [esp + 0x10], ebx
jb 0x405620
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push esi
push 2
mov edx, dword [ecx + 8]
push 1
add edi, edx
push edi
call ebp
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
jne 0x405648
push esi
lea ebx, [edi + 2]
push 2
push 1
push ebx
call ebp
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
jne 0x40565f
mov ax, word [ebx]
test ax, ax
jbe 0x4055df
mov edx, dword [edi + 0xc]
push esi
and eax, 0xffff
push 1
push eax
push edx
call ebp
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
jne 0x405676
push esi
push 4
add edi, 8
push 1
push edi
call ebp
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
jne 0x40568d
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, 0x10
mov dword [esp + 0x28], edx
add ecx, 4
xor edx, edx
inc eax
mov dx, word [ecx]
mov dword [esp + 0x10], eax
cmp eax, edx
jle 0x40557e
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
je 0x4056a4
lea eax, [esp + 0x2c]
push 0x40f200
push eax
mov dword [esp + 0x34], 6
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0x2c]
push 0x40f200
push edx
mov dword [esp + 0x34], 5
call sub.MSVCRT.dll__CxxThrowException
lea eax, [esp + 0x2c]
push 0x40f200
push eax
mov dword [esp + 0x34], 5
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x2c]
push 0x40f200
push ecx
mov dword [esp + 0x34], 5
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0x2c]
push 0x40f200
push edx
mov dword [esp + 0x34], 5
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040a95a
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x401163
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
jmp 0x408a30
sub esp, 0x204
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
xor esi, esi
xor ecx, ecx
mov eax, ecx
mov byte [esp + ecx + 0x14], cl
cdq
idiv edi
inc ecx
cmp ecx, 0x100
mov al, byte [edx + ebx]
mov byte [esp + ecx + 0x113], al
jl 0x408a4c
xor eax, eax
xor ecx, ecx
xor edx, edx
mov cl, byte [esp + eax + 0x114]
mov dl, byte [esp + eax + 0x14]
add esi, ecx
add esi, edx
and esi, 0x800000ff
jns 0x408a8d
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + eax + 0x14]
mov cl, byte [esp + esi + 0x14]
mov byte [esp + esi + 0x14], dl
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x100
jl 0x408a6a
mov ebp, dword [esp + 0x21c]
xor esi, esi
test ebp, ebp
jle 0x408b2e
mov ecx, dword [esp + 0x228]
mov edi, dword [esp + 0x218]
sub edi, ecx
inc eax
and eax, 0x800000ff
jns 0x408ad1
dec eax
or eax, 0xffffff00
inc eax
xor edx, edx
mov dl, byte [esp + eax + 0x14]
add esi, edx
and esi, 0x800000ff
jns 0x408ae9
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esp + esi + 0x14]
mov bl, byte [esp + eax + 0x14]
mov byte [esp + 0x10], dl
mov byte [esp + esi + 0x14], bl
mov ebx, dword [esp + 0x10]
mov byte [esp + eax + 0x14], dl
xor edx, edx
and ebx, 0xff
mov dl, byte [esp + esi + 0x14]
add edx, ebx
and edx, 0x800000ff
jns 0x408b1f
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [esp + edx + 0x14]
mov bl, byte [edi + ecx]
xor dl, bl
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x408ac2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x4011ae
Capabilities:
Set current directory

Disassembly:
jmp 0x4065d0
push 0xffffffffffffffff
push 0x40c710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [esp], ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFileFind::CFileFind
mov al, byte [0x41103c]
mov dword [esp + 0x28], 0
test al, 1
jne 0x406628
mov dl, al
mov ecx, 0x411038
or dl, 1
mov byte [0x41103c], dl
call sub.MFC42.DLL_CString::CString
push 0x406780
call fcn.0040aea8
add esp, 4
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4066f6
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x3c]
mov ebp, eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
mov ecx, 0x411038
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0040a95a
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [edx + 0x40]
test eax, eax
je 0x4066eb
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4066eb
mov eax, dword [esp + 0x10]
push 2
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
jne 0x4066eb
mov eax, dword [esi + 8]
push 0x411038
push 1
push eax
mov ecx, esi
call fcn.00401208
mov ecx, dword [0x411038]
push ecx
call edi
mov ecx, dword [esp + 0xc]
push 0
push esi
push 0
call fcn.004011ae
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4066eb
push 0x410b8c
call edi
test ebp, ebp
jne 0x40664d
pop edi
pop esi
pop ebp
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040a97e
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x40136b
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
jmp 0x407900
mov eax, dword [ecx + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407938
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 4

Function at 0x40138e
Capabilities:
Get common file path

Disassembly:
jmp 0x4092d0
push 0xffffffffffffffff
push 0x40c943
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CDocument::CDocument
lea ecx, [ebx + 0x54]
mov dword [esp + 0x1c], 0
call fcn.0040102d
lea ecx, [ebx + 0x60]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ebp, [ebx + 0x66]
mov dword [ebx], 0x40ea60
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, str.Examples
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x410dcc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret