joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409550
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b1b
mov eax, dword fs:[0]
push eax
mov eax, 0x4234
call fcn.004306e0
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x3ffc
lea eax, [ebp - 0x423c]
push esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x4240], esi
call fcn.0042b460
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x4000
lea edx, [ebp - 0x4240]
push edx
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x23c]
shr edi, 2
mov dword [ebp - 0x240], edi
cmp eax, esi
je 0x4096f9
call fcn.00409170
test al, al
je 0x4096f9
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x21c], ax
call fcn.0042b460
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], esi
call fcn.004067d0
xor ebx, ebx
cmp edi, esi
ja 0x409664
cmp dword [ebp - 0x220], 8
jb 0x409644
mov edx, dword [ebp - 0x234]
push edx
call fcn.00438d27
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [ebp + ebx*4 - 0x4240]
cmp eax, esi
je 0x4096dd
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4096dd
push 0x105
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4096d6
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4096a3
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.0040ec00
test eax, eax
je 0x4096e7
mov edi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x409662
jmp 0x40962c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x238]
call fcn.004025e0
mov al, 1
jmp 0x409646
Function at 0x409700
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b1b
mov eax, dword fs:[0]
push eax
mov eax, 0x4234
call fcn.004306e0
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x3ffc
lea eax, [ebp - 0x423c]
push esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x4240], esi
call fcn.0042b460
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x4000
lea edx, [ebp - 0x4240]
push edx
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x23c]
shr edi, 2
mov dword [ebp - 0x240], edi
cmp eax, esi
je 0x4098a9
call fcn.00409170
test al, al
je 0x4098a9
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x21c], ax
call fcn.0042b460
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], esi
call fcn.004068e0
xor ebx, ebx
cmp edi, esi
ja 0x409814
cmp dword [ebp - 0x220], 8
jb 0x4097f4
mov edx, dword [ebp - 0x234]
push edx
call fcn.00438d27
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [ebp + ebx*4 - 0x4240]
cmp eax, esi
je 0x40988d
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40988d
push 0x105
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x409886
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409853
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.0040ec00
test eax, eax
je 0x409897
mov edi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x409812
jmp 0x4097dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x238]
call fcn.004025e0
mov al, 1
jmp 0x4097f6
Function at 0x4098b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b1b
mov eax, dword fs:[0]
push eax
mov eax, 0x4234
call fcn.004306e0
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x3ffc
lea eax, [ebp - 0x423c]
push esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x4240], esi
call fcn.0042b460
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x4000
lea edx, [ebp - 0x4240]
push edx
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x23c]
shr edi, 2
mov dword [ebp - 0x240], edi
cmp eax, esi
je 0x409a59
call fcn.00409170
test al, al
je 0x409a59
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x21c], ax
call fcn.0042b460
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], esi
call fcn.004069f0
xor ebx, ebx
cmp edi, esi
ja 0x4099c4
cmp dword [ebp - 0x220], 8
jb 0x4099a4
mov edx, dword [ebp - 0x234]
push edx
call fcn.00438d27
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [ebp + ebx*4 - 0x4240]
cmp eax, esi
je 0x409a3d
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409a3d
push 0x105
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x409a36
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409a03
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.0040ec00
test eax, eax
je 0x409a47
mov edi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x4099c2
jmp 0x40998c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x238]
call fcn.004025e0
mov al, 1
jmp 0x4099a6
Function at 0x409a60
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b1b
mov eax, dword fs:[0]
push eax
mov eax, 0x4234
call fcn.004306e0
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x3ffc
lea eax, [ebp - 0x423c]
push esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x4240], esi
call fcn.0042b460
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x4000
lea edx, [ebp - 0x4240]
push edx
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x23c]
shr edi, 2
mov dword [ebp - 0x240], edi
cmp eax, esi
je 0x409c09
call fcn.00409170
test al, al
je 0x409c09
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x21c], ax
call fcn.0042b460
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], esi
call fcn.00406b00
xor ebx, ebx
cmp edi, esi
ja 0x409b74
cmp dword [ebp - 0x220], 8
jb 0x409b54
mov edx, dword [ebp - 0x234]
push edx
call fcn.00438d27
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [ebp + ebx*4 - 0x4240]
cmp eax, esi
je 0x409bed
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409bed
push 0x105
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x409be6
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409bb3
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.0040ec00
test eax, eax
je 0x409bf7
mov edi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x409b72
jmp 0x409b3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x238]
call fcn.004025e0
mov al, 1
jmp 0x409b56
Function at 0x409c10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b1b
mov eax, dword fs:[0]
push eax
mov eax, 0x4234
call fcn.004306e0
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x3ffc
lea eax, [ebp - 0x423c]
push esi
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x4240], esi
call fcn.0042b460
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
push 0x4000
lea edx, [ebp - 0x4240]
push edx
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x23c]
shr edi, 2
mov dword [ebp - 0x240], edi
cmp eax, esi
je 0x409db9
call fcn.00409170
test al, al
je 0x409db9
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x21c], ax
call fcn.0042b460
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], esi
call fcn.00406c10
xor ebx, ebx
cmp edi, esi
ja 0x409d24
cmp dword [ebp - 0x220], 8
jb 0x409d04
mov edx, dword [ebp - 0x234]
push edx
call fcn.00438d27
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [ebp + ebx*4 - 0x4240]
cmp eax, esi
je 0x409d9d
push eax
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409d9d
push 0x105
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x409d96
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409d63
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
call fcn.0040ec00
test eax, eax
je 0x409da7
mov edi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x409d22
jmp 0x409cec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x238]
call fcn.004025e0
mov al, 1
jmp 0x409d06
Function at 0x409dc0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44171b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov word [ebp - 0x230], ax
push eax
mov eax, 0x445d34
lea esi, [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
call fcn.00402a90
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x218], cx
call fcn.0042b460
lea edx, [ebp - 0x218]
add esp, 0xc
mov eax, edi
sub edx, edi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409e50
lea eax, [ebp - 0x218]
push 0x445c54
push eax
call fcn.0043958f
add esp, 8
mov edi, 8
test eax, eax
je 0x409f0e
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409e85
sub ecx, esi
sar ecx, 1
push eax
mov eax, ecx
lea edx, [ebp - 0x234]
call fcn.0040ea60
push 0x445c54
mov eax, 1
lea edx, [ebp - 0x234]
call fcn.0040ea60
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x409ecb
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409ef7
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x409eea
lea eax, [ebp - 0x230]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409f45
push 0x445c54
push 0
call fcn.0043958f
add esp, 8
test eax, eax
jne 0x409e80
cmp dword [ebp - 0x21c], edi
jb 0x409f25
mov edx, dword [ebp - 0x230]
push edx
call fcn.00438d27
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x21c], edi
jb 0x409f5c
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00438d27
add esp, 4
xor eax, eax
jmp 0x409f2a
Function at 0x409f60
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4416f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x452284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.jscontent.js
mov eax, 0xe
lea edx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.0040ea60
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x409fad
lea eax, [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a064
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.00437be0
mov ecx, dword [ebp - 0x1c]
inc ecx
push ecx
mov edi, eax
push ebx
push edi
call fcn.0042b460
mov eax, dword [ebp - 0x1c]
add esp, 0x10
push ebx
lea edx, [ebp - 0x10]
push edx
push eax
push edi
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a064
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a020
sub eax, edx
push eax
push edi
lea eax, [ebp + 0x24]
call fcn.0040d2f0
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x14], ebx
jae 0x40a04c
lea eax, [ebp + 0x28]
mov edx, dword [ebp + 0x38]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 8
jb 0x40a076
mov eax, dword [ebp + 0xc]
push eax
call fcn.00438d27
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x3c], 0x10
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0xc], cx
jb 0x40a098
mov edx, dword [ebp + 0x28]
push edx
call fcn.00438d27
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x40d050
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442020
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x452284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00409c10
cmp al, 1
jne 0x40d0a3
cmp dword [ebp + 0x20], 0x10
jb 0x40d09c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x40d170
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00402610
push esi
call fcn.0040b5b0
cmp al, bl
je 0x40d08a
lea esi, [ebp - 0x2c]
call fcn.00407420
mov ecx, esi
push ecx
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00403bb0
mov eax, dword [ebp - 0x44]
add esp, 4
cmp dword [ebp - 0x30], 0x10
jae 0x40d0f4
lea eax, [ebp - 0x44]
push 0x6f
push eax
call fcn.0040d190
mov eax, dword [ebp - 0x28]
mov esi, 8
cmp dword [ebp - 0x14], esi
jae 0x40d10c
lea eax, [ebp - 0x28]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne byte [ebp - 0x49]
cmp dword [ebp - 0x30], 0x10
jb 0x40d12d
mov edx, dword [ebp - 0x44]
push edx
call fcn.00438d27
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
cmp dword [ebp - 0x14], esi
jb 0x40d14b
mov eax, dword [ebp - 0x28]
push eax
call fcn.00438d27
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], cx
jb 0x40d16d
mov edx, dword [ebp + 0xc]
push edx
call fcn.00438d27
add esp, 4
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425608
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40d190
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x448738
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40d23a
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push 0x445a18
push ecx
mov dword [ebp + 0xc], eax
call fcn.004257ab
mov esi, eax
add esp, 8
test esi, esi
je 0x40d225
mov edx, dword [ebp + 0xc]
push esi
push 1
push ebx
push edx
call fcn.00425b33
push esi
call fcn.00425955
add esp, 0x14
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d7c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ff2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x452284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x4487e4
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.0040e8c0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0040f620
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x455118]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.0040edb0
test eax, eax
jne 0x40d8ba
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40d8a9
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x40d8ba
push ebx
call fcn.00403770
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f620
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44084b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x452284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00438097
push 4
mov dword [ebp - 4], 0
call fcn.00438e1b
mov edi, eax
add esp, 4
test edi, edi
je 0x40f69c
call fcn.00437f08
mov dword [edi], eax
call fcn.00437d36
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00438058
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f692
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00438080
jmp 0x40f69e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x410258
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41028c
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x410288
cmp esi, eax
jae 0x41028c
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x410278
cmp esi, eax
jb 0x410292
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret