joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12019863
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1048
push 0x120adbb0
push edi
call fcn.120562e0
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp ecx, 0x48
jle 0x1201988c
push 0x48
pop ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x12
mov eax, esi
lea edx, [ecx + esi]
movzx ecx, byte [eax]
inc eax
cmp eax, edx
jb 0x120198a5
mov eax, esi
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, edx
jb 0x120198b4
mov eax, esi
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, edx
jb 0x120198c3
mov eax, esi
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, edx
jb 0x120198d2
mov eax, esi
xor dword [edi], ecx
add edi, 4
dec dword [ebp + 0xc]
jne 0x1201989b
mov ebx, dword [ebp + 8]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push 9
mov esi, ebx
pop edi
lea eax, [ebp - 8]
push ebx
push eax
call fcn.12019ad9
mov eax, dword [ebp - 8]
pop ecx
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
add esi, 8
dec edi
pop ecx
jne 0x120198ec
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [ebp - 8]
push ebx
push eax
call fcn.12019ad9
mov eax, dword [ebp - 8]
pop ecx
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
add esi, 8
dec edi
pop ecx
jne 0x12019911
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1201ab0b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov ecx, dword [ebp + 0x10]
push esi
push edi
call fcn.120738f5
mov ecx, dword [ebp + 0x14]
call fcn.120738f5
mov esi, 0x120b8f98
mov ecx, esi
call fcn.1201ef4e
call fcn.1201ac75
mov edi, eax
cmp edi, 4
jge 0x1201ac55
mov eax, dword [0x120b3180]
push 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.12011ba2
mov eax, dword [ebp - 4]
add esp, 0xc
cmp dword [eax - 8], 0
je 0x1201ac4d
push 0x800
lea eax, [ebp - 0x808]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x808]
push eax
call fcn.12011f26
pop ecx
lea eax, [ebp - 0x808]
push eax
mov ecx, esi
push dword [ebp - 4]
call fcn.1201fa2c
test al, al
je 0x1201abe0
mov eax, dword [0x120b3180]
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp + 0x14]
push dword [ebp - 4]
push str.Ignore_URL_Domain__s___s__r_n
push eax
call fcn.1206c497
add esp, 0x10
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp + 0x14]
call fcn.1207396a
lea ecx, [ebp - 4]
call fcn.1207396a
or eax, 0xffffffff
jmp 0x1201ac57
push ebx
push 0x120b7bd0
lea ecx, [ebp - 8]
call fcn.120739d8
lea eax, [ebp - 0x808]
lea ecx, [ebp + 0xc]
push eax
call fcn.120739d8
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.1201f95f
lea ecx, [ebp + 0xc]
mov bl, al
call fcn.1207396a
cmp edi, 1
jg 0x1201ac2b
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.12073aa3
test bl, bl
pop ebx
jne 0x1201ac39
test edi, edi
je 0x1201ac39
cmp edi, 2
jne 0x1201ac45
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
call fcn.12073aa3
lea ecx, [ebp - 8]
call fcn.1207396a
lea ecx, [ebp - 4]
call fcn.1207396a
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x1201bbbb
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x12087f2c
call fcn.12055780
push ecx
mov eax, dword [0x120b3180]
mov dword [ebp - 0x10], eax
push dword [0x120aedbc]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [0x120aedc8]
push str.MessageDispatcher__s:_CE_MessageDispatcher::Open___SiteHelper_class__s_not_found.__Is_your_Gator_version_incompatible_
push eax
call fcn.1206c497
lea eax, [ebp - 0x10]
push eax
push 5
push 0x229
push str.D:FixTree_25System_CodeeGuardScriptManagerMessageDispatcher.cpp
call fcn.12012ffa
or dword [ebp - 4], 0xffffffff
add esp, 0x20
lea ecx, [ebp - 0x10]
call fcn.1207396a
push dword [0x120aedc8]
push 0x1201bb09
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1201dc92
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x12088120
call fcn.12055780
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edi
je 0x1201dd64
cmp dword [ecx + 0x10], esi
jne 0x1201dcef
cmp edx, 0x3e8
jb 0x1201dcef
cmp edx, 0x7d0
ja 0x1201dcef
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.1201dbb2
pop ecx
pop ecx
jmp 0x1201dd76
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push ecx
push 0x1388
lea ecx, [ebp - 0x1c]
push 2
push ecx
push eax
push 0x4a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
cmp eax, esi
jne 0x1201dd5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x120b3180]
mov dword [ebp + 8], ecx
push eax
lea eax, [ebp + 8]
push dword [0x120aedc8]
mov dword [ebp - 4], esi
push str.MessageDispatcher__s:_SendCommand__:_SendMessage_timed_out__err__d.
push eax
call fcn.1206c497
lea eax, [ebp + 8]
push eax
push 5
push 0x8a5
push str.D:FixTree_25System_CodeeGuardScriptManagerMessageDispatcher.cpp
call fcn.12012ffa
or dword [ebp - 4], 0xffffffff
add esp, 0x20
lea ecx, [ebp + 8]
call fcn.1207396a
mov dword [ebp + 0xc], esi
mov esi, dword [ebp + 0xc]
jmp 0x1201dd76
lea eax, [ebp - 0x20]
push eax
push 0x1201dab9
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x12022978
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x12088908
call fcn.12055780
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x12022970
push 0xa
lea eax, [esi + 0x60]
push 8
push eax
mov dword [ebp - 4], 7
call fcn.120559f2
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 6
call fcn.1206d66c
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.1206d66c
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.1206d66c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call fcn.1207396a
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call fcn.1207396a
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.1207396a
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call fcn.1207396a
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.1207396a
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x12025b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x12088e0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 1
mov eax, dword [0x120b3180]
mov dword [esp + 8], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 3
push ecx
lea ecx, [esp + 0x10]
call fcn.120736df
mov edx, dword [esp + 0xc]
mov bl, 4
push edx
mov byte [esp + 0x24], bl
call fcn.1202d450
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push 0x2e
call fcn.1206c0ef
cmp esi, 2
jl 0x12025c1e
test eax, eax
jl 0x12025c1e
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.1206bf0f
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.12073aa3
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.1207396a
jmp 0x12025c2c
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0xc]
call fcn.12073aa3
push 0x2e
lea ecx, [esp + 0xc]
call fcn.1206c0ef
mov esi, eax
test esi, esi
jl 0x12025cd8
mov edx, dword [str.User.Name]
mov eax, dword [esp + 8]
push edx
push eax
call fcn.12013c8f
add esp, 8
test eax, eax
jne 0x12025cd8
mov ecx, dword [str.User.CreditCard]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.12013c8f
add esp, 8
test eax, eax
jne 0x12025cd8
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x12025ca8
inc esi
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.1206beec
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 6
call fcn.12073aa3
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.1207396a
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edx
push 0x120a9dcc
push eax
call fcn.12073c73
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 7
call fcn.12073d82
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.1207396a
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.120736df
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.1207396a
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.1207396a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.1207396a
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call fcn.1207396a
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x1202b280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1208977f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
lea eax, [esp + 0x24]
xor ebx, ebx
push 0x40
push eax
mov dword [esp + 0x20], ebx
call fcn.1202b490
mov ecx, dword [0x120b3180]
add esp, 8
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
call fcn.12016949
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 2
call fcn.12016cbe
mov dl, al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
cmp dl, bl
rep stosd dword es:[edi], eax
je 0x1202b34d
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x80]
call fcn.120739d8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call fcn.12073aa3
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 2
call fcn.1207396a
mov edx, dword [esp + 0xc]
push edx
call fcn.12074064
add esp, 4
jmp 0x1202b363
push str.AutoFill:_decode_rules_line_failed.
push 0x57
push str.D:FixTree_25Library_CodeAutoFillAutoFillData.cpp
push 1
call fcn.1200f4fa
add esp, 0x10
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.120736df
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 1
call fcn.1201698e
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], bl
call fcn.1207396a
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x12033540
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, dword [esp + 0x28]
push esi
xor eax, eax
xor esi, esi
dec edx
cmp edx, 0x24
ja case.default.0x12033553
jmp dword [edx*4 + 0x120336cc]
mov eax, 1
jmp case.default.0x12033553
mov eax, 2
jmp case.default.0x12033553
mov eax, 4
jmp case.default.0x12033553
mov eax, 8
jmp case.default.0x12033553
mov eax, 0x10
jmp case.default.0x12033553
mov eax, 0x20
jmp case.default.0x12033553
mov eax, 0x40
jmp case.default.0x12033553
mov eax, 0x80
jmp case.default.0x12033553
mov eax, 0x100
jmp case.default.0x12033553
mov eax, 0x200
jmp case.default.0x12033553
mov eax, 0x400
jmp case.default.0x12033553
mov eax, 0x800
jmp case.default.0x12033553
mov eax, 0x1000
jmp case.default.0x12033553
mov eax, 0x2000
jmp case.default.0x12033553
mov eax, 0x4000
jmp case.default.0x12033553
mov eax, 0x8000
jmp case.default.0x12033553
mov eax, 0x10000
jmp case.default.0x12033553
mov eax, 0x20000
jmp case.default.0x12033553
mov eax, 0x40000
jmp case.default.0x12033553
mov eax, 0x80000
jmp case.default.0x12033553
mov eax, 0x100000
jmp case.default.0x12033553
mov eax, 0x200000
jmp case.default.0x12033553
mov eax, 0x400000
jmp case.default.0x12033553
mov eax, 0x800000
jmp case.default.0x12033553
mov eax, 0x1000000
jmp case.default.0x12033553
mov eax, 0x2000000
jmp case.default.0x12033553
mov eax, 0x4000000
jmp case.default.0x12033553
mov eax, 0x8000000
jmp case.default.0x12033553
mov eax, 0x10000000
jmp case.default.0x12033553
mov eax, 0x20000000
jmp case.default.0x12033553
mov eax, 0x40000000
jmp case.default.0x12033553
mov eax, SysReAllocString
jmp case.default.0x12033553
mov esi, 1
jmp case.default.0x12033553
mov esi, 2
jmp case.default.0x12033553
mov esi, 4
jmp case.default.0x12033553
mov esi, 8
jmp case.default.0x12033553
mov esi, 0x10
mov edx, dword [esp + 0x24]
push esi
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.12033760
pop esi
ret 0x2c

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
mov edi, ecx
mov bl, 1
je 0x120354a5
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
add eax, 0xfffffff3
cmp eax, 0x18
ja case.0x12035476.14
xor ecx, ecx
mov cl, byte [eax + 0x120354d8]
jmp dword [ecx*4 + 0x120354d0]
mov eax, dword [edi + 0x1c5]
mov eax, dword [eax + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x12035499
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x120354ad
mov ecx, dword [edi + 0x1c5]
push esi
call fcn.12046cb0
pop edi
mov al, bl
pop esi
pop ebx
ret 8
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop edi
mov al, bl
pop esi
pop ebx
ret 8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop edi
pop esi
xor al, al
pop ebx
ret 8
Function at 0x12035d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1208a488
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
xor al, al
test esi, esi
je 0x12035dc7
add ecx, 0x58
push ecx
lea ecx, [esp + 0x1c]
call fcn.120736df
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x14], 0
call fcn.12073d46
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [esp + 0x18]
setne bl
mov dword [esp + 0x10], 0xffffffff
call fcn.1207396a
mov al, bl
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x1203ca10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1208ad30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x120b3180]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 4]
push ecx
push str.softwareGator.comGator_statGMTBanners
push str._s_u
push edx
mov dword [esp + 0x24], 0
call fcn.1206c497
mov eax, dword [0x120b3180]
add esp, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push str.Rotation
lea eax, [esp + 0x28]
push str._s__dx_d
push eax
mov byte [esp + 0x28], 1
call fcn.1206c497
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1200f6b7
mov esi, dword [esp + 0x30]
add esp, 0x28
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.1207396a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1207396a
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x12040ce0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1208b660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp edi, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 1
je 0x12040ef2
cmp byte [edi], 0
je 0x12040ef2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x148]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x2e
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x148]
push ecx
call fcn.1205815c
add esp, 8
cmp eax, ebx
je 0x12040d5e
mov byte [eax], bl
mov edi, str.Sites.txt
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x40]
call fcn.12076870
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1207416b
mov eax, dword [0x120b3180]
mov dword [ebp - 0x1c], eax
mov edi, vtable.CFileException.0
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xffffffff
call fcn.12073af3
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x148]
push ecx
mov bl, 4
push 0x5012
push edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.120769a7
test eax, eax
je 0x12040e2c
mov esi, dword [ebp - 0x18]
lea eax, [esi + 0x2098]
push eax
call fcn.120408d0
mov esi, dword [esi + 0x209c]
add esp, 4
test esi, esi
je 0x12040e97
mov eax, esi
mov esi, dword [esi]
lea ecx, [ebp - 0x40]
mov eax, dword [eax + 8]
push eax
call fcn.12076b1a
push 0x120a9264
lea ecx, [ebp - 0x40]
call fcn.12076b1a
jmp 0x12040e05
mov ecx, dword [0x120b3180]
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x248]
push 0x100
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.12076d8f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.Error:_Cannot_open_output_file_directory__s:_r_n_s_r_n
push edx
call fcn.1206c497
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.120402d0
mov edx, dword [ebp - 0x14]
push 0
push 0x10
push edx
call fcn.1207b03f
lea ecx, [ebp - 0x14]
xor esi, esi
mov byte [ebp - 4], bl
call fcn.1207396a
jmp 0x12040e9a
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.1207396a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.12076964
test esi, esi
jne 0x12040edd
jmp 0x12040ed3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x12042020
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1208b826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [esp + 0x15c]
push ebx
push ebp
mov ebp, ecx
push edi
push eax
lea edi, [ebp + 0x3c]
mov ecx, edi
call fcn.12073af3
push str.Groups_
mov ecx, edi
call fcn.12073d46
push edi
lea ecx, [esp + 0x14]
call fcn.120736df
push str..grp
lea ecx, [esp + 0x14]
mov dword [esp + 0x164], 0
call fcn.12073d46
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1204213d
push esi
test byte [esp + 0x1c], 0x10
jne 0x12042121
push edi
lea ecx, [esp + 0x14]
call fcn.120736df
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x168], 1
call fcn.12073d46
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0
call fcn.12045fa0
add esp, 8
test eax, eax
je 0x12042110
mov eax, dword [esp + 0x18]
mov ecx, ebp
push eax
call fcn.12041e40
mov esi, dword [esp + 0x18]
lea ecx, [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x12042110
test esi, esi
je 0x12042110
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.1207396a
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1204209d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0xffffffff
call fcn.1207396a
mov ecx, dword [esp + 0x158]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 4

Function at 0x12043410
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1208ba00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov bl, 1
je 0x120434f9
cmp byte [edi], 0
je 0x120434f9
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.12042e50
mov ecx, dword [ebp - 0x18]
push 0x5012
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.120768cb
lea edx, [esi + 0x28]
mov byte [ebp - 4], 2
push edx
call fcn.1203feb0
mov esi, dword [esi + 0x2c]
add esp, 4
test esi, esi
je 0x120434a4
mov eax, esi
mov esi, dword [esi]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
call fcn.12076b1a
push 0x120a9264
lea ecx, [ebp - 0x30]
call fcn.12076b1a
jmp 0x12043481
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.12076964
test bl, bl
jne 0x120434d5
jmp 0x120434ce
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1207396a
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x12046aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1208bf18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
xor bl, bl
call fcn.12046a10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x12046bb9
mov ecx, esi
call fcn.12046340
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x12046bb9
mov eax, dword [esi + 8]
push 0x20
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.120758c3
lea edx, [ebp - 0x70]
mov edi, 0xbaddeed
push 0x50
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 0x30000
mov dword [ebp - 0x68], 0x50
call fcn.12075b3d
mov eax, dword [ebp - 0x68]
cmp eax, 0x50
je 0x12046b6e
ja 0x12046b4f
add eax, 0xffffffb0
lea ecx, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.12075b3d
jmp 0x12046b6e
lea ecx, [ebp - 0x20]
push 0
push ecx
lea ecx, [ebp - 0x20]
call fcn.12075b3d
mov edx, dword [ebp - 0x68]
push 1
add edx, 0xffffffb0
lea ecx, [ebp - 0x20]
push edx
call fcn.12075bc2
cmp dword [ebp - 0x70], edi
jne 0x12046b8a
lea eax, [esi + 0xc]
lea ecx, [ebp - 0x70]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
mov ecx, esi
call fcn.12046860
mov bl, al
jmp 0x12046b8c
xor bl, bl
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.12075963
jmp 0x12046bb9
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1208c178
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
xor al, al
test ecx, ecx
je 0x12048bb8
cmp byte [ecx], 0
je 0x12048bb8
push ecx
lea ecx, [esp + 0x1c]
call fcn.120739d8
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
call fcn.12012682
add esp, 4
add esi, 4
lea ecx, [esp + 0x18]
push esi
call fcn.12073d82
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [esp + 0x18]
setne bl
mov dword [esp + 0x10], 0xffffffff
call fcn.1207396a
mov al, bl
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4