joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004c30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x10004c7f
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10004c54
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10004c91
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10004ca5
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x10004ceb
xor ecx, ecx
cmp edi, 0x100
jb 0x10004cc8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x100055a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x100055ec
jle 0x100055e7
cmp eax, 3
jg 0x100055e7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x100055de
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x100055cc
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10026534
mov eax, 1
ret 0x10

Function at 0x10005b60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x10005bac
jle 0x10005ba7
cmp eax, 3
jg 0x10005ba7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10005b9e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x10005b8c
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10006a50
mov eax, 1
ret 0x10
Function at 0x10006080
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x124]
sub eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
je 0x100061c2
dec eax
je 0x100060c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esi + 0x20]
push esi
mov edi, ecx
lea eax, [esp + 0x20]
and ecx, 0x1f
mov ebx, 1
push 1
push eax
shr edi, 5
shl ebx, cl
call fcn.10005610
test eax, eax
mov ebp, dword [esp + 0x124]
je 0x10006104
push esi
push 1
push ebp
call fcn.10005610
test eax, eax
je 0x10006104
mov eax, 1
jmp 0x10006106
xor eax, eax
mov ecx, dword [esp + 0x10]
lea edi, [esp + edi*4 + 0x1c]
cmp ecx, 1
mov dword [edi], ebx
je 0x10006177
dec ecx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x10006164
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10005990
test eax, eax
je 0x10006164
push esi
push ebp
push ebp
push ebp
call fcn.10005990
test eax, eax
je 0x10006164
mov ecx, dword [esp + 0x120]
push esi
push ebp
push ebp
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.10005a00
test eax, eax
je 0x10006164
mov eax, 1
jmp 0x10006166
xor eax, eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
xor edx, ebx
dec ecx
mov dword [edi], edx
mov dword [esp + 0x10], ecx
jne 0x1000611a
test eax, eax
je 0x100060b7
lea eax, [esp + 0x1c]
push esi
push eax
push ebp
push ebp
push ebp
call fcn.10005a00
test eax, eax
je 0x100060b7
mov ecx, dword [esp + 0x120]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.10026534
test eax, eax
je 0x100060b7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0xc
xor esi, esi
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x124]
je 0x10006219
mov ebx, dword [esp + 0x120]
mov eax, edx
shr eax, 5
mov ecx, edx
mov ebx, dword [ebx + eax*4]
and ecx, 0x1f
shr ebx, cl
mov ebp, dword [edi + eax*4]
and ebx, 1
xor esi, ebx
mov ebx, esi
not ebx
and ebx, 1
shl ebx, cl
not ebx
and ebx, ebp
mov ebp, esi
and ebp, 1
shl ebp, cl
or ebx, ebp
inc edx
mov dword [edi + eax*4], ebx
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x100061d1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + ebx*4 - 4]
xor eax, eax
test esi, esi
sete al
shl edx, cl
shr edx, cl
mov dword [edi + ebx*4 - 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc

Function at 0x10007440
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
sub eax, 0x182
je 0x10007474
sub eax, 0x64
je 0x10007474
sub eax, 0x64
cmp word [esp + 0x20], 6
jb 0x10007474
push 0xc
call fcn.1000d220
add esp, 0x24
ret
push 4
call fcn.1000d220
add esp, 0x24
ret
Function at 0x1000c770
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub esp, 0x51c
lea edx, [eax + 0x1f]
push ebx
push ebp
lea ebp, [ecx + 0x1f]
push esi
shr edx, 5
shr ebp, 5
cmp edx, ebp
mov ebx, edx
ja 0x1000c795
mov ebx, ebp
mov ecx, dword [esp + 0x53c]
xor esi, esi
xor eax, eax
cmp ecx, esi
setne al
cmp ebx, esi
mov dword [esp + 0xc], eax
je 0x1000c99c
cmp ebx, 0x40
ja 0x1000c99c
lea eax, [esp + 0x324]
mov ecx, ebx
mov dword [eax - 0x204], esi
mov dword [eax], esi
mov dword [eax - 0x104], esi
mov dword [eax + 0x100], esi
add eax, 4
dec ecx
jne 0x1000c7c3
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x52c]
xor ecx, 1
push edi
mov dword [esp + 0x124], ecx
mov ecx, edx
lea edi, [esp + 0x224]
push edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x53c]
lea ecx, [ebp*4]
mov dword [esp + 0x24], ecx
mov eax, ecx
lea edi, [esp + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x534]
push ecx
call fcn.10026534
push ebp
mov edx, dword [esp + 0x53c]
mov dword [esp + 0x328], eax
push edx
call fcn.10026534
xor edx, edx
mov dword [esp + 0x528], eax
mov eax, edx
mov dword [esp + 0x18], edx
shl eax, 7
add eax, edx
shl eax, 2
mov ecx, eax
neg ecx
mov esi, dword [esp + ecx + 0x528]
test esi, esi
je 0x1000c93e
lea esi, [esp + eax + 0x124]
lea ebp, [esp + ecx + 0x328]
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jb 0x1000c930
sub eax, ecx
push ebx
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.1000b030
lea edx, [esi + 0x100]
lea ecx, [esp + 0x24]
mov eax, edx
mov dword [esp + 0x14], ebx
mov ebp, dword [ecx]
add ecx, 4
xor dword [eax], ebp
mov ebp, dword [esp + 0x14]
add eax, 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x1000c8c2
push ebx
push edx
call fcn.10026534
mov dword [esi + 0x200], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c914
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edi
push ebp
call fcn.1000b030
lea ecx, [esp + 0x24]
mov eax, esi
sub ecx, esi
mov edx, ebx
mov edi, dword [ecx + eax]
xor dword [eax], edi
add eax, 4
dec edx
jne 0x1000c907
jmp 0x1000c918
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jae 0x1000c89b
mov edx, dword [esp + 0x18]
mov eax, 1
sub eax, edx
mov edx, eax
jmp 0x1000c854
mov edi, dword [esp + 0x544]
test edi, edi
je 0x1000c95b
mov eax, edx
mov ecx, ebx
shl eax, 7
add eax, edx
lea esi, [esp + eax*4 + 0x224]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c98a
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x540]
mov eax, edx
shl eax, 7
add eax, edx
mov edx, ecx
shr ecx, 2
lea esi, [esp + eax*4 + 0x124]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x51c
ret 0x18
Function at 0x10020655
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x100279c3
call fcn.1002568a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x10020876
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.10026534
add esp, 0x10
test eax, eax
js 0x10020870
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x100206f9
push edi
call fcn.1001a3b8
pop ecx
test al, al
je 0x100206f9
mov eax, edi
call fcn.10025830
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1002070b
push edi
lea ecx, [ebp - 0x424]
call fcn.10026534
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.10026534
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10020870
push 0x60
push ebx
push eax
call fcn.10021bf8
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x10020763
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.10021bf8
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x10020763
call fcn.10015691
mov ebx, eax
jmp 0x1002083f
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1002078a
call fcn.10015691
jmp 0x10020832
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10020780
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x100207bd
mov ebx, 0x8007000e
jmp 0x10020834
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10026534
jmp 0x100207e3
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x100207b6
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.10026534
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.10026534
mov ebx, eax
test edi, edi
je 0x1002083f
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10020858
lea ecx, [ebp - 0x418]
call fcn.1001fe4b
or dword [ebp - 4], 0xffffffff
jmp 0x10020868
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1002085e
mov eax, ebx
jmp 0x100208a4
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1002088b
lea ecx, [ebp - 0x418]
call fcn.1001fe4b
or dword [ebp - 4], 0xffffffff
jmp 0x1002089b
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x10020891
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.100255d7
ret 0x10
Function at 0x10026534
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10026543
pop dword [ebp - 0x40]
mov eax, 0x2d84d24b
sub eax, 0x1d826d08
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x39277
push 0
mov eax, 0x9486470d
sub eax, 0x8483b601
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x6e2dcbce
sub ecx, 0x6e2d89b5
xor ebx, ebx
add ebx, eax
mov esi, 0x10046c00
add esi, dword [ebp - 0x40]
mov edi, 0x53e426c4
mov dword [ebp - 0x14], 0x34506b00
mov edx, dword [esi]
xor dword [ebp - 0x3c], 0x81a77a2
sub edx, edi
sub dword [ebp - 0x30], eax
mov dword [ebx], edx
add dword [ebp - 8], 0x27083678
add ebx, 4
add esi, 4
loop 0x10026598
add eax, 0xd2f381db
add eax, 0x2d0d795c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xed28546b
sub ecx, 0xdd28546b
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4015bc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x4015d2
mov esi, 0x100000
jmp 0x4015de
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_WriteFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x40161b
mov edx, ebx
mov eax, 0x4a65e8
call fcn.00401470
test al, al
jne 0x40161b
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401620
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_WriteFile
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x40166a
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_WriteFile
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x401692
mov edx, ebx
mov eax, 0x4a65e8
call fcn.00401470
test al, al
jne 0x401692
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401750
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x4a65e8]
jmp 0x4017d2
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x4017a4
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x4017ae
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x4017d0
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4017d0
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x4017da
mov esi, dword [esi]
cmp esi, 0x4a65e8
jne 0x401796
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401b68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4a65c0], 0
je 0x401c45
xor edx, edx
push ebp
push 0x401c3e
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4a6049], 0
je 0x401b9a
push 0x4a65c8
call sub.KERNEL32.DLL_lstrcpyA
mov byte [0x4a65c0], 0
mov eax, dword [0x4a6620]
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
mov dword [0x4a6620], eax
mov ebx, dword [0x4a65e8]
jmp 0x401bcd
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
mov ebx, dword [ebx]
cmp ebx, 0x4a65e8
jne 0x401bbb
mov eax, 0x4a65e8
call fcn.00401468
mov eax, 0x4a65f8
call fcn.00401468
mov eax, 0x4a6624
call fcn.00401468
mov eax, dword [0x4a65e0]
test eax, eax
je 0x401c13
mov edx, dword [eax]
mov dword [0x4a65e0], edx
push eax
call sub.KERNEL32.DLL_WinExec
mov eax, dword [0x4a65e0]
test eax, eax
jne 0x401bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401c45
cmp byte [0x4a6049], 0
je 0x401c33
push 0x4a65c8
call sub.KERNEL32.DLL_lstrcpyW
push 0x4a65c8
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret

Function at 0x4028fc
Capabilities:
Resume thread

Disassembly:
call sub.KERNEL32.DLL_ResumeThread
call fcn.004028ec
ret

Function at 0x40291c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_SizeofResource
test ax, ax
jne 0x40292f
call fcn.004028fc
pop ebx
ret

Function at 0x402b9c
Capabilities:
Delete directory

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040499c
test esi, esi
jne 0x402bd2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_SetErrorMode
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a8c
jmp 0x402bf0
call sub.KERNEL32.DLL_RemoveDirectoryA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a50
mov edi, eax
test esi, esi
je 0x402bf0
cmp dword [ebx], 0
je 0x402bf0
dec esi
jmp 0x402bd9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403028
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
movzx edx, word [ebx + 4]
and edx, eax
cmp eax, edx
jne 0x40309a
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 8]
imul esi
push eax
push edi
mov eax, dword [ebx]
push eax
call dword [ebp + 0xc]
test eax, eax
jne 0x40306a
call sub.KERNEL32.DLL_ResumeThread
call fcn.004028ec
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4030a9
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebx + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403086
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
jmp 0x4030a9
cmp esi, dword [ebp - 4]
je 0x4030a9
mov eax, dword [ebp + 8]
call fcn.004028ec
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4030a9
mov eax, 0x67
call fcn.004028ec
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x403298
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
or esi, 0xffffffff
mov ax, word [ebx + 4]
cmp ax, 0xd7b0
jbe 0x4032d2
cmp ax, 0xd7b3
ja 0x4032d2
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
mov esi, eax
cmp esi, 0xffffffff
jne 0x4032c7
call fcn.004028fc
jmp 0x4032dc
mov eax, esi
xor edx, edx
div dword [ebx + 8]
mov esi, eax
jmp 0x4032dc
mov eax, 0x67
call fcn.004028ec
mov eax, esi
pop esi
pop ebx
ret

Function at 0x403304
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a3008], 0x8088405
inc edx
mov dword [ebx + 0x4a3008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403348
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor edx, edx
mov ebx, eax
mov dx, word [eax + 4]
sub edx, 0xd7b0
je 0x403374
cmp edx, 3
ja 0x40340a
call dword [ebx + 0x24]
test eax, eax
je 0x403374
call fcn.004028ec
mov word [ebx + 4], 0xd7b3
mov dword [ebx + 8], esi
mov dword [ebx + 0x24], 0x403320
mov dword [ebx + 0x1c], 0x402d34
cmp byte [ebx + 0x48], 0
je 0x4033f1
mov eax, 0xc0000000
mov dl, byte [0x4a300c]
and edx, 0x70
shr edx, 2
mov edx, dword [edx + 0x4a306c]
mov ecx, 2
sub edi, 3
je 0x4033d3
mov ecx, 3
inc edi
je 0x4033d3
mov eax, 0x40000000
inc edi
mov word [ebx + 4], 0xd7b2
je 0x4033d3
mov eax, 0x80000000
mov word [ebx + 4], 0xd7b1
push 0
push 0x80
push ecx
push 0
push edx
push eax
lea eax, [ebx + 0x48]
push eax
call sub.KERNEL32.DLL_GlobalReAlloc
cmp eax, 0xffffffff
je 0x403411
mov dword [ebx], eax
jmp 0x403421
mov dword [ebx + 0x24], 0x402d34
cmp edi, 3
je 0x403401
push 0xfffffffffffffff6
jmp 0x403403
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4033e8
mov eax, 0x66
jmp 0x40341c
mov word [ebx + 4], 0xd7b0
call sub.KERNEL32.DLL_ResumeThread
call fcn.004028ec
pop edi
pop esi
pop ebx
ret

Function at 0x404abc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
push 0
mov eax, dword [0x4a65bc]
push eax
call sub.KERNEL32.DLL_SuspendThread
pop ebp
ret 4

Function at 0x405d90
Capabilities:
Terminate process

Disassembly:
add esp, 0xffffffe4
push 0x1c
lea edx, [esp + 4]
push edx
push eax
call sub.KERNEL32.DLL_TerminateProcess
cmp dword [esp + 0x10], 0x1000
jne 0x405db0
mov eax, dword [esp + 4]
jmp 0x405db2
xor eax, eax
add esp, 0x1c
ret
Function at 0x405e44
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x405fd8
call sub.KERNEL32.DLL_SetEvent
mov esi, eax
test esi, esi
je 0x405eac
push 0x405fe8
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
mov ebx, eax
test ebx, ebx
je 0x405eac
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405eac
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetThreadContext
jmp 0x405fce
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405eec
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405fce
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00405e30
mov esi, eax
cmp byte [esi], 0
je 0x405fce
lea eax, [esi + 1]
call fcn.00405e30
mov esi, eax
cmp byte [esi], 0
je 0x405fce
jmp 0x405ef2
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_SetThreadContext
jmp 0x405fb1
lea eax, [esi + 1]
call fcn.00405e30
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405fce
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_SetThreadContext
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_ReadFile
mov esi, eax
cmp esi, 0xffffffff
je 0x405fce
push esi
call sub.KERNEL32.DLL_QueryPerformanceFrequency
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetThreadLocale
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405fce
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_SetThreadContext
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetThreadLocale
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x405f10
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetThreadContext
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret