joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a18e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a1e7
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a18e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a19d
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043fe40
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1003a1ee
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10021064
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a28d
add edi, 4
add eax, 2
dec ecx
jne 0x1003a1d3
call 0x1003a23a
loope 0x1003a230
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a28a
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1003a29b
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003a24e
cmp eax, ecx
ja 0x1003a24e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a2d8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a2ce
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10021543
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1003a19d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1003a1e7
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1003a18e
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1003a19d
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1043fe40
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1003a1ee
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10021064
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003a28d
add edi, 4
add eax, 2
dec ecx
jne 0x1003a1d3
call 0x1003a23a
loope 0x1003a230
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1003a28a
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1003a29b
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003a24e
cmp eax, ecx
ja 0x1003a24e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1003a2d8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1003a2ce
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10021543
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40157d
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push edi
xor edi, edi
cmp word [0x410210], di
jne 0x40174c
push ebx
push esi
mov esi, 0x206
push esi
lea eax, [ebp + 0x39a]
push edi
push eax
mov word [ebp + 0x398], di
call fcn.00402780
push esi
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call fcn.00402780
add esp, 0x18
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x398]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040153c
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x80]
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp + 0x190]
push str._s_setup_s
push eax
call fcn.0040124f
add esp, 0x10
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..cfg
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp + 0x190]
push eax
push ebx
mov ebx, 0x410210
push ebx
push 0x40c270
push dword [ebp - 0x80]
push 0x40c260
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [0x410210], di
mov eax, ebx
mov dword [ebp - 0x7c], ebx
je 0x40173f
push 2
pop ebx
cmp word [eax], 0x25
jne 0x401693
cmp word [eax + 2], 0x31
je 0x4016a2
add eax, ebx
cmp word [eax], di
mov dword [ebp - 0x7c], eax
jne 0x401686
jmp 0x40173f
push esi
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.00402780
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
cmp ax, 0x22
jne 0x4016ee
add esi, ebx
movzx eax, word [esi]
cmp ax, di
je 0x40170a
cmp ax, 0x22
je 0x4016df
add esi, ebx
movzx eax, word [esi]
cmp ax, di
jne 0x4016cf
cmp word [esi], di
je 0x40170a
add esi, ebx
cmp word [esi], 0x20
jne 0x40170a
jmp 0x401708
cmp ax, di
je 0x40170a
cmp ax, 0x20
je 0x401703
add esi, ebx
movzx eax, word [esi]
cmp ax, di
jne 0x4016f3
cmp word [esi], di
je 0x40170a
add esi, ebx
mov eax, dword [ebp - 0x7c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add eax, 4
push eax
lea eax, [ebp - 0x78]
push eax
call ebx
cmp word [esi], di
je 0x40172a
push esi
push dword [ebp - 0x7c]
call ebx
jmp 0x401730
mov eax, dword [ebp - 0x7c]
mov word [eax], di
lea eax, [ebp - 0x78]
push eax
push 0x410210
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.0040116c
pop esi
pop ebx
mov ecx, dword [ebp + 0x5a0]
xor ecx, ebp
mov eax, 0x410210
pop edi
call fcn.004026ea
add ebp, 0x5a4
leave
ret
Function at 0x401767
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp + 0x1e0], eax
push ebx
push esi
push edi
call fcn.0040157d
xor esi, esi
cmp word [eax], si
je 0x40179a
call fcn.0040157d
mov edi, eax
jmp 0x40179f
mov edi, 0x40c270
call fcn.0040157d
cmp word [eax], si
mov eax, 0x40c434
jne 0x4017b3
mov eax, 0x40c270
push edi
push eax
call fcn.0040126a
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [ebp - 0x28]
push str.__s_setup_nwsapsetup.exe__s_s
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00402780
add esp, 0x20
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], 5
call fcn.0040126a
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call edi
test eax, eax
jne 0x401883
call fcn.0040157d
cmp word [eax], si
je 0x401832
call fcn.0040157d
mov dword [ebp - 0x2c], eax
jmp 0x401839
mov dword [ebp - 0x2c], 0x40c270
call fcn.0040157d
cmp word [eax], si
mov eax, 0x40c434
jne 0x40184d
mov eax, 0x40c270
push dword [ebp - 0x2c]
push eax
call fcn.0040126a
push eax
lea eax, [ebp - 0x28]
push str.__s_nwsapsetup.exe__s_s
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040126a
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call edi
test eax, eax
je 0x4018a4
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x3c]
call edi
push esi
call fcn.00402a8a
push 0x10
push str.SAPSetup
push str.The_setup_application_was_not_able_to_find_NWSAPSETUP.EXE_in_its_current_folder._Please_make_sure_that_the_required_executable_is_available.
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xb
jmp 0x40189f
Function at 0x401b00
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00401a3f
mov eax, 0x400000
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.00402780
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 0x401b4f
cmp dword [ebp - 0x1c], 5
jb 0x401b67
jmp 0x401b63
cmp dword [ebp - 0x10], 1
jne 0x401b67
cmp dword [ebp - 0x1c], 4
ja 0x401b63
jne 0x401b67
cmp dword [ebp - 0x18], 0
jbe 0x401b67
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40c448
call fcn.004018f2
test eax, eax
jge 0x401b88
mov byte [0x410000], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004026ea
add ebp, 0x78
leave
ret

Function at 0x4026ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f040]
jne 0x4026f4
repz ret
jmp fcn.004065ac
Function at 0x403132
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f058]
je 0x40314d
inc edi
cmp edi, 0x17
jb 0x40313e
cmp edi, 0x17
jae 0x4032cd
push ebp
push 3
call fcn.00408080
cmp eax, 1
pop ecx
je 0x403299
push 3
call fcn.00408080
test eax, eax
pop ecx
jne 0x403181
cmp dword [0x40f020], 1
je 0x403299
cmp ebx, 0xfc
je 0x4032cc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410500
push ebp
call fcn.0040801b
add esp, 0xc
test eax, eax
je 0x4031b7
push esi
push esi
push esi
push esi
push esi
call fcn.0040479f
add esp, 0x14
push 0x104
mov esi, 0x410519
push esi
push 0
mov byte [0x41061d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4031fb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040801b
add esp, 0xc
test eax, eax
je 0x4031fb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040479f
add esp, 0x14
push esi
call fcn.00407f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403240
push esi
call fcn.00407f90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x410814
push 0x40ca64
sub ecx, eax
push ecx
push eax
call fcn.00407edd
add esp, 0x14
test eax, eax
je 0x403240
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040479f
add esp, 0x14
jmp 0x403242
xor esi, esi
push 0x40ca60
push ebx
push ebp
call fcn.00407e6c
add esp, 0xc
test eax, eax
je 0x403262
push esi
push esi
push esi
push esi
push esi
call fcn.0040479f
add esp, 0x14
push dword [edi*8 + 0x40f05c]
push ebx
push ebp
call fcn.00407e6c
add esp, 0xc
test eax, eax
je 0x403284
push esi
push esi
push esi
push esi
push esi
call fcn.0040479f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407caf
add esp, 0xc
jmp 0x4032cc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4032cc
cmp ebp, 0xffffffff
je 0x4032cc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f05c]
push dword [esi]
call fcn.00407f90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407caf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403cf7
xor ebx, ebx
cmp dword [0x410f00], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x407d85
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407e65
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x407e65
push eax
call fcn.00403c89
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410f00], eax
call esi
push eax
call fcn.00403c89
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410f04], eax
call esi
push eax
call fcn.00403c89
mov dword [0x410f08], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004028a3
test eax, eax
pop ecx
pop ecx
je 0x407d53
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040479f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x407d85
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403c89
cmp eax, ebx
pop ecx
mov dword [0x410f10], eax
je 0x407d85
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403c89
pop ecx
mov dword [0x410f0c], eax
mov eax, dword [0x410f0c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x407e0a
cmp dword [0x410f10], ecx
je 0x407e0a
push eax
call fcn.00403d00
push dword [0x410f10]
mov esi, eax
call fcn.00403d00
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x407e0a
cmp edi, ebx
je 0x407e0a
call esi
cmp eax, ebx
je 0x407dd7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407dd7
test byte [ebp - 0x18], 1
jne 0x407e0a
lea eax, [ebp - 0x10]
push eax
call fcn.004028da
test eax, eax
pop ecx
je 0x407df2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040479f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x407e01
or dword [ebp + 0x10], 0x200000
jmp 0x407e45
or dword [ebp + 0x10], 0x40000
jmp 0x407e45
mov eax, dword [0x410f04]
cmp eax, dword [ebp - 8]
je 0x407e45
push eax
call fcn.00403d00
cmp eax, ebx
pop ecx
je 0x407e45
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407e45
mov eax, dword [0x410f08]
cmp eax, dword [ebp - 8]
je 0x407e45
push eax
call fcn.00403d00
cmp eax, ebx
pop ecx
je 0x407e45
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410f00]
call fcn.00403d00
cmp eax, ebx
pop ecx
je 0x407e65
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407e67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407840
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x470acb
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.004656de
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4078c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463407
mov eax, dword [eax]
push 0x9f01e0
push eax
call fcn.00456304
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00465969
test bl, bl
je 0x4078c2
push 0x9f01e0
lea ecx, [esp + 0xc]
call fcn.00465cf9
push 0x9f3d38
lea ecx, [esp + 0xc]
call fcn.00465cf9
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 0x4078fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00465969
jmp 0x4079c9
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 0x407982
lea edx, [esp + 0x7c]
push 0x9f3d34
push edx
call fcn.00456304
add esp, 8
test eax, eax
je 0x407982
lea eax, [esp + 0x7c]
push 0x9f3d30
push eax
call fcn.00456304
add esp, 8
test eax, eax
je 0x407982
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 0x407912
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.00465969
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 0x4081c0
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 0x408222
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 0x408230
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x470b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x9ffae8]
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 0x408368
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408296
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465969
xor eax, eax
jmp 0x4083df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00465aa6
push esi
lea ecx, [esp + 0xc]
call fcn.00465d35
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 0x4083bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004081c0
test eax, eax
jne 0x4083bd
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 accept
mov ecx, edi
call fcn.004081c0
test eax, eax
jne 0x4083bd
lea eax, [esp + 0x14]
push 0x9f3d4c
push eax
call fcn.00457340
mov esi, eax
add esp, 8
test esi, esi
jne 0x40839c
lea ecx, [esp + 0x14]
push 0x9f3d48
push ecx
call fcn.004572c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40839c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40839f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00465a56
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4082ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465969
xor eax, eax
jmp 0x4083df
mov byte [esi], 0
push 0x9f3d44
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.00465969
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 0x418a30
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 0x418a9e
cmp si, 0x69
ja 0x418a9e
add esi, 0xffd0
cmp si, 0x11
je 0x418a6e
push 0x11
call edi
test ax, ax
jge 0x418a6e
or esi, 0x2000
cmp si, 0x10
je 0x418a83
push 0x10
call edi
test ax, ax
jge 0x418a83
or esi, 0x4000
cmp si, 0x12
je 0x418a98
push 0x12
call edi
test ax, ax
jge 0x418a98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x418aab
mov esi, 0xbd
jmp 0x418a5f
cmp si, 0x6e
jne 0x418ab8
mov esi, 0xbe
jmp 0x418a5f
cmp si, 0x6f
jne 0x418a59
mov esi, 0xbf
jmp 0x418a5f

Function at 0x41a110
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xa10138]
xor edx, edx
cmp eax, edx
jne 0x41a136
xor eax, eax
mov byte [eax + 0xa10038], al
inc eax
cmp eax, 0x100
jl 0x41a11e
mov dword [0xa10138], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xa10038
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a1c7
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 0x41a19a
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 0x41a168
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a240
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 0x41a293
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 0x41a27a
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