joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406dac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406ee4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e09
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
cmp dword [ebp - 0x10], 0
jne 0x406e1e
mov eax, dword [ebp - 8]
call fcn.00403150
mov bl, 1
jmp 0x406ece
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e2c
call fcn.00405820
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004033d8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406dd2
test eax, eax
jne 0x406ece
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e7c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406ece
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406e87
dec esi
test esi, esi
je 0x406e95
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406e86
cmp dword [ebp - 0xc], 7
jne 0x406ea0
test esi, esi
je 0x406ea0
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034a8
cmp dword [ebp - 0xc], 7
jne 0x406ec1
test esi, esi
je 0x406ec1
lea eax, [ebp - 0x14]
call fcn.004033d8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eeb
lea eax, [ebp - 0x14]
call fcn.00403150
ret

Function at 0x40782c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d558
mov eax, esi
mov edx, 8
test al, 1
je 0x407848
shr eax, 1
xor eax, 0xedb88320
jmp 0x40784a
shr eax, 1
dec edx
jne 0x40783b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407834
pop esi
ret

Function at 0x407877
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d554], 0
jne 0x407883
call fcn.0040782c
push 1
push 0x40d554
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4078ae
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407889
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40a090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40b56b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40c658
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40a120
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x40a0e7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x40a111
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a126
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a126
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x40c324
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x40c310
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040b03c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408fa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x408fb2
pop dword [ebp - 0x38]
mov eax, 0x25f2e695
add eax, 0xda4da91d
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3a6bd
push 0
mov eax, 0x980648d
sub eax, 0x93f73fd
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa305c62b
sub ecx, 0xa3057614
xor edi, edi
add edi, eax
mov esi, 0x41aa00
add esi, dword [ebp - 0x38]
mov ebx, 0x1a16cd48
mov edx, dword [esi]
add dword [ebp - 0x34], esi
xor edx, ebx
xor dword [ebp - 0x10], 0xf3be01ff
mov dword [edi], edx
add edi, 0xcdc6a4ab
sub edi, 0xcdc6a4a7
add esi, 4
loop 0x409007
add eax, 0xb26e7e5e
sub eax, 0xb26d4b2f
xor ebx, ebx
add ebx, eax
add eax, 0x2c085651
add eax, 0xd3f7a9b4
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0xdb9270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c3000]
push edi
jmp 0xdb928a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xdb9291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb9280
mov eax, 1
add ebx, ebx
jne 0xdb92a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xdb92b4
jne 0xdb92d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb92d3
dec eax
add ebx, ebx
jne 0xdb92c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xdb9298
add ebx, ebx
jne 0xdb92cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xdb9325
xor ecx, ecx
sub eax, 3
jb 0xdb92eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xdb935a
sar eax, 1
mov ebp, eax
jmp 0xdb92f6
add ebx, ebx
jne 0xdb92f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb92c4
inc ecx
add ebx, ebx
jne 0xdb9304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdb92c4
add ebx, ebx
jne 0xdb9311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xdb9306
jne 0xdb9322
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdb9306
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xdb9344
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xdb9336
jmp 0xdb9286
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xdb9344
add edi, ecx
jmp 0xdb9286
pop esi
mov edi, esi
mov ecx, 0x44547c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xdb937f
cmp byte [edi], 0x87
jne 0xdb9364
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xdb9362
lea edi, [esi + 0x98c000]
mov eax, dword [edi]
or eax, eax
je 0xdb93d0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9c3764]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9c37a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xdb9385
mov ecx, edi
jns 0xdb93b4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9c37a4]
or eax, eax
je 0xdb93ca
mov dword [ebx], eax
add ebx, 4
jmp 0xdb93a2
call dword [esi + 0x9c37b4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xdb9401
cmp al, 0xef
ja 0xdb93f4
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xdb93d6
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xdb93e3
mov ebp, dword [esi + 0x9c37a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xdb9435
sub esp, 0xffffff80
jmp 0x7b911d
Function at 0x401063
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 8], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
lea ecx, [ebp + 8]
push ecx
push 0x40
push dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x14]
push edi
mov dword [esi + 4], eax
mov dword [esi + 0x10], edx
call dword [eax + 0x18]
test eax, eax
jne 0x4010bb
mov dword [esi + 8], 9
jmp 0x401190
push ebx
mov ebx, dword [esi + 0x10]
and al, 8
Function at 0x544670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe2000]
push edi
jmp 0x54468a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x544691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x544680
mov eax, 1
add ebx, ebx
jne 0x5446a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5446b4
jne 0x5446d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5446d3
dec eax
add ebx, ebx
jne 0x5446c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x544698
add ebx, ebx
jne 0x5446cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x544725
xor ecx, ecx
sub eax, 3
jb 0x5446eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54475a
sar eax, 1
mov ebp, eax
jmp 0x5446f6
add ebx, ebx
jne 0x5446f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5446c4
inc ecx
add ebx, ebx
jne 0x544704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5446c4
add ebx, ebx
jne 0x544711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x544706
jne 0x544722
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x544706
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x544744
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x544736
jmp 0x544686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x544744
add edi, ecx
jmp 0x544686
pop esi
mov edi, esi
mov ecx, 0x5874
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x544762
cmp byte [edi], 0x27
jne 0x544762
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x544767
lea edi, [esi + 0x140000]
mov eax, dword [edi]
or eax, eax
je 0x5447df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19fe90]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19ffd0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x544794
mov ecx, edi
jns 0x5447c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19ffd4]
or eax, eax
je 0x5447d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5447b1
call dword [esi + 0x19ffe4]
mov ebp, dword [esi + 0x19ffd8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x544813
sub esp, 0xffffff80
jmp 0x480c84
Function at 0x1000b280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069a70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100a7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x1000b387
mov edx, dword [ebp - 0x14]
add edx, 0x40
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x1000b2e6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
mov edx, dword [eax]
add edx, dword [ecx]
mov dword [ebp - 0x20], edx
jmp 0x1000b2f9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax]
add edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1000b357
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10044d20
add esp, 4
jmp 0x1000b380
cmp dword [ebp - 0x18], 0x1000
jb 0x1000b370
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.10006ff0
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10044d25
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ecx], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
mov dword [eax], 0
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
mov dword [ecx], 0
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
mov dword [ecx], edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
and ecx, 0xfffffffe
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10027620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100a7084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x10027647
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x1002764e
mov al, 1
jmp 0x10027761
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x54], edx
mov ax, word [ebp - 0x4e]
mov word [ebp - 0x34], ax
mov ecx, 0xffff
mov word [ebp - 0x34], cx
movzx edx, word [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x54]
mov word [ebp - 0x38], ax
mov eax, 0xffff
mov word [ebp - 0x36], ax
movzx ecx, word [ebp - 0x36]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jne 0x10027697
mov dword [ebp - 0x44], 1
jmp 0x1002769e
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x31], al
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x100276b3
xor al, al
jmp 0x10027761
mov dword [ebp - 0x5c], 0x20
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x40
push ecx
mov ecx, dword [ebp - 0x48]
call dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x100276fe
cmp dword [ebp - 0x3c], 1
je 0x10027705
cmp dword [ebp - 0x3c], 3
je 0x10027754
jmp 0x1002775f
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3e], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x40], eax
je 0x10027734
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.10050a93
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10027734
xor al, al
jmp 0x10027761
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x3e]
test ecx, ecx
jne 0x10027748
mov dword [ebp - 0x4c], 1
jmp 0x1002774f
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
jmp 0x10027761
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3e], 0
mov al, 1
jmp 0x10027761
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044f41
mov esp, ebp
pop ebp
ret
Function at 0x10028990
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b579
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100a7084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [0x100a8c88]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x100a8650]
cmp eax, dword [edx + 4]
jle 0x10028a28
push 0x100a8650
call fcn.10044e6b
add esp, 4
cmp dword [0x100a8650], 0xffffffff
jne 0x10028a28
mov dword [ebp - 4], 0
push 0x100906e8
mov ecx, 0x100a8638
call fcn.1001fed0
push 0x1006c9b0
call fcn.1004548b
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x100a8650
call fcn.10044e21
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.100228f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10028aab
push 0xffffffffffffffff
push 0x100a8638
mov ecx, dword [ebp + 8]
call fcn.10029db0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x10028a95
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.1002b1b0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.10028990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100223b0
push 0
mov ecx, dword [ebp + 8]
call fcn.100228f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x2c], eax
jmp 0x10028ad3
mov edx, dword [ebp - 0x14]
and edx, 0x10
jne 0x10028ac6
mov eax, dword [ebp - 0x14]
and eax, 0x400
jne 0x10028ac6
mov dword [ebp - 0x1c], 0
jmp 0x10028acd
mov dword [ebp - 0x1c], 1
mov cl, byte [ebp - 0x1c]
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ae00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x1002ae18
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
sar ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x134
call fcn.10022880
call fcn.10041b20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push eax
push 0xa
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.1002a2d0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 8