joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f437
Capabilities:
Enumerate files on windows

Disassembly:
push 0x27c
mov eax, 0x46511b
call fcn.004601a1
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x27c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
push 0x479788
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00401f04
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x278]
push ebx
push ebx
push ebx
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41f4b5
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [esi], 0
mov byte [esi + 0xc], 0
jmp 0x41f57a
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 4], 2
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x24c]
push eax
call fcn.00401984
push 0x4785d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00416737
test al, al
jne 0x41f514
push 0x479790
lea ecx, [ebp - 0x28]
call fcn.00416737
test al, al
jne 0x41f514
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x288]
call fcn.0040fb3d
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41f534
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401952
jmp 0x41f4bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
cmp eax, 0x12
je 0x41f558
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [esi], 0
mov byte [esi + 0xc], 0
call fcn.00401952
jmp 0x41f56f
call fcn.00401952
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
call fcn.00403184
mov byte [esi + 0xc], 1
test ebx, ebx
je 0x41f57a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x288]
call fcn.0040fbdb
lea ecx, [ebp + 8]
call fcn.00401952
mov eax, esi
call fcn.0046014b
ret
Function at 0x41f5a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push 0x48
mov eax, 0x46515b
call fcn.004601a1
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41f5b8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f5cb
xor al, al
jmp 0x41f6a8
test eax, 0x410
jne 0x41f5eb
cmp dword [esi + 0x14], 8
jb 0x41f5da
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x41f6a8
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
push esi
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004019f9
lea ecx, [ebp - 0x54]
call fcn.0041f437
add esp, 0x18
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x48], bl
je 0x41f6a6
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
cmp edi, eax
je 0x41f684
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004019f9
push 0x478dcc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401f04
push edi
mov ecx, eax
call fcn.00402164
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004019f9
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00401952
lea ecx, [ebp - 0x28]
call fcn.0041f5a0
lea ecx, [ebp - 0x28]
test al, al
je 0x41f6ae
mov byte [ebp - 4], bl
call fcn.00401952
add edi, 0x18
cmp edi, dword [ebp - 0x44]
jne 0x41f622
cmp dword [esi + 0x14], 8
jb 0x41f68c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
cmp byte [ebp - 0x48], 0
je 0x41f6a6
lea ecx, [ebp - 0x54]
call fcn.0040fbdb
mov al, bl
call fcn.0046014b
ret
call fcn.00401952
jmp 0x41f698

Function at 0x41fa96
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46519b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48c00c]
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
mov esi, ecx
mov ecx, dword [esi + 0x54]
xor edi, edi
cmp dword [esi + 0x34], 2
mov eax, 0x800000
cmove edi, eax
lea eax, [ebp - 0x29]
push eax
mov eax, dword [esi + 0x58]
lea eax, [ecx + eax*2]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00401fe8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x78]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x41fafe
mov eax, dword [eax]
push edi
xor edx, edx
push edx
push edx
push edx
push ecx
push eax
push dword [esi + 0x70]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x74], edi
test eax, eax
je 0x41fb22
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
setne bl
test edi, edi
jne 0x41fb3c
mov ecx, esi
mov dword [esi + 0x13c], 5
call fcn.004202b6
lea ecx, [ebp - 0x28]
call fcn.00401952
mov al, bl
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.00429be3
leave
ret
Function at 0x41fb60
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4651c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48c00c]
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
mov edi, ecx
mov esi, dword [edi + 0x128]
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x28], ax
mov eax, dword [edi + 0x12c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x41fc1c
push esi
lea ecx, [ebp - 0x28]
call fcn.00401896
push 0x479798
lea ecx, [ebp - 0x28]
call fcn.00401f04
mov ecx, eax
lea eax, [esi + 0x18]
push eax
call fcn.00402164
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10000000
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x74]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne cl
mov byte [ebp - 0x29], cl
test eax, eax
jne 0x41fc10
mov ecx, edi
mov dword [edi + 0x13c], 3
call fcn.004202b6
mov cl, byte [ebp - 0x29]
test cl, cl
je 0x41fc1e
add esi, 0x30
cmp esi, dword [ebp - 0x30]
jne 0x41fbb2
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00401952
mov al, bl
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.00429be3
leave
ret
Function at 0x420a3f
Capabilities:
Read http header

Disassembly:
push 0x2c
mov eax, 0x4652c1
call fcn.0046016d
mov ebx, ecx
and dword [ebp - 0x1c], 0
mov esi, dword [ebx + 4]
add esi, 0xc
mov ecx, esi
mov dword [ebp - 0x2c], esi
call fcn.0041714f
xor eax, eax
inc eax
xor edx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov eax, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 4]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push ecx
push edx
push dword [ebp + 0xc]
push 0xffff
push dword [eax + 0x74]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x420b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420b45
cmp dword [ebp - 0x14], 0
je 0x420b45
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
mov ecx, eax
call fcn.0040df85
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x38]
push dword [ebp + 0xc]
push 0xffff
push dword [eax + 0x74]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x420b45
mov edx, dword [ebp - 0x34]
mov eax, dword [edi + 4]
add edx, 0xfffffffe
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
cmp dword [edi + 8], eax
je 0x420b24
lea esi, [ebp - 0xd]
push esi
push edx
push ecx
mov ecx, eax
call fcn.00401fe8
add dword [edi + 4], 0x18
jmp 0x420b34
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.00420b66
mov eax, dword [ebp - 0x18]
push 0
pop edx
cmp eax, 0x2f76
jne 0x420a89
lea ecx, [ebp - 0x38]
call fcn.0040d75b
mov ecx, dword [ebp - 0x2c]
call fcn.00417157
mov eax, edi
call fcn.00460136
ret 8
Function at 0x42fc70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4660c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x48c340]
cmp eax, 0xffffffff
jne 0x42fca6
xor ebx, ebx
jmp 0x42fcaf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x42fcef
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x42fd2e
test esi, esi
jne 0x42fd32
push 0x42fa80
push 0x493d28
call fcn.0042f870
mov eax, dword [0x48c340]
add esp, 8
cmp eax, 0xffffffff
je 0x42fcef
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x42fd1c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x42fd1c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42fd74
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x42fd5d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x42fd32
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x42fcc0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42fd99
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x42fd99
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.004219fe
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x42fd80
jmp 0x42fcc0

Function at 0x43ef02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ed81

Function at 0x44b363
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4180f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x49e288
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41819a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41819a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41819a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41819a
push 0x44
call fcn.00489305
add esp, 4
test eax, eax
je 0x418164
mov esi, eax
call fcn.00416900
mov ecx, eax
jmp 0x418166
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00472470
mov ecx, dword [edi + 0x600]
inc dword [0x4af174]
mov dword [0x4ad194], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, edi
call fcn.0042fe10
pop esi
add esp, 0x10
ret 8
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4058e4
pop dword [ebp - 0x30]
mov eax, 0xd7414b9c
sub eax, 0xd700f2b8
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5962c8de
sub dword [ebp - 0x40], 0xb108393
mov dword [ebp - 0x3c], 0x91ffaa7a
sub dword [ebp - 0x3c], 0x5fcc5e35
mov dword [ebp - 0x38], 0xcb8103b1
sub dword [ebp - 0x38], 0x7f34bf83
mov dword [ebp - 0x34], 0xbaa12eb5
sub dword [ebp - 0x34], 0xbaa12eb5
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x5007669d
sub dword [ebp - 0x40], 0xdb94fd47
mov dword [ebp - 0x3c], 0x2aeabcca
add dword [ebp - 0x3c], 0x1681a4ab
mov dword [ebp - 0x38], 0xdce3aa54
add dword [ebp - 0x38], 0x868bc218
mov dword [ebp - 0x34], 0xe0ddc601
sub dword [ebp - 0x34], 0xe0ddc601
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3b9d8
push 0
call eax
mov ecx, 0x5a99
xor edx, edx
add edx, eax
mov ebx, 0xb34478e4
sub ebx, 0xb2ff74e4
add ebx, dword [ebp - 0x30]
mov esi, 0x7e939178
add esi, 0x6b16c492
xor dword [ebp - 4], edi
mov edi, dword [ebx]
add dword [ebp - 0x14], 0x960a007
add edi, esi
add dword [ebp - 0x18], eax
mov dword [edx], edi
add dword [ebp - 0x20], edx
add edx, 0x689bfb2
add edx, 0xf9764052
add ebx, 4
loop 0x4059f8
add eax, 0x15d37
xor ebx, ebx
add ebx, eax
add eax, 0x4aeff91d
add eax, 0xb51006e8
mov ecx, 0xfb15aef2
sub ecx, 0xfad5aef2
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x10009417
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10009426
pop dword [ebp - 0x28]
mov eax, 0x10009426
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xcdbe2dad
add dword [ebp - 0x38], 0x8094179e
mov dword [ebp - 0x34], 0xc2a98f3c
sub dword [ebp - 0x34], 0x907642f7
mov dword [ebp - 0x30], 0xca6290a
add dword [ebp - 0x30], 0x3fa61b24
mov dword [ebp - 0x2c], 0xee031d29
add dword [ebp - 0x2c], 0x11fce2d7
lea eax, [ebp - 0x38]
push eax
mov eax, 0xbe782f47
add eax, 0x5188814d
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x5197941
sub dword [ebp - 0x38], 0x90a70feb
mov dword [ebp - 0x34], 0x1858f0c8
add dword [ebp - 0x34], 0x291370ad
mov dword [ebp - 0x30], 0x608eba87
add dword [ebp - 0x30], 0x2e0b1e5
mov dword [ebp - 0x2c], 0xb0628de5
add dword [ebp - 0x2c], 0x4f9d721b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x7508b197
add eax, 0x9af7feb5
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b41a
push 0
call eax
mov ecx, 0x1a0d36d8
add ecx, 0xe5f32054
xor ebx, ebx
add ebx, eax
mov esi, 0x10015000
add esi, dword [ebp - 0x28]
mov edi, 0x5f2b4d2e
sub edi, 0x946917d8
xor dword [ebp - 0x18], 0x6b2f78f8
mov edx, dword [esi]
sub dword [ebp - 0x18], 0xd02398b4
sub edx, edi
xor dword [ebp - 0x10], 0xbe4ac81c
mov dword [ebx], edx
add dword [ebp - 0x1c], 0x9481ec70
add ebx, 0xf2bbabc
add ebx, 0xf0d44548
add esi, 4
loop 0x1000953f
add eax, 0xf9f99d23
add eax, 0x607b260
mov ebx, eax
add eax, 0xf0e52ae4
add eax, 0xf1ad521
mov ecx, 0x1dbcc651
sub ecx, 0xdbcc651
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1c], 0xa
mov byte [ebp - 0x1b], 0xa
mov byte [ebp - 0x1a], 0xa
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
call fcn.004021a1
mov eax, 0x401c20
mov edi, 0x401a0b
sub eax, edi
mov dword [ebp - 0x24], eax
mov eax, 0x401f02
sub eax, fcn.00401ce6
mov dword [ebp - 0x20], eax
mov eax, 0x4019fa
sub eax, 0x401943
mov dword [ebp - 0x28], eax
mov eax, 0x40193a
sub eax, int.004015ee
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.RT_RCDATA
push 0x66
call fcn.00401450
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4010d7
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov esi, 0x40443c
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402350
add esp, 0xc
test eax, eax
je 0x40119f
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f17
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401f8f
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401ce6
push eax
call fcn.00401f8f
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x401943
push eax
jmp loc.00409244
mov dword [ebp - 4], ebx
call fcn.00401499
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
mov byte [ecx + section..data], al
jl 0x4011a2
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402350
add esp, 0xc
test eax, eax
je 0x40119f
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f17
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401f8f
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401ce6
push eax
call fcn.00401f8f
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x401943
push eax
call fcn.00401f8f
push dword [ebp - 0x2c]
lea eax, [ebp - 0x130]
push int.004015ee
push eax
call fcn.00401f8f
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push dword [ebp - 0x14]
push eax
call fcn.00401f8f
add esp, 0x48
lea eax, [ebp - 0x130]
push 0x100
push ebx
push eax
jmp loc.00409000
Function at 0x6ad41350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6ad413ab
cmp byte [esi + ebx - 1], 0xa
je 0x6ad4137f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6ad45084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6ad41900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x6ad45094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x6ad41ac0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x6ad45094]
movzx eax, al
bt eax, esi
jae 0x6ad41b20
mov ecx, dword [0x6ad45084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x6ad419c6
test byte [0x6ad42030], 8
jne 0x6ad41a60
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x6ad42040], 8
jne 0x6ad41a10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6ad41995
cmp esi, 3
jbe 0x6ad419d0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6ad440cc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x6ad41995
mov ecx, dword [0x6ad45094]
test ecx, ecx
je 0x6ad41b00
mov dword [esp], 0x6ad42040
call dword [0x6ad45094]
test al, 8
je 0x6ad4196c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x6ad4196c
mov ebx, dword [0x6ad45094]
test ebx, ebx
je 0x6ad41ae0
mov dword [esp], 0x6ad42030
call dword [0x6ad45094]
test al, 8
je 0x6ad41959
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x6ad4195f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6ad45094
call sym._load_func.part.0
jmp 0x6ad41920
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6ad45094
call sym._load_func.part.0
jmp 0x6ad41a6a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6ad45094
call sym._load_func.part.0
jmp 0x6ad41a1e
mov eax, 0xffffffff
jmp 0x6ad419c6