joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x40d22d
mov al, byte [esp + 0x14]
test al, al
je 0x40d22d
cmp al, 0x20
je 0x40d225
cmp al, 9
jne 0x40d270
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40d21d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x40d263
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x40d263
test ebx, ebx
je 0x40d263
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x40d263
push ebx
push edx
push esi
call dword [0x422070]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.004122f5
add esp, 8
test eax, eax
jne 0x40d333
cmp byte [esp + 0x14], 0x5c
je 0x40d333
test ebx, ebx
je 0x40d263
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40d263
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x40d263
push 0x5c
push ebx
call fcn.0041238c
add esp, 8
test eax, eax
jne 0x40d2c6
push 0x2f
push ebx
call fcn.0041238c
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x40d30a
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x40d2eb
cmp ebp, esi
jle 0x40d2eb
push esi
push ebx
push ebp
push edi
call dword [0x42206c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.0040d710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.0040d660
test eax, eax
je 0x40d323
push ebx
push ebp
push edi
call dword [0x422070]
add esp, 0xc
push 0x4223c4
push ebp
push edi
mov ecx, esi
call fcn.0040d710
jmp 0x40d2ef
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040d1c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x40fb50
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4f9c
call fcn.00411b90
push ebx
push ebp
push esi
xor ebx, ebx
push str.Configinfo.ini
push ebx
push str.HXLogLevel
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, dword [0x4225fc]
mov ebp, 0x41f26c
push ebx
lea ecx, [esp + 0x10]
mov dword [0x422060], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.0040fd60
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40fbba
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0x20]
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x40fbf9
mov edx, dword [ecx]
push ebx
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40fbf9
mov eax, dword [ecx]
push str.QQCFSelWorld
call dword [eax + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x28]
test eax, eax
jne 0x40fbf9
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
cmp ecx, ebx
je 0x40fbeb
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4f9c
ret 0x10
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdiplusStartup
lea ecx, [esp + 0x48]
call fcn.00401390
mov ecx, dword [esp + 0x4fb4]
push 0x3ff
lea edx, [esp + 0x74]
lea eax, [esp + 0x4c]
push ecx
push edx
mov dword [0x424164], eax
call fcn.00411ec0
add esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + 0x46f], bl
call fcn.00401810
lea ecx, [esp + 0x48]
call fcn.00401a80
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x40fc70
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
rep stosd dword es:[edi], eax
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x40fcd8
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
call edi
test eax, eax
jne 0x40fcc5
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea edx, [esp + 0x24]
push ebx
push edx
call esi
test eax, eax
jne 0x40fca2
mov ebp, 0x41f26c
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebx
je 0x40fce6
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.00401670
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
cmp ecx, ebx
je 0x40fd05
mov edx, dword [ecx]
push ebx
call dword [edx + 8]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x4f9c
ret 0x10
Function at 0x40ffb0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x422064]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x410330
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
mov ecx, dword [esp + 0x420]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
xor edi, edi
xor esi, esi
lea edx, [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x4103b6
cmp al, 0x20
je 0x4103a7
cmp al, 9
je 0x4103a7
test edi, edi
jne 0x4103ae
mov edi, 1
mov edx, ecx
jmp 0x4103ae
cmp edi, 1
jne 0x4103ae
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x410392
mov ebx, dword [esp + 0x420]
test edx, edx
mov byte [ebx], 0
je 0x410425
test esi, esi
jne 0x4103ff
test ebx, ebx
je 0x410425
mov esi, dword [esp + 0x424]
test esi, esi
jle 0x410425
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x410425
push edx
push esi
push ebx
call dword [0x422070]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
sub esi, edx
test ebx, ebx
je 0x410425
test esi, esi
jle 0x410425
mov eax, dword [esp + 0x424]
cmp eax, esi
jle 0x410425
push esi
push edx
push eax
push ebx
call dword [0x42206c]
add esp, 0x10
mov byte [esi + ebx], 0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
Function at 0x410440
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x4104ad
mov al, byte [esp + 0x14]
test al, al
je 0x4104ad
cmp al, 0x20
je 0x4104a5
cmp al, 9
jne 0x4104f0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41049d
mov esi, dword [esp + 0x120]
test esi, esi
je 0x4104e3
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x4104e3
test ebx, ebx
je 0x4104e3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x4104e3
push ebx
push edx
push esi
call dword [0x422070]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call fcn.004122f5
add esp, 8
test eax, eax
jne 0x4105b3
cmp byte [esp + 0x14], 0x5c
je 0x4105b3
test ebx, ebx
je 0x4104e3
mov edi, dword [esp + 0x120]
test edi, edi
je 0x4104e3
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x4104e3
push 0x5c
push ebx
call fcn.0041238c
add esp, 8
test eax, eax
jne 0x410546
push 0x2f
push ebx
call fcn.0041238c
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x41058a
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x41056b
cmp ebp, esi
jle 0x41056b
push esi
push ebx
push ebp
push edi
call dword [0x42206c]
add esp, 0x10
mov byte [esi + edi], 0
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
mov ecx, esi
call fcn.00410850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
push ebp
push ebx
mov ecx, esi
call fcn.004107a0
test eax, eax
je 0x4105a3
push ebx
push ebp
push edi
call dword [0x422070]
add esp, 0xc
push 0x4223c4
push ebp
push edi
mov ecx, esi
call fcn.00410850
jmp 0x41056f
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00410440
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x4174b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423040
cmp edx, dword [eax]
je 0x4174db
add eax, 8
inc ecx
cmp eax, 0x4230d0
jl 0x4174cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423040]
jne 0x417609
mov eax, dword [0x4242e0]
cmp eax, 1
je 0x4175e3
test eax, eax
jne 0x41750c
cmp dword [0x4226b4], 1
je 0x4175e3
cmp edx, 0xfc
je 0x417609
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417543
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004185a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417586
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f744
push edi
call fcn.00411ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004185a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004185b0
lea eax, [ebp - 0xa0]
push 0x41f724
push eax
call fcn.004185b0
push dword [esi + 0x423044]
lea eax, [ebp - 0xa0]
push eax
call fcn.004185b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419d42
add esp, 0x2c
pop edi
jmp 0x417609
lea eax, [ebp + 8]
lea esi, [esi + 0x423044]
push 0
push eax
push dword [esi]
call fcn.00412800
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]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x300
push esi
mov esi, dword [esp + 0x318]
push edi
mov edi, dword [esp + 0x314]
push esi
push eax
push edi
call fcn.00401cd5
add esp, 0xc
cmp eax, esi
je 0x40106e
push edi
call fcn.00401c22
mov ecx, dword [esp + 0x314]
lea edx, [esp + 0xc]
push ecx
push str.Unable_to_read_from__s.
push edx
call fcn.00401bd0
mov ecx, dword [esp + 0x31c]
add esp, 0x10
lea eax, [esp + 8]
push 0x10
push str.Error
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x300
ret
pop edi
mov eax, 1
pop esi
add esp, 0x300
ret

Function at 0x4054c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a4f0
cmp edx, dword [eax]
je 0x4054eb
add eax, 8
inc ecx
cmp eax, 0x40a580
jl 0x4054dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a4f0]
jne 0x405619
mov eax, dword [0x40ac80]
cmp eax, 1
je 0x4055f3
test eax, eax
jne 0x40551c
cmp dword [0x40a2c4], 1
je 0x4055f3
cmp edx, 0xfc
je 0x405619
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405553
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403bd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404840
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405596
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404840
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40949c
push edi
call fcn.00407a00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403bd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403be0
lea eax, [ebp - 0xa0]
push 0x40947c
push eax
call fcn.00403be0
push dword [esi + 0x40a4f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403be0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407975
add esp, 0x2c
pop edi
jmp 0x405619
lea eax, [ebp + 8]
lea esi, [esi + 0x40a4f4]
push 0
push eax
push dword [esi]
call fcn.00404840
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]
pop esi
leave
ret
Function at 0x401c98
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401e48
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401d96
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401d39
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401d7c
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401d50
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401d6b
test al, 0x40
je 0x401d62
mov ecx, dword [edi + 0x20]
jmp 0x401d69
test al, 0x80
je 0x401d7c
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401d7c
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401d08
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40b860
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f54b
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.00463c50
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b8e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004619fd
mov eax, dword [eax]
push 0x4ac1d0
push eax
call fcn.00453e94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463edb
test bl, bl
je 0x40b8e2
push 0x4ac1d0
lea ecx, [esp + 0xc]
call fcn.0046426b
push 0x4afd4c
lea ecx, [esp + 0xc]
call fcn.0046426b
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 0x40b91e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463edb
jmp 0x40b9e9
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 0x40b9a2
lea edx, [esp + 0x7c]
push 0x4afd48
push edx
call fcn.00453e94
add esp, 8
test eax, eax
je 0x40b9a2
lea eax, [esp + 0x7c]
push 0x4afd44
push eax
call fcn.00453e94
add esp, 8
test eax, eax
je 0x40b9a2
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 0x40b932
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.00463edb
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 0x40c1e0
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 0x40c242
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 0x40c250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f5cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b69fc]
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 0x40c388
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c2b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463edb
xor eax, eax
jmp 0x40c3ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00464018
push esi
lea ecx, [esp + 0xc]
call fcn.004642a7
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 0x40c3dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.0040c1e0
test eax, eax
jne 0x40c3dd
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.0040c1e0
test eax, eax
jne 0x40c3dd
lea eax, [esp + 0x14]
push 0x4afd60
push eax
call fcn.00454ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3bc
lea ecx, [esp + 0x14]
push 0x4afd5c
push ecx
call fcn.00454e50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c3bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c3bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463fc8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c2ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463edb
xor eax, eax
jmp 0x40c3ff
mov byte [esi], 0
push 0x4afd58
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.00463edb
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 0x41dc30
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 0x41dc9e
cmp si, 0x69
ja 0x41dc9e
add esi, 0xffd0
cmp si, 0x11
je 0x41dc6e
push 0x11
call edi
test ax, ax
jge 0x41dc6e
or esi, 0x2000
cmp si, 0x10
je 0x41dc83
push 0x10
call edi
test ax, ax
jge 0x41dc83
or esi, 0x4000
cmp si, 0x12
je 0x41dc98
push 0x12
call edi
test ax, ax
jge 0x41dc98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41dcab
mov esi, 0xbd
jmp 0x41dc5f
cmp si, 0x6e
jne 0x41dcb8
mov esi, 0xbe
jmp 0x41dc5f
cmp si, 0x6f
jne 0x41dc59
mov esi, 0xbf
jmp 0x41dc5f

Function at 0x41f350
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c70f8]
xor edx, edx
cmp eax, edx
jne 0x41f376
xor eax, eax
mov byte [eax + 0x4c6ff8], al
inc eax
cmp eax, 0x100
jl 0x41f35e
mov dword [0x4c70f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c6ff8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41f407
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 0x41f3da
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 0x41f3a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41f480
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 0x41f4d3
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 0x41f4ba
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