joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30291381
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x303328c0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x302913b2
xor eax, eax
jmp 0x3029153b
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x30408a40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x302913ee
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.30292324
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x302914c9
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x30291507
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x30291452
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x30291443
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x30291423
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30291492
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x3029149b
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x30291414
jmp 0x3029149d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x30291536
cmp dword [ebp - 0x6c], edi
je 0x30291507
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x302914fc
call fcn.3028f6d0
mov dword [eax], 9
call fcn.3028f6d9
mov dword [eax], esi
jmp 0x30291531
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x302914f1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x3029149d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x3029149d
push dword [ebp - 0x6c]
call fcn.3028f6e2
pop ecx
jmp 0x30291531
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x3029151f
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x3029151f
xor eax, eax
jmp 0x30291539
call fcn.3028f6d0
mov dword [eax], 0x1c
call fcn.3028f6d9
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x30291539
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.3028e0e3
add ebp, 0x3a0
leave
ret
Function at 0x30291850
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x304077e0], ebx
push esi
push edi
jne 0x302918d0
push 0x302949c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x3029190b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x302fd5cc
push edi
call esi
test eax, eax
mov dword [0x304077e0], eax
je 0x3029190b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x304077e4], eax
call esi
cmp dword [0x304076e4], 2
mov dword [0x304077e8], eax
jne 0x302918d0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x304077f0], eax
je 0x302918d0
push 0x302fd574
push edi
call esi
mov dword [0x304077ec], eax
mov eax, dword [0x304077ec]
test eax, eax
je 0x30291915
call eax
test eax, eax
je 0x302918fc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x304077f0]
test eax, eax
je 0x302918fc
test byte [ebp - 8], 1
jne 0x30291915
cmp dword [0x304076f0], 4
jb 0x3029190f
or byte [ebp + 0x12], 0x20
jmp 0x30291934
xor eax, eax
jmp 0x30291944
or byte [ebp + 0x12], 4
jmp 0x30291934
mov eax, dword [0x304077e4]
test eax, eax
je 0x30291934
call eax
mov ebx, eax
test ebx, ebx
je 0x30291934
mov eax, dword [0x304077e8]
test eax, eax
je 0x30291934
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x304077e0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30291949
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x303328c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x30333270]
je 0x3029197e
inc eax
cmp eax, 0x13
jb 0x3029196f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x30333270]
jne 0x30291aa4
mov eax, dword [0x3040775c]
cmp eax, 1
je 0x30291a7c
cmp eax, edx
jne 0x302919ae
cmp dword [0x30332d0c], 1
je 0x30291a7c
cmp ecx, 0xfc
je 0x30291aa4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x302919e4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.30290aa0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.3028e4a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x30291a18
mov eax, edi
push eax
call fcn.3028e4a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x302fd214
push edi
call fcn.3028d430
add esp, 0x10
push edi
call fcn.3028e4a0
push dword [esi + 0x30333274]
mov ebx, eax
call fcn.3028e4a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.3028d660
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.30290aa0
push edi
push ebx
call fcn.30290ab0
push 0x302fd210
push ebx
call fcn.30290ab0
push dword [esi + 0x30333274]
push ebx
call fcn.30290ab0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.30291850
add esp, 0x2c
jmp 0x30291aa4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x30333274]
push dword [esi]
call fcn.3028e4a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.3028e0e3
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x30292910
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x303328c0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.302928e0
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.3028e100
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x30292972
cmp dword [ebp - 0x1c], 5
jb 0x3029298a
jmp 0x30292986
cmp dword [ebp - 0x10], 1
jne 0x3029298a
cmp dword [ebp - 0x1c], 4
ja 0x30292986
jne 0x3029298a
cmp dword [ebp - 0x18], 0
jbe 0x3029298a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x302fda84
call fcn.300011c0
test eax, eax
jge 0x302929ab
mov byte [0x30333db4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.3028e0e3
add ebp, 0x78
leave
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret
Function at 0x100019d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x100019dd
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x10001a00
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x10001a00
mov eax, ebx
jmp 0x10001a15
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x100019ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret
Function at 0x100254e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009f170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1009467e
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100264a0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10025534
jmp dword [ecx*4 + 0x1002569c]
mov al, byte [esi]
test al, al
je 0x10025562
cmp al, 0x20
je 0x1002554e
cmp al, 0xa1
jne 0x10025562
cmp byte [esi + 1], al
jne 0x10025562
test al, 0x80
je 0x1002555a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10025562
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10025541
test ecx, ecx
je case.default.0x10025534
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10025534
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100255a8
cmp dl, 0xa1
jne 0x1002559c
cmp byte [eax + 1], 0xa1
jne 0x1002559c
test ecx, ecx
jne 0x10025594
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100255bc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100255d6
jmp 0x100255bc
cmp dl, 0x20
jne 0x100255ba
test ecx, ecx
jne 0x100255b3
mov edi, eax
mov ecx, 1
jmp 0x100255bc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002557c
cmp ecx, 1
jne case.default.0x10025534
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10025534
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10025534
mov al, byte [esi]
test al, al
je 0x1002562e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10025614
mov cl, byte [esi + 1]
test cl, cl
je 0x1002562e
cmp al, 0xa1
jne 0x10025604
cmp cl, al
je 0x10025611
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10026730
inc esi
jmp 0x10025626
cmp al, 0x20
je 0x10025626
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10026770
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100255ed
push 0
lea ecx, [esp + 0x14]
call fcn.10026770
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100317d0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10025661
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100a8eb8
call fcn.100266a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10094610
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1002b950
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009f64b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10094385
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1002b9d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10092297
mov eax, dword [eax]
push 0x100bec8c
push eax
call fcn.10085004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10094610
test bl, bl
je 0x1002b9d2
push 0x100bec8c
lea ecx, [esp + 0xc]
call fcn.100949a0
push 0x100bec98
lea ecx, [esp + 0xc]
call fcn.100949a0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1002ba0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10094610
jmp 0x1002bad9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1002ba92
lea edx, [esp + 0x7c]
push 0x100bec94
push edx
call fcn.10085004
add esp, 8
test eax, eax
je 0x1002ba92
lea eax, [esp + 0x7c]
push 0x100bec90
push eax
call fcn.10085004
add esp, 8
test eax, eax
je 0x1002ba92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002ba22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10094610
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1002c2e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1002c342
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x1002c350
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009f6cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100c85ec]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x1002c488
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1002c3b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10094610
xor eax, eax
jmp 0x1002c4ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1009474d
push esi
lea ecx, [esp + 0xc]
call fcn.100949dc
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1002c4dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.1002c2e0
test eax, eax
jne 0x1002c4dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push connect
mov ecx, edi
call fcn.1002c2e0
test eax, eax
jne 0x1002c4dd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.10086080
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002c4bc
lea ecx, [esp + 0x14]
push 0x100beca4
push ecx
call fcn.10086000
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002c4bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002c4bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100946fd
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002c3ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10094610
xor eax, eax
jmp 0x1002c4ff
mov byte [esi], 0
push 0x100beca0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.10094610
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x1003d820
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x1003d88e
cmp si, 0x69
ja 0x1003d88e
add esi, 0xffd0
cmp si, 0x11
je 0x1003d85e
push 0x11
call edi
test ax, ax
jge 0x1003d85e
or esi, 0x2000
cmp si, 0x10
je 0x1003d873
push 0x10
call edi
test ax, ax
jge 0x1003d873
or esi, 0x4000
cmp si, 0x12
je 0x1003d888
push 0x12
call edi
test ax, ax
jge 0x1003d888
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1003d89b
mov esi, 0xbd
jmp 0x1003d84f
cmp si, 0x6e
jne 0x1003d8a8
mov esi, 0xbe
jmp 0x1003d84f
cmp si, 0x6f
jne 0x1003d849
mov esi, 0xbf
jmp 0x1003d84f

Function at 0x1003f1f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100d8e90]
xor edx, edx
cmp eax, edx
jne 0x1003f216
xor eax, eax
mov byte [eax + 0x100d8d90], al
inc eax
cmp eax, 0x100
jl 0x1003f1fe
mov dword [0x100d8e90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100d8d90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1003f2a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1003f27a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1003f248
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1003f320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1003f373
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1003f35a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret