joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42299b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42b740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040b023
push 4
mov dword [ebp - 4], 0
call fcn.0040be94
mov edi, eax
add esp, 4
test edi, edi
je 0x4033a0
call fcn.0040ace1
mov dword [edi], eax
call fcn.0040aaa0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040a9d5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403396
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040a9fd
jmp 0x4033a2
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
Function at 0x4046f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42b740]
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
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x404811
cmp byte [edi + 0x49], bl
je 0x404811
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404805
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x404765
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40477d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4047a6
dec eax
je 0x4047aa
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x404800
jmp 0x40480c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4047ba
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4047e3
cmp ebx, 0x10
jae 0x4047c9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040d27a
add esp, 0x10
cmp esi, eax
jne 0x4047fd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x404809
test esi, esi
jne 0x404771
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401550
jmp 0x40476b
lea ecx, [ebp - 0x2c]
call fcn.00401430
xor al, al
jmp 0x404813
lea ecx, [ebp - 0x2c]
call fcn.00401430
mov al, 1
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.0040c344
mov esp, ebp
pop ebp
ret
Function at 0x407460
Capabilities:
Create process on windows
Delete file
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230eb
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:HWID.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xff
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4075db
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x42435c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4075db
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x4075db
lea edx, [ebp - 0x110]
push edx
call fcn.00401f70
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401f70
mov ecx, dword [ebp - 0x620]
add eax, esi
lea eax, [eax + ecx + 0x1f3a7]
push eax
lea edx, [ebp - 0x5f8]
push 0x424a98
push edx
call fcn.0040c7fa
sub esp, 8
mov ecx, esp
lea eax, [ebp - 0x5f8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x624], esp
mov byte [ecx], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407566
sub eax, esi
push eax
lea eax, [ebp - 0x5f8]
push eax
call fcn.00401600
lea ecx, [ebp - 0x614]
push ecx
call fcn.00408f30
add esp, 0x20
mov esi, 0x10
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x40759e
mov eax, dword [eax]
push eax
push str.Connection_Failure..._nTelah_terjadi_kesalahan___Mungkin_:_n___Server_down_n___Cheat_disuspend_n___Anda_belum_terdaftar._n___Durasi_Anda_telah_habis._n___Hubungi_Seller_Anda_untuk_info_lebih_lanjut___n___Terima_Kasih____n_n_nYour_HWID_:__s
call fcn.00406720
add esp, 8
cmp dword [ebp - 0x600], esi
jb 0x4075c3
mov edx, dword [ebp - 0x614]
push edx
call fcn.0040b3f4
add esp, 4
push 1
push 0
push 0
push str.C:HWID.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c344
mov esp, ebp
pop ebp
ret
Function at 0x408f30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423368
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x80], eax
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 4], eax
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x408f95
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00408cf0
lea ecx, [ebp - 0x7c]
call fcn.00408da0
push esi
lea ecx, [ebp - 0x7c]
call fcn.00408e80
cmp dword [ebp + 0x20], 0x10
jb 0x408fc5
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040b3f4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c344
mov esp, ebp
pop ebp
ret

Function at 0x40c344
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b740]
jne 0x40c34e
repz ret
jmp fcn.004122dc

Function at 0x4175c3
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 0x4175ea
call fcn.0040f064
mov dword [eax], esi
call fcn.0040f051
push 0x16
pop esi
mov dword [eax], esi
call fcn.00412948
mov eax, esi
jmp 0x41763f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4175d0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417617
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f077
pop ecx
call fcn.0040f051
mov eax, dword [eax]
jmp 0x41763f
test al, 0x10
jne 0x41763d
test al, 1
je 0x41763d
test byte [ebp + 0xc], 2
je 0x41763d
call fcn.0040f064
mov dword [eax], 5
call fcn.0040f051
mov dword [eax], 0xd
jmp 0x41760e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41794c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411c92
and dword [ebp - 0x14], 0
cmp dword [0x523484], 0
mov dword [ebp - 0x18], eax
jne 0x4179ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417aa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417aa7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x523484], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x523488], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x52348c], eax
call edi
push eax
call esi
mov dword [0x523494], eax
test eax, eax
je 0x4179ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x523490], eax
mov eax, dword [0x523490]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417a58
cmp dword [0x523494], ecx
je 0x417a58
push eax
call esi
push dword [0x523494]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417a58
test ebx, ebx
je 0x417a58
call edi
test eax, eax
je 0x417a4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417a4f
test byte [ebp - 8], 1
jne 0x417a58
or dword [ebp + 0x10], 0x200000
jmp 0x417a8b
mov eax, dword [0x523488]
cmp eax, dword [ebp - 0x18]
je 0x417a8b
push eax
call esi
test eax, eax
je 0x417a8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417a8b
mov eax, dword [0x52348c]
cmp eax, dword [ebp - 0x18]
je 0x417a8b
push eax
call esi
test eax, eax
je 0x417a8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x523484]
call esi
test eax, eax
je 0x417aa7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417aa9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c344
leave
ret
Function at 0x42b040
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
je 0x42b411
jne 0x42b411
mov dword [0x11554874], 0x113a69b0
mov eax, dword [edx*4 + 0x43eb90]
mov eax, 0xf295e8
mov edx, dword [0x1153e860]
fld dword [ecx + 0x2c]
mov cx, word [ecx + 8]
out dx, al
adc al, 0xed
inc eax
fnsave dword [edi + 0xff25c6]
add byte [eax], al
je 0x42b238
jne 0x42b238
mov dword [esi + 0xe5c], edx
mov eax, 0x10d8c7c4
mov dword [ebp - 0x4010], eax
mov dword [edi + 0x18], 0x111779a0
mov dword [0xf50908], eax
mov edi, 0xbf650b00
push dword [0x44406c]
push 0x1148e268
push 0x1153be70
stc
imul edx, edx, 0x91f8a89b
pop ecx
mov eax, 0xd89642a
add byte [eax], al
add byte [eax], al
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0046a5ef
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0]
push eax
jmp 0x42b1f7
sub esp, 0x120
mov eax, dword [0x534e78]
jmp 0x42b356
shr ecx, 8
xor ecx, dword [eax*4 + 0x401240]
inc esi
push 0x42b52e
ret
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
je 0x42b505
jne 0x42b505
mov byte [eax - 1], 0
mov dword [0x44f014], edx
adc byte [ecx + esi], ch
mov byte [edi + 3], 1
movzx eax, word [edx*2 + 0xadd7e0]
lea eax, [ecx + eax + 0x3af]
add eax, dword [ebp - 0x440]
push 0x1c8a
mov edx, dword [0x11551dd0]
mov esi, dword [0x9b3700]
push 0xb12110
push 0x115409a4
mov edx, dword [ebp + 0x459b3386]
adc dword [edx], eax
and al, 0x8d
test esp, edx
invalid
push 0xfffffffffffffffe
push 0x478420
je 0x42b63f
jne 0x42b63f
cmp dword [ebp - 0x14], edi
mov eax, 0x105b9a34
push 0x11107130
push 0x422580
test al, 0x10
mov esi, dword [esi - 0x18]
mov dx, word [0xcda09c]
push 0x487eb0
push 0x697acbdc
push 0x766
mov dword [0xe49010], eax
mov eax, dword [0x1153bdf8]
inc ebp
inc edx
imul eax, dword [ebp - 0x57], 0xffffff88
popfd
loopne 0x42b462
invalid
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
push 0x42b5c4
ret
push eax
jmp 0x42b4c4
push 0x46ac50
jmp 0x42b1aa
Function at 0x430ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x431036
push 0x431001
ret
cmove esi, eax
push 0x43111a
ret
xor eax, eax
cmp word [esi], ax
je 0x430f05
jne 0x430f05
mov edx, dword [0xe4ab0c]
mov eax, dword [0x112b6f28]
mov dword [0xe4b440], ebx
cmp word [ebp - 0x1a], 0xffff
cmp ecx, dword [eax + 0x28]
push 0xb03028
mov ecx, dword [0x42ced0]
push 0x4145a4
cmp dword [0x4137fc], ebx
jmp dword [str.flTt]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
jmp 0x431059
mov ah, 0x85
test byte [edi], 0x84
pop ebx
add byte [eax], al
add bh, bh
jne 0x431070
test esi, esi
je 0x4310bc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4310b4
lea ebx, [ebx]
je 0x4310e9
jne 0x4310e9
mov eax, dword [0x100b4334]
mov dword [0x699772a4], 2
cmp dword [0xd12fa4], ebx
inc esp
jnp 0x431058
call 0xb64d7b14
shl byte [esi + 0x49], 0xf
test dword [0x3b000000], esi
bnd jb 0x430f5a
cmp esi, edx
jb 0x430f5a
xor eax, eax
push 0x430f57
ret
cmp esi, edx
jae 0x4310bc
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
push 0x4310ad
ret
Function at 0x47527e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x534e78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0046e60f
mov dword [ebp - 0x14], eax
cmp dword [0x536d98], edi
jne 0x47536f
push 0x800
push edi
push 0x402d08
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4752fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x47544f
push 0x402d08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x47544f
push 0x402d20
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47544f
push eax
call ebx
push 0x402d2c
push esi
mov dword [0x536d98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d3c
push esi
mov dword [0x536d9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x402d50
push esi
mov dword [0x536da0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x536da8], eax
test eax, eax
je 0x47536c
push 0x402d6c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x536da4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x475394
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x475387
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4753a9
push 4
pop eax
jmp 0x475451
cmp dword [ebp - 0x14], edi
je 0x4753a9
push dword [0x536d98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x47538e
mov eax, dword [0x536da4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x475407
cmp dword [0x536da8], esi
je 0x475407
push eax
call ebx
push dword [0x536da8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x475407
test eax, eax
je 0x475407
call ecx
test eax, eax
je 0x4753fc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4753fc
test byte [ebp - 8], 1
jne 0x475407
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x475437
mov eax, dword [0x536d9c]
cmp eax, esi
je 0x475434
push eax
call ebx
test eax, eax
je 0x475434
call eax
mov edi, eax
test edi, edi
je 0x475434
mov eax, dword [0x536da0]
cmp eax, esi
je 0x475434
push eax
call ebx
test eax, eax
je 0x475434
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x536d98]
call ebx
test eax, eax
je 0x47544f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x475451
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a5ef
leave
ret
Function at 0x401520
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0
push str.eba7880b279f33fbf183a5
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401553
jmp 0x401635
lea eax, [ebp - 0x148]
push eax
push 0x452544
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x401579
jmp 0x401635
cmp dword [ebp - 0x258], 0
jne 0x401628
push 0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4015e2
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x4015be
jmp 0x401635
mov ecx, dword [ebp - 0x25c]
and ecx, 1
jne 0x4015e0
mov edx, dword [ebp - 0x25c]
or edx, 1
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4015f2
push str.68613c217d8508d368
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x401635
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401623
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401621
mov dword [ebp - 0x258], 1
jmp 0x401623
jmp 0x401635
jmp 0x401579
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret
Function at 0x401650
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.01ff83ed4121e265
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x401681
jmp 0x401782
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0xa5
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x9c
xor edx, edx
div dword [ebp - 0x20]
add edx, 0x26
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0xda
mov edx, 0x43
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x4016d6
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x4016f6
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4016cd
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x401726
jmp 0x401782
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40174a
jmp 0x401782
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.4e43790ddcbf845118fd2eaf9
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4017c1
jmp 0x4018c2
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0xed
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x6a
xor edx, edx
div dword [ebp - 0x20]
add edx, 0x5c
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0xc3
mov edx, 0x5c
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x401816
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x401836
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40180d
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x401866
jmp 0x4018c2
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40188a
jmp 0x4018c2
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret