joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
push str._s_failed_w_err_0x_08lx
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004026c0
mov edx, dword [edi + 4]
add esp, 0xc
xor ebx, ebx
push edx
push ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
je 0x402ea4
mov eax, dword [edi + 4]
push ebx
lea edx, [ebp - 0x214]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp - 0x20c]
push esi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d2c
mov esp, ebp
pop ebp
ret 4

Function at 0x402ec0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x402f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42f768
call fcn.0041269d
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402f46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0041269d
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0x42f484
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Wondershare_Install_Assist_Service
push 0x430030
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x402f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed_w_err_0x_08lx_n
jmp 0x402fd2
lea edx, [ebp - 0x210]
push edx
push 1
push esi
mov dword [ebp - 0x210], str.Wondershare_Install_Assist_Service
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x430030
push str._s_is_installed._n
call fcn.0041269d
add esp, 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed_w_err_0x_08lx_n
call fcn.0041269d
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x402fea
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x413b17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413b3e
call fcn.00413229
mov dword [eax], esi
call fcn.00413216
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041972d
mov eax, esi
jmp 0x413b93
test dword [ebp + 0xc], 0xfffffff9
jne 0x413b24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041323c
pop ecx
call fcn.00413216
mov eax, dword [eax]
jmp 0x413b93
test al, 0x10
jne 0x413b91
test al, 1
je 0x413b91
test byte [ebp + 0xc], 2
je 0x413b91
call fcn.00413229
mov dword [eax], 5
call fcn.00413216
mov dword [eax], 0xd
jmp 0x413b62
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41cab8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0041c27c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041c231
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
movsd dword es:[edi], dword [esi]
int3
cld
invalid
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0041c27c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041c231
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0

Function at 0x41d6fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
invalid
fdivp st(0)
invalid

Function at 0x41e292
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x41e2bb
je 0x41e290
invalid
invalid
movsd dword es:[edi], dword [esi]
test ah, bh
Function at 0x10008420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
jg 0x1000844a
jl 0x10008441
cmp dword [ebp + 0xc], 0
ja 0x1000844a
xor eax, eax
xor edx, edx
jmp 0x10008581
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], 0
je 0x1000846c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.10008e30
jmp 0x10008581
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call fcn.1000a2f0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x100084db
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.100085a0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1000a450
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1000abc0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.1000a3d0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x4c], 0
je 0x10008572
mov ecx, dword [ebp - 0x10]
call fcn.10009e20
mov dword [ebp - 0x24], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x1000854b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1003c370
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x18], 0xfff
je 0x10008549
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x10008581
jmp 0x100084f7
cmp dword [ebp - 8], 0
jbe 0x10008572
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1003c370
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011da0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x428
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.10026310
add esp, 0xc
mov dword [ebp - 0x42c], 0x428
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
jne 0x10011e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x10011e26
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
je 0x10011e24
jmp 0x10011e26
jmp 0x10011df5
cmp dword [ebp - 0x430], 0xffffffff
je 0x10011e38
cmp dword [ebp - 0x430], 0
jne 0x10011e3c
xor eax, eax
jmp 0x10011eb2
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
mov dword [ebp - 0x434], eax
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x40c]
push eax
call fcn.10040040
add esp, 8
test eax, eax
jne 0x10011e6f
jmp 0x10011e92
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x10011e56
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x434], 0
jne 0x10011eac
xor eax, eax
jmp 0x10011eb2
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret
Function at 0x1001e500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001e51c
mov dword [ebp - 4], 1
jmp 0x1001e523
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1001e530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bc10
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb8
lea ecx, [ebp - 0xe0]
call fcn.10005020
push 1
push 0x40
push 0x24
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.100154e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx + 4]
lea ecx, [ebp + edx - 0xe0]
call fcn.10004d80
movzx eax, al
test eax, eax
jne 0x1001e5ca
mov dword [ebp - 0x100], 0x20000001
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.10006270
mov eax, dword [ebp - 0x100]
jmp 0x1001e7d8
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xe0]
call fcn.100155f0
lea ecx, [ebp - 0x28]
call fcn.10009ce0
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x120], 0
jg 0x1001e62b
jl 0x1001e604
cmp dword [ebp - 0x124], 0x1000
jae 0x1001e62b
mov dword [ebp - 0x104], 0x20000002
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.10006270
mov eax, dword [ebp - 0x104]
jmp 0x1001e7d8
push 0x1000
call fcn.10003670
add esp, 4
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0xe4], edx
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.100156f0
push 0
push 0x1000
mov eax, dword [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xe0]
call fcn.10015860
lea ecx, [ebp - 0xe0]
call fcn.10009040
mov dword [ebp - 0x10c], 0x757e9798
mov dword [ebp - 0xe8], 0
jmp 0x1001e6a4
mov ecx, dword [ebp - 0xe8]
add ecx, 1
mov dword [ebp - 0xe8], ecx
cmp dword [ebp - 0xe8], 0x1000
jae 0x1001e6d5
mov edx, dword [ebp - 0xe4]
add edx, dword [ebp - 0xe8]
movzx eax, byte [edx]
sub eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xe4]
add ecx, dword [ebp - 0xe8]
mov byte [ecx], al
jmp 0x1001e695
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xe4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xf4]
mov ax, word [edx]
mov word [ebp - 0xec], ax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0xf8]
mov cx, word [eax + 4]
mov word [ebp - 0xf0], cx
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.10023860
add esp, 4
cmp dword [ebp - 0xfc], 0
jne 0x1001e755
mov dword [ebp - 0x110], 0
jmp 0x1001e76b
mov dword [ebp - 0xe4], 0x8123
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x110], ecx
movzx edx, word [ebp - 0xec]
cmp edx, 0x5a4d
jne 0x1001e792
cmp dword [ebp - 0x114], 0x4550
jne 0x1001e792
movzx eax, word [ebp - 0xf0]
cmp eax, dword [ebp + 0xc]
je 0x1001e7b6
mov dword [ebp - 0x118], 0x20000003
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.10006270
mov eax, dword [ebp - 0x118]
jmp 0x1001e7d8
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.10006270
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret
Function at 0x1001e800
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x428
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.10026310
add esp, 0xc
mov dword [ebp - 0x430], 0x428
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x438], eax
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x1001e897
mov eax, dword [ebp - 0x414]
cmp eax, dword [0x10091678]
jne 0x1001e87b
jmp 0x1001e897
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
mov dword [ebp - 0x43c], eax
jmp 0x1001e862
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x43c], 0
jne 0x1001e8b4
xor al, al
jmp 0x1001e939
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0x208
lea edx, [ebp - 0x210]
push edx
call fcn.10012700
lea eax, [ebp - 0x210]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x434]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
movzx edx, word [ecx]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x434]
sub eax, 2
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x440], 0x5c
je 0x1001e917
jmp 0x1001e8ee
xor ecx, ecx
mov edx, dword [ebp - 0x434]
mov word [edx + 4], cx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100125c0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret

Function at 0x10029510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10029130
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10029542
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x1006d220]
call dword [ebp - 8]
jmp 0x1002954c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x1004e0a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1006a4c0
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10090c10]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x1004e278
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x1004e1c7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x1004e1c7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x1004e1a5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x1004e129
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004e231
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x1004e298
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x1004e273
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1004e298
jmp 0x1004e102
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret
Function at 0x1004e2b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1006a4c0
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10090c10]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x1004e49b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x1004e3e6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x1004e3e6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x1004e3c2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x1004e339
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004e454
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x1004e4bb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x1004e496
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1004e4bb
jmp 0x1004e312
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret