joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c0c
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x498855
call fcn.00497cb0
sub esp, 0x41c
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 8]
push edi
mov ecx, esi
mov dword [ebx], 0x4a4654
call fcn.00483344
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x4bb1cc], edi
jle 0x403c54
push 0x4a83cc
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 1
call sub.MSVCR71.dll__CxxThrowException
push dword [ebp + 0xc]
mov eax, dword [esi]
inc dword [0x4bb1cc]
mov ecx, esi
mov dword [ebx + 4], edi
call dword [eax + 8]
mov esi, 0x208
push esi
lea eax, [ebp - 0x428]
push edi
push eax
call sub.MSVCR71.dll_memset
lea eax, [ebp - 0x428]
push str.SYSTEMCurrentControlSetServicesEventlogApplication_
push eax
call sub.MSVCR71.dll_strcpy
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x428]
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403d88
push esi
lea eax, [ebp - 0x220]
push edi
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x206
lea eax, [ebp - 0x220]
push eax
push edi
mov dword [ebp + 8], 5
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
call sub.MSVCR71.dll_strlen
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
push str.EventMessageFile
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x220]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
push str.CategoryMessageFile
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push str.CategoryCount
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push str.TypesSupported
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x1f
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x403ddd
Capabilities:
Access the windows event log

Disassembly:
cmp dword [esi + 4], 0
je 0x403e6d
push edi
call fcn.00403e70
mov edi, eax
mov eax, dword [esp + 8]
dec eax
push 4
pop ecx
mov edx, ecx
je 0x403e18
dec eax
je 0x403e14
dec eax
je 0x403e10
dec eax
je 0x403e0c
dec eax
jne 0x403e1b
push 5
pop edx
jmp 0x403e1b
mov edx, ecx
jmp 0x403e1b
push 3
jmp 0x403e09
push 2
jmp 0x403e09
xor edx, edx
inc edx
mov eax, dword [esp + 0x10]
dec eax
dec eax
je 0x403e3c
dec eax
je 0x403e38
dec eax
je 0x403e3f
dec eax
je 0x403e34
dec eax
jne 0x403e3f
push 0x10
pop ecx
jmp 0x403e3f
push 8
jmp 0x403e31
push 2
jmp 0x403e31
xor ecx, ecx
inc ecx
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 1
push edi
push 0x2a
push edx
push ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test edi, edi
je 0x403e6c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret 0xc

Function at 0x4048e1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push esi
push edi
mov eax, ebx
call fcn.00404a1e
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
xor eax, eax
inc eax
push eax
push str.EventHookDLL
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push str._s_d
push eax
call edi
add esp, 0x10
mov esi, 0x15e
jmp 0x4049f2
inc dword [ebp - 4]
lea eax, [ebp - 0x18c]
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40495d
push esi
lea eax, [ebp - 0x2ec]
push eax
push 0x7ff
push dword [ebx + 0x114]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 8], 2
jmp 0x4049b1
push str.HandleEventHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
push esi
lea eax, [ebp - 0x2ec]
push eax
jne 0x404994
push 0x800
push dword [ebx + 0x114]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x404954
push 0x7fe
push dword [ebx + 0x114]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 4]
call fcn.00404bcc
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0xaec]
push eax
call edi
push dword [ebp - 8]
lea eax, [ebp - 0xaec]
push eax
push 0x12
or ecx, 0xffffffff
call fcn.0041b172
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push str.EventHookDLL
push str._s_d
push eax
call edi
add esp, 0x28
lea eax, [ebx + 0x14]
push eax
push esi
lea eax, [ebp - 0x18c]
push eax
push 0x4a4630
lea eax, [ebp - 0x2c]
push eax
push str.EXTERNAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40491d
pop edi
pop esi
leave
ret
Function at 0x410188
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x8d48]
cmp eax, 0xc
je 0x4101ac
cmp eax, 0xe
je 0x4101ac
cmp eax, 0xd
jne 0x4103da
sub eax, 0xc
je 0x4103b5
dec eax
je 0x4101df
dec eax
jne 0x4103da
cmp dword [ebp + 8], 0x25
push 0
jne 0x4103cc
mov dword [edi + 0x8d48], 7
call fcn.00410d3f
jmp 0x4103da
cmp dword [ebp + 8], 0x25
jne 0x4103ac
lea ebx, [edi + 0x814c]
cmp dword [ebx], 0
mov dword [edi + 0x8d48], 6
je 0x410362
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [edi + 0x80fc]
mov edx, eax
sub edx, dword [ecx]
mov dword [ecx], eax
add dword [edi + 0x8104], edx
mov byte [ebp + 0xb], 0
cmp byte [edi + 0x8d1d], 0
je 0x41029e
mov esi, dword [edi + 0x8d24]
test esi, esi
je 0x41029e
cmp byte [edi + 0x8d1e], 0
jne 0x410362
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
lea eax, [edi + 0xf9]
push ecx
push eax
mov eax, dword [ebx]
call fcn.004674f3
cmp eax, 1
je 0x41037e
mov esi, dword [ebp - 8]
cmp esi, 0x8000
jg 0x41037e
cmp eax, 2
jne 0x410279
mov byte [ebp + 0xb], 1
jmp 0x410289
cmp eax, 3
mov byte [ebp + 0xb], 0
jne 0x410289
mov byte [edi + 0x8d1e], 1
push esi
push dword [ebp - 0xc]
lea eax, [edi + 0xf9]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov esi, dword [ebx]
test esi, esi
je 0x410358
mov eax, esi
cdq
lea ecx, [edi + 0x8118]
add dword [ecx], eax
adc dword [ecx + 4], edx
lea ecx, [edi + 0x8110]
add dword [ecx], eax
mov eax, esi
adc dword [ecx + 4], edx
neg eax
cdq
push edx
push eax
mov eax, dword [edi + 0x84ac]
call fcn.0040a56c
test eax, eax
je 0x410387
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x4102f5
cmp byte [edi + 0x84c4], 0
jne 0x4102f5
mov bl, 1
call fcn.00456f34
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [edi + 0x814c]
lea eax, [edi + 0xf9]
push eax
push dword [edi + 0x8148]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [edi + 0x84c0]
test eax, eax
setne byte [ebp - 1]
test esi, esi
je 0x41032b
xor bl, bl
call fcn.00456f34
cmp byte [ebp - 1], 0
je 0x410390
lea ebx, [edi + 0x814c]
mov eax, dword [ebx]
cmp dword [ebp - 0x10], eax
jne 0x410390
mov ecx, dword [edi + 0x84bc]
test ecx, ecx
je 0x410355
push eax
lea eax, [edi + 0xf9]
push eax
call fcn.00482da7
and dword [ebx], 0
cmp byte [ebp + 0xb], 0
jne 0x41021e
mov ecx, dword [edi + 0x30]
and dword [ebx], 0
push 0
push ebx
push 0x8000
lea eax, [edi + 0xf9]
push eax
call fcn.004868c8
jmp 0x4103da
push 0
push 0x4f5
jmp 0x4103a2
push 0
push 0x46f
jmp 0x4103a2
mov eax, dword [edi + 0x84ac]
call fcn.0040a746
push 0
push 0x424
push 1
push edi
call fcn.0040f2cd
jmp 0x4103da
push 0
push 0x4d5
jmp 0x4103a2
cmp dword [ebp + 8], 0x25
push 0
jne 0x4103cc
mov dword [edi + 0x8d48], 5
jmp 0x4101d5
push 0x4d5
mov ecx, edi
push 1
call fcn.0040fad9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410b4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [edi + 0x8d48], 6
push ebx
push esi
jne 0x410d0b
xor eax, eax
cmp dword [ebp + 8], eax
je 0x410b7b
cmp dword [ebp + 8], 0x1d
je 0x410b7b
push eax
push 0x422
jmp 0x410d35
lea ebx, [edi + 0x814c]
cmp dword [ebx], eax
je 0x410ceb
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [edi + 0x80fc]
mov edx, eax
sub edx, dword [ecx]
mov dword [ecx], eax
add dword [edi + 0x8104], edx
mov byte [ebp - 1], 0
cmp byte [edi + 0x8d1d], 0
je 0x410c25
mov esi, dword [edi + 0x8d24]
test esi, esi
je 0x410c25
cmp byte [edi + 0x8d1e], 0
jne 0x410ceb
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
lea eax, [edi + 0xf9]
push ecx
push eax
mov eax, dword [ebx]
call fcn.004674f3
cmp eax, 1
je 0x410d11
mov esi, dword [ebp - 8]
cmp esi, 0x8000
jg 0x410d11
cmp eax, 2
jne 0x410c00
mov byte [ebp - 1], 1
jmp 0x410c10
cmp eax, 3
mov byte [ebp - 1], 0
jne 0x410c10
mov byte [edi + 0x8d1e], 1
push esi
push dword [ebp - 0xc]
lea eax, [edi + 0xf9]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov esi, dword [ebx]
test esi, esi
je 0x410ce1
mov eax, esi
cdq
lea ecx, [edi + 0x8118]
add dword [ecx], eax
adc dword [ecx + 4], edx
lea ecx, [edi + 0x8110]
add dword [ecx], eax
mov eax, esi
adc dword [ecx + 4], edx
neg eax
cdq
push edx
push eax
mov eax, dword [edi + 0x84ac]
call fcn.0040a56c
test eax, eax
je 0x410d1a
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x410c7c
cmp byte [edi + 0x84c4], 0
jne 0x410c7c
mov bl, 1
call fcn.00456f34
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [edi + 0x814c]
lea eax, [edi + 0xf9]
push eax
push dword [edi + 0x8148]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [edi + 0x84c0]
setne byte [ebp - 2]
test eax, eax
je 0x410cb4
xor bl, bl
mov esi, eax
call fcn.00456f34
cmp byte [ebp - 2], 0
je 0x410d23
lea ebx, [edi + 0x814c]
mov eax, dword [ebx]
cmp dword [ebp - 0x10], eax
jne 0x410d23
mov ecx, dword [edi + 0x84bc]
test ecx, ecx
je 0x410cde
push eax
lea eax, [edi + 0xf9]
push eax
call fcn.00482da7
and dword [ebx], 0
cmp byte [ebp - 1], 0
jne 0x410ba5
and dword [ebx], 0
cmp dword [ebp + 8], 0x1d
je 0x410d0b
mov ecx, dword [edi + 0x30]
push 0
push ebx
push 0x8000
lea eax, [edi + 0xf9]
push eax
call fcn.004868c8
pop esi
pop ebx
leave
ret 4
push 0
push 0x4f5
jmp 0x410d35
push 0
push 0x46f
jmp 0x410d35
mov eax, dword [edi + 0x84ac]
call fcn.0040a746
push 0
push 0x424
push 1
push edi
call fcn.0040f2cd
jmp 0x410d0b
Function at 0x410d3f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edi + 0x8d48]
cmp eax, 5
push ebx
push esi
je 0x410d5b
cmp eax, 7
jne 0x410f68
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x410d7d
cmp eax, 5
mov ecx, edi
push ebx
jne 0x410d71
push 0x40a
jmp 0x410d76
push 0x40c
push 1
jmp 0x410f63
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [edi + 0x8150]
cdq
lea ecx, [edi + 0x8118]
add dword [ecx], eax
mov dword [edi + 0x814c], ebx
mov dword [ebp + 8], ebx
adc dword [ecx + 4], edx
lea ecx, [edi + 0x8108]
add dword [ecx], eax
lea eax, [edi + 0x80fc]
adc dword [ecx + 4], edx
mov ecx, esi
sub ecx, dword [eax]
mov dword [eax], esi
add dword [edi + 0x8100], ecx
cmp dword [edi + 0x8d48], 7
jne 0x410e4b
cmp dword [edi + 0xb4], ebx
je 0x410e97
lea ebx, [edi + 0xa4]
mov eax, ebx
call fcn.00411791
mov esi, dword [eax + 0x18]
mov ecx, dword [ebp + 8]
add ecx, esi
cmp ecx, 0x7ffe
ja 0x410e95
cmp dword [eax + 0x1c], 0x10
jb 0x410e02
mov eax, dword [eax + 8]
jmp 0x410e05
add eax, 8
push esi
push eax
mov eax, dword [ebp + 8]
lea eax, [edi + eax + 0xf9]
push eax
call sub.MSVCR71.dll_memcpy
add dword [ebp + 8], esi
mov eax, dword [ebp + 8]
mov byte [edi + eax + 0xf9], 0xd
add esp, 0xc
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov byte [edi + eax + 0xf9], 0xa
inc dword [ebp + 8]
mov esi, ebx
call fcn.004117a9
cmp dword [edi + 0xb4], 0
jne 0x410ddc
jmp 0x410e95
mov esi, dword [edi + 0x84c0]
cmp esi, ebx
je 0x410e67
cmp byte [edi + 0x84c4], 0
jne 0x410e67
mov bl, 1
call fcn.00456f34
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
push 0x8000
lea eax, [edi + 0xf9]
push eax
push dword [edi + 0x8148]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [edi + 0x84c0]
cmp esi, ebx
je 0x410e97
xor bl, bl
call fcn.00456f34
xor ebx, ebx
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x84bc]
cmp eax, ebx
sete byte [ebp - 4]
cmp ecx, ebx
mov dword [edi + 0x8150], eax
je 0x410ec1
cmp eax, ebx
je 0x410ec1
push eax
lea eax, [edi + 0xf9]
push eax
call fcn.00482da7
cmp byte [edi + 0x8d1d], 0
je 0x410f10
mov esi, dword [edi + 0x8d24]
cmp esi, ebx
je 0x410f10
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
lea ebx, [edi + 0xf9]
push ebx
call fcn.004674f3
cmp eax, 1
je 0x410f50
mov esi, dword [ebp - 8]
cmp esi, 0x8000
jg 0x410f50
push esi
push dword [ebp - 0xc]
push ebx
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebp + 8], esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x410f1b
cmp byte [ebp - 4], 0
jne 0x410f3f
mov ecx, dword [edi + 0x30]
lea eax, [edi + 0x814c]
push eax
push dword [ebp + 8]
lea eax, [edi + 0xf9]
push eax
call fcn.004846aa
cmp byte [ebp - 4], 0
je 0x410f68
cmp dword [ebp + 8], ebx
jne 0x410f68
cmp dword [edi + 0x8d48], 7
push ebx
jne 0x410f5b
push 0x40d
jmp 0x410f60
push 0
push 0x4f4
push 1
jmp 0x410f61
push 0x40b
push ebx
mov ecx, edi
call fcn.0040fad9
pop esi
pop ebx
leave
ret 4
Function at 0x418098
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x84b0]
cmp dword [eax + 4], 0
lea esi, [edi + 0x8d50]
je 0x4180c6
mov eax, dword [eax + 8]
mov edx, dword [esi]
add eax, 0x68
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, esi
call fcn.00412f5a
test al, al
je 0x4180e2
push 0xffffffffffffffff
mov ecx, 0x4a4
call fcn.004075db
jmp 0x41816a
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x4180fc
cmp byte [edi + 0x84c5], 0
jne 0x4180fc
mov bl, 1
call fcn.00456f34
lea eax, [edi + 0x8d54]
cmp dword [eax + 0x18], 0x10
jb 0x41810d
mov eax, dword [eax + 4]
jmp 0x418110
add eax, 4
push eax
call dword [sym.imp.MSVCR71.dll__mkdir]
mov esi, dword [edi + 0x84c0]
test esi, esi
pop ecx
mov dword [ebp - 4], eax
je 0x41812c
xor bl, bl
call fcn.00456f34
cmp dword [ebp - 4], 0
lea eax, [edi + 0x8d78]
je 0x418174
cmp dword [eax + 0x18], 0x10
jb 0x418143
mov eax, dword [eax + 4]
jmp 0x418146
add eax, 4
push eax
push 0xffffffffffffffff
mov ecx, 0x442
call fcn.004075db
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
mov ecx, edi
call fcn.0040e512
jmp 0x4181cf
cmp dword [eax + 0x18], 0x10
jb 0x41817f
mov eax, dword [eax + 4]
jmp 0x418182
add eax, 4
push eax
push 0xffffffffffffffff
mov ecx, 0x443
call fcn.004075db
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
mov ecx, edi
call fcn.0040e512
mov esi, dword [edi + 0x84b0]
lea eax, [edi + 0x8d50]
call fcn.0040af8c
mov edi, dword [edi + 0x84b0]
push 0
push 0x13
pop ecx
call fcn.0040afe6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418469
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x84b0]
cmp dword [eax + 4], 0
lea esi, [edi + 0x8d50]
je 0x418497
mov eax, dword [eax + 8]
mov edx, dword [esi]
add eax, 0x68
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, esi
call fcn.00412f5a
test al, al
je 0x4184b3
push 0xffffffffffffffff
mov ecx, 0x4a5
call fcn.004075db
jmp 0x418561
lea ebx, [edi + 0x84b8]
mov esi, dword [ebx]
call fcn.00412f76
test al, al
je 0x4184d9
mov eax, dword [ebx]
call fcn.00412fa6
movsx eax, al
sub eax, 0x40
push eax
call dword [sym.imp.MSVCR71.dll__chdrive]
pop ecx
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x4184f3
cmp byte [edi + 0x84c5], 0
jne 0x4184f3
mov bl, 1
call fcn.00456f34
lea eax, [edi + 0x8d54]
cmp dword [eax + 0x18], 0x10
jb 0x418504
mov eax, dword [eax + 4]
jmp 0x418507
add eax, 4
push eax
call dword [sym.imp.MSVCR71.dll__rmdir]
mov esi, dword [edi + 0x84c0]
test esi, esi
pop ecx
mov dword [ebp - 4], eax
je 0x418523
xor bl, bl
call fcn.00456f34
cmp dword [ebp - 4], 0
je 0x41856b
lea eax, [edi + 0x8d78]
cmp dword [eax + 0x18], 0x10
jb 0x41853a
mov eax, dword [eax + 4]
jmp 0x41853d
add eax, 4
push eax
push 0xffffffffffffffff
mov ecx, 0x43e
call fcn.004075db
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
mov ecx, edi
call fcn.0040e512
jmp 0x4185a0
push 0xffffffffffffffff
mov ecx, 0x43f
call fcn.004075db
push eax
mov ecx, edi
call fcn.0040e512
mov esi, dword [edi + 0x84b0]
lea eax, [edi + 0x8d50]
call fcn.0040af8c
mov edi, dword [edi + 0x84b0]
push 0
push 0x11
pop ecx
call fcn.0040afe6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418796
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x84b0]
cmp dword [eax + 4], 0
lea esi, [edi + 0x8d50]
je 0x4187c5
mov eax, dword [eax + 8]
mov edx, dword [esi]
add eax, 0x68
push eax
mov ecx, esi
call dword [edx + 8]
mov eax, esi
call fcn.00412f5a
test al, al
je 0x4187e1
push 0xffffffffffffffff
mov ecx, 0x4a6
call fcn.004075db
jmp 0x418940
mov esi, dword [edi + 0x84c0]
and dword [ebp - 0xc], 0
test esi, esi
mov byte [ebp - 5], 0
je 0x418803
cmp byte [edi + 0x84c5], 0
jne 0x418803
mov bl, 1
call fcn.00456f34
lea eax, [edi + 0x8d50]
push eax
call fcn.00404e6e
movzx eax, al
test eax, eax
pop ecx
je 0x418870
mov eax, dword [edi + 0x84c0]
test eax, eax
je 0x418877
cmp byte [eax + 5], 0
je 0x418877
lea eax, [ebp - 0x16c]
push eax
mov esi, 0x15d
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x418877
cmp eax, esi
jae 0x418877
lea eax, [edi + 0x8d54]
cmp dword [eax + 0x18], 0x10
jb 0x418853
mov eax, dword [eax + 4]
jmp 0x418856
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x418867
mov byte [ebp - 5], 1
jmp 0x418877
mov dword [ebp - 0xc], 0x3f2
jmp 0x418877
mov dword [ebp - 0xc], 0x3f3
mov esi, dword [edi + 0x84c0]
test esi, esi
je 0x418888
xor bl, bl
call fcn.00456f34
cmp byte [ebp - 5], 0
je 0x41889b
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp - 0xc], 0
jne 0x41890a
lea ebx, [edi + 0x84b8]
mov ecx, dword [ebx]
lea esi, [edi + 0x8d50]
mov eax, esi
call fcn.00409125
mov eax, dword [ebx]
call fcn.004047cd
cmp byte [edi + 0x8174], 0
je 0x4188e3
mov ebx, 0x4a4fb0
push ebx
lea ecx, [edi + 0x48]
push edi
call fcn.0040d188
test al, al
jne 0x4188e3
push ebx
lea ecx, [edi + 0x6c]
push edi
call fcn.0040d188
mov eax, esi
mov esi, dword [edi + 0x84b0]
mov dword [ebp - 0xc], 0x3f4
call fcn.0040af8c
mov edi, dword [edi + 0x84b0]
push 0
push 0x12
pop ecx
call fcn.0040afe6
mov edi, dword [ebp + 8]
lea eax, [edi + 0x8d78]
cmp dword [eax + 0x18], 0x10
jb 0x41891b
mov eax, dword [eax + 4]
jmp 0x41891e
add eax, 4
mov ecx, dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
call fcn.004075db
push eax
lea eax, [ebp - 0x96c]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x96c]
mov ecx, edi
push eax
call fcn.0040e512
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41b9f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x49876c
call fcn.00497cb0
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00483344
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.00483344
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.00483344
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.00483344
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 3
call fcn.00483344
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 4
call fcn.00483344
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 5
call fcn.00483344
lea ecx, [esi + 0xfc]
mov byte [ebp - 4], 6
call fcn.00483344
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 7
call fcn.00483344
lea ecx, [esi + 0x144]
mov byte [ebp - 4], 8
call fcn.00483344
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 9
call fcn.00483344
lea ecx, [esi + 0x18c]
mov byte [ebp - 4], 0xa
call fcn.00483344
lea ecx, [esi + 0x1b0]
mov byte [ebp - 4], 0xb
call fcn.00483344
lea ecx, [esi + 0x1d4]
mov byte [ebp - 4], 0xc
call fcn.00483344
lea ecx, [esi + 0x1f8]
mov byte [ebp - 4], 0xd
call fcn.00483344
lea ecx, [esi + 0x21c]
mov byte [ebp - 4], 0xe
call fcn.00483344
lea ecx, [esi + 0x240]
mov byte [ebp - 4], 0xf
call fcn.00483344
lea ecx, [esi + 0x264]
mov byte [ebp - 4], 0x10
call fcn.00483344
lea ecx, [esi + 0x288]
mov byte [ebp - 4], 0x11
call fcn.00483344
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x2ac]
call fcn.00483344
lea ecx, [esi + 0x2d0]
mov byte [ebp - 4], 0x13
call fcn.00483344
lea ecx, [esi + 0x2f4]
mov byte [ebp - 4], 0x14
call fcn.00483344
lea ecx, [esi + 0x318]
mov byte [ebp - 4], 0x15
call fcn.00483344
lea ecx, [esi + 0x33c]
mov byte [ebp - 4], 0x16
call fcn.00483344
lea ecx, [esi + 0x360]
mov byte [ebp - 4], 0x17
call fcn.00483344
lea ecx, [esi + 0x384]
mov byte [ebp - 4], 0x18
call fcn.00483344
lea ecx, [esi + 0x3a8]
mov byte [ebp - 4], 0x19
call fcn.00483344
lea ecx, [esi + 0x3cc]
mov byte [ebp - 4], 0x1a
call fcn.00483344
lea ecx, [esi + 0x3f0]
mov byte [ebp - 4], 0x1b
call fcn.00483344
lea ecx, [esi + 0x414]
mov byte [ebp - 4], 0x1c
call fcn.00483344
lea ecx, [esi + 0x438]
mov byte [ebp - 4], 0x1d
call fcn.00483344
lea ecx, [esi + 0x45c]
mov byte [ebp - 4], 0x1e
call fcn.00483344
lea ecx, [esi + 0x480]
mov byte [ebp - 4], 0x1f
call fcn.00483344
lea ecx, [esi + 0x4a4]
mov byte [ebp - 4], 0x20
call fcn.00483344
lea ecx, [esi + 0x4c8]
mov byte [ebp - 4], 0x21
call fcn.00483344
lea ecx, [esi + 0x4ec]
mov byte [ebp - 4], 0x22
call fcn.00483344
lea ecx, [esi + 0x510]
mov byte [ebp - 4], 0x23
call fcn.00483344
lea ecx, [esi + 0x534]
mov byte [ebp - 4], 0x24
call fcn.00483344
lea ecx, [esi + 0x558]
mov byte [ebp - 4], 0x25
call fcn.00483344
lea ecx, [esi + 0x57c]
mov byte [ebp - 4], 0x26
call fcn.00483344
lea ecx, [esi + 0x5a0]
mov byte [ebp - 4], 0x27
call fcn.00483344
lea ecx, [esi + 0x5c4]
mov byte [ebp - 4], 0x28
call fcn.00483344
lea ecx, [esi + 0x5e8]
mov byte [ebp - 4], 0x29
call fcn.00483344
lea ecx, [esi + 0x60c]
mov byte [ebp - 4], 0x2a
call fcn.00483344
lea ecx, [esi + 0x630]
mov byte [ebp - 4], 0x2b
call fcn.00483344
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4