joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e9
Capabilities:
Create process on windows

Disassembly:
push 0x868
mov eax, 0x41d96a
call fcn.0040ee1e
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 8]
mov byte [ebp - 0x831], 1
and dword [ebp - 4], 0
mov dword [ebp - 0x874], 0x3c
mov dword [ebp - 0x870], 0x8040
push 4
push 0x4265c0
call fcn.004020d4
mov dword [ebp - 0x868], eax
push 8
pop edx
cmp dword [edi + 0x14], edx
jb 0x40223c
mov eax, dword [edi]
jmp 0x40223e
mov eax, edi
mov dword [ebp - 0x864], eax
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jb 0x40224f
mov eax, dword [esi]
jmp 0x402251
mov eax, esi
mov dword [ebp - 0x860], eax
cmp dword [ebx + 0x14], edx
jb 0x402260
mov eax, dword [ebx]
jmp 0x402262
mov eax, ebx
mov dword [ebp - 0x85c], eax
and dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0x1d
cmp ecx, edx
jb 0x40227f
mov esi, dword [esi]
cmp dword [edi + 0x14], edx
jb 0x402288
mov eax, dword [edi]
jmp 0x40228a
mov eax, edi
push esi
push eax
push 0xe
push 0x4265c8
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402393
cmp dword [ebp - 0x83c], ebx
je 0x40234f
push dword [ebp - 0x83c]
push 0x15
push 0x4265e4
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xffffffffffffffff
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4023db
push 0x422930
push 0x19
push 0x426610
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
jmp 0x4023db
cmp byte [0x42832c], bl
je 0x4023db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x426644
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x831]
call fcn.0040ee6b
ret 4
Function at 0x402538
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x12
push 0x426ac4
call fcn.004020d4
push eax
lea esi, [ebp - 0x420]
call fcn.004012ca
xor ebx, ebx
cmp byte [0x42832c], bl
je 0x402584
push 8
push 0x426ae8
call fcn.004020d4
push eax
mov eax, esi
push eax
call fcn.0040131e
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x402590
lea eax, [ebp + 0x24]
push eax
push 0x13
push 0x426af8
call fcn.004020d4
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
lea esi, [ebp - 0x43c]
call fcn.004012ca
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4025cc
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x444], eax
cmp eax, ebx
je 0x402681
cmp dword [ebp - 0x40c], 8
mov eax, dword [ebp - 0x420]
jae 0x4025fa
lea eax, [ebp - 0x420]
push edi
push ebx
push 0x50
push eax
push dword [ebp - 0x444]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0x402678
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x402630
lea eax, [ebp - 0x43c]
push ebx
push ebx
push ebx
push ebx
push eax
push 3
push 0x426b20
call fcn.004020d4
push eax
push dword [ebp - 0x440]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x402670
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x40266d
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call edi
push dword [ebp - 0x440]
call edi
push dword [ebp - 0x444]
call edi
pop edi
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x43c]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp - 0x420]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401455
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbc8
leave
ret 0x38
Function at 0x404377
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x4043a2
xor eax, eax
jmp 0x40450a
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x4043cf
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4043cf
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x40450a
cmp dword [edi + 0x54], 0
jne 0x4043dc
mov eax, ebx
jmp 0x40450a
mov eax, edi
call fcn.0040586c
cmp dword [edi + 0x44], 0
jne 0x404402
push dword [edi + 0x54]
push esi
call fcn.0040c41a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x40450a
jmp 0x4043d5
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.004051c5
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4044af
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x4044fa
cmp eax, 1
jg 0x4044b7
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x40445e
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x404484
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404471
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040d9e2
add esp, 0x10
cmp esi, eax
jne 0x4044fa
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x4044e9
cmp esi, ebx
ja 0x404410
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x4044fb
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405209
jmp 0x404410
mov edx, dword [ebp - 0x20]
jmp 0x404422
cmp eax, 3
jne 0x4044fa
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c41a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x4044d9
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004052f9
jmp 0x4043c7
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004052f9
mov ax, word [ebp + 8]
jmp 0x40450a
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004052f9
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbc8
leave
ret 4
Function at 0x405774
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x44], 0
push esi
je 0x40585d
cmp byte [edi + 0x4a], 0
je 0x40585d
mov eax, dword [edi]
mov esi, 0xffff
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp si, ax
jne 0x4057b2
xor al, al
jmp 0x40585f
lea esi, [ebp - 0x20]
call fcn.004051c5
push ebx
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4057ff
lea eax, [ebp - 0x20]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x10]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x405804
dec eax
je 0x405808
dec eax
dec eax
je 0x405859
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004052f9
mov al, bl
pop ebx
jmp 0x40585f
mov edx, dword [ebp - 0x20]
jmp 0x4057c9
mov byte [edi + 0x4a], 0
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405814
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, eax
je 0x40583a
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x405827
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040d9e2
add esp, 0x10
cmp esi, eax
jne 0x4057ec
cmp byte [edi + 0x4a], 0
je 0x405859
test esi, esi
jne 0x4057bb
push esi
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.00405209
jmp 0x4057bb
mov bl, 1
jmp 0x4057ee
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bbc8
leave
ret
Function at 0x406648
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ecx, 0x80000002
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4ac], ecx
jb 0x40667e
mov eax, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406797
push 0x422920
push edi
call fcn.0040131e
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b0], 1
mov dword [ebp - 0x4b4], 0x400
jb 0x4066c7
mov eax, dword [esi]
jmp 0x4066c9
mov eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
push 0
push eax
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406797
push 4
pop eax
cmp dword [ebp - 0x4b0], eax
je 0x406718
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x4bc]
call fcn.0040131e
jmp 0x406797
and dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4b4], eax
jb 0x40672d
mov esi, dword [esi]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
push 0
push esi
push dword [ebp - 0x4ac]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406797
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x8c]
push 0x422bc4
push 0x40
push eax
call fcn.0040662c
add esp, 0x14
lea eax, [ebp - 0x8c]
push eax
lea esi, [ebp - 0x4a8]
call fcn.004012ca
mov edi, dword [ebp - 0x4bc]
call fcn.00401370
push ebx
push 1
mov ecx, esi
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040bbc8
leave
ret 4

Function at 0x4067aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x58
call fcn.0040afc2
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x4067ec
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426548
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426548]
xor cx, word [edx*2 + 0x426548]
inc edx
mov word [edi + edx*2 + 0x426546], cx
cmp edx, dword [ebp + 0xc]
jl 0x4067cc
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x407059
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
push 0x4228d0
mov edi, ecx
mov dword [ebp - 0x388], esi
call fcn.004012ca
xor esi, esi
add edi, 0xa0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38c], esi
mov dword [ebp - 0x390], esi
mov dword [ebp - 0x380], esi
jb 0x4070a7
mov eax, dword [edi]
jmp 0x4070a9
mov eax, edi
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x40716c
push ebx
call fcn.0040afc2
cmp dword [edi + 0x14], 8
pop ecx
mov dword [ebp - 0x384], eax
jb 0x4070d6
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 0x38c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407160
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x380]
push eax
push 0x4228d4
push dword [ebp - 0x384]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407160
cmp dword [ebp - 0x390], esi
je 0x407160
mov eax, dword [ebp - 0x380]
cmp dword [eax], 0xfeef04bd
jne 0x407160
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xe]
push eax
push edx
push ecx
push 8
push 0x426538
call fcn.004067aa
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x37c]
push eax
push dword [ebp - 0x388]
call fcn.0040131e
push dword [ebp - 0x384]
call fcn.0040d551
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x388]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbc8
leave
ret

Function at 0x40733c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041acf0
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov byte [ebp - 0x1005], 1
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4073ae
push esi
mov esi, dword [ebp - 0x100c]
push edi
shr esi, 2
xor edi, edi
test esi, esi
je 0x4073ac
mov eax, dword [ebp + edi*4 - 0x1004]
test eax, eax
je 0x40739e
push eax
push ebx
call fcn.004073c0
test al, al
je 0x4073a5
inc edi
cmp edi, esi
jb 0x407388
jmp 0x4073ac
mov byte [ebp - 0x1005], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1005]
xor ecx, ebp
call fcn.0040bbc8
leave
ret
Function at 0x4076e7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4076ef
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40770a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40770a
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x40770d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
and dword [edi + 0x10], 0
xor eax, eax
mov esi, edx
mov dword [edi + 0x14], 7
push eax
mov dword [ebp - 0x234], esi
mov word [edi], ax
call fcn.0040e1ae
push eax
call fcn.0040e17b
pop ecx
pop ecx
call fcn.0040e18d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x22c], edx
cmp dword [esi + 0x14], 8
jb 0x407767
mov eax, dword [esi]
jmp 0x407769
mov eax, esi
push dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push str._s_n_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea esi, [ebp - 0x228]
call fcn.004012ca
mov esi, eax
call fcn.00401370
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.00401455
cmp dword [edi + 0x14], 8
jb 0x4077b7
mov eax, dword [edi]
jmp 0x4077b9
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4077da
shr eax, 4
and al, 1
je 0x4077da
inc dword [ebp - 0x22c]
mov esi, dword [ebp - 0x234]
jmp 0x40775d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040bbc8
leave
ret
Function at 0x4077ea
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4d8], ecx
call fcn.004041b2
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x40782a
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407863
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00401455
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bbc8
leave
ret 4
push 0x42290c
lea esi, [ebp - 0x284]
call fcn.004012ca
push 0x422910
lea esi, [ebp - 0x268]
call fcn.004012ca
test byte [ebp - 0x4d4], 0x10
je 0x4078e2
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x284]
call fcn.004062f8
test eax, eax
je 0x407944
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x268]
call fcn.004062f8
test eax, eax
je 0x407944
lea eax, [ebp - 0x4a8]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
mov ecx, dword [ebp - 0x4d8]
mov eax, esi
push eax
call fcn.004077ea
jmp 0x407935
cmp dword [edi + 0x14], 8
jb 0x4078ec
mov eax, dword [edi]
jmp 0x4078ee
mov eax, edi
lea ecx, [ebp - 0x4a8]
push ecx
push eax
lea eax, [ebp - 0x214]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004012ca
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x40792e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401455
lea eax, [ebp - 0x4d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407883
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [edi + 0x14], 8
jb 0x407969
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x268]
call fcn.00401455
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00401455
mov bl, 1
jmp 0x407841
Function at 0x409185
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x409190
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x409244
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x422460]
add ecx, 8
sub edi, 8
dec esi
jne 0x4091a7
pop ebx
test edi, edi
je 0x40925d
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x422460]
inc ecx
dec edi
jne 0x409248
pop esi
not eax
pop edi
ret

Function at 0x409262
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x422460]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x422460]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4098c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4098f5
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4098f0
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x40991d
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x409906
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0040e670
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret 0xc
Function at 0x40a6a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40a74e
cmp dword [ebx + 4], 0xffffffff
jne 0x40a74e
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a6d8
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x40a710
cmp eax, 0x2f
je 0x40a710
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40a6fc
mov edi, esi
mov esi, 0x42109c
movsd dword es:[edi], dword [esi]
push 0x20
call fcn.0040c213
and dword [eax + 0x1c], 0
and dword [eax + 0xc], 0
pop ecx
mov ecx, dword [ebp + 8]
push eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], 0x1ae9b
call fcn.00409b3a
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
jmp 0x40a753
mov eax, 0x1000000
pop edi
pop esi
pop ecx
pop ebp
ret 4

Function at 0x40bbc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4255d4]
jne 0x40bbd2
repz ret
jmp fcn.004105c9
Function at 0x41c043
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041125e
and dword [ebp - 0x14], 0
cmp dword [0x428314], 0
mov dword [ebp - 0x18], eax
jne 0x41c0f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41c19e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420fd4
push ebx
call edi
test eax, eax
je 0x41c19e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428314], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428318], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42831c], eax
call edi
push eax
call esi
mov dword [0x428324], eax
test eax, eax
je 0x41c0f6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x428320], eax
mov eax, dword [0x428320]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41c14f
cmp dword [0x428324], ecx
je 0x41c14f
push eax
call esi
push dword [0x428324]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41c14f
test ebx, ebx
je 0x41c14f
call edi
test eax, eax
je 0x41c146
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41c146
test byte [ebp - 8], 1
jne 0x41c14f
or dword [ebp + 0x10], 0x200000
jmp 0x41c182
mov eax, dword [0x428318]
cmp eax, dword [ebp - 0x18]
je 0x41c182
push eax
call esi
test eax, eax
je 0x41c182
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41c182
mov eax, dword [0x42831c]
cmp eax, dword [ebp - 0x18]
je 0x41c182
push eax
call esi
test eax, eax
je 0x41c182
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428314]
call esi
test eax, eax
je 0x41c19e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41c1a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbc8
leave
ret