joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Read .ini file
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x104
push 0x4030d8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401021
jmp 0x401165
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x4030d8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401060
push 0x10
push section..data
push str.Something_is_wrong_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401165
push 0
push 0
push 0x4e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x1a
push 0x4030a0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40301c
push 0x4030d8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 0x4030d5]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4030d8
push 0x1b
push 0x4030bc
push 0
push str.flag
push str.reverseme
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4010e6
push 0x10
push 0x403034
push str.Flagnya_tidak_ditemukan..._wkwkwkw
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401165
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0
jmp 0x4010ff
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1a
jge 0x401135
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x4030bc]
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4030a0]
xor ecx, eax
add ecx, 1
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x402030]
cmp ecx, eax
je 0x401133
mov dword [ebp - 0xc], 0
jmp 0x4010f6
cmp dword [ebp - 0xc], 1
jne 0x401151
push 0x40
push str.Selamat
push str.Selamat__flagnya_benar_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401165
push 0x10
push str.Oops
push str.Flagnya_masih_salah_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..retplne
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66526ae4
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x101d642d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4011c5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x4011d4
mov eax, dword [eax + 4]
jmp 0x4011d7
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4018be
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
mov ebx, ecx
call fcn.00436f80
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00436f80
mov dword [ebp - 0x70], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
inc eax
push eax
call fcn.0045357b
add esp, 0x1c
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 8], eax
jb 0x401906
mov esi, dword [esi + 4]
jmp 0x401909
add esi, 4
push esi
push eax
call fcn.00436fe0
pop ecx
pop ecx
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.004015d2
cmp dword [eax + 0x18], 0x10
jb 0x401927
mov eax, dword [eax + 4]
jmp 0x40192a
add eax, 4
cmp dword [ebx + 0x18], 0x10
jb 0x401935
mov ebx, dword [ebx + 4]
jmp 0x401938
add ebx, 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
test eax, eax
push 1
lea ecx, [ebp - 0x2c]
setne bl
call fcn.0040117c
push dword [ebp + 8]
call fcn.00453576
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x401f3b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401f55
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x401f7e
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401f89
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40254e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x48ed30]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00401f06
cmp eax, esi
jne 0x4025d6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40259f
lea eax, [ebp - 0x70]
push eax
call fcn.0040254e
cmp eax, esi
jne 0x4025d5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x402592
call fcn.00401ea1
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401ea1
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.00436708
add ebp, 0x94
leave
ret 4
Function at 0x40996f
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 0x409984
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x409996
xor eax, eax
jmp 0x4099c8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4099ba
cmp esi, eax
jae 0x409992
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4099ac
cmp esi, eax
jae 0x409992
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40bc21
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40bc89
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x40bc4f
cmp dword [esi + 8], 0
je 0x40bc87
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x40bc41
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
test eax, eax
je 0x40bc80
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x40bcdc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bd40
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40bd39
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40bd39
lea eax, [ebp - 8]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
and eax, 0x27
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
leave
ret

Function at 0x40be1c
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
jne 0x40be3d
lea ecx, [esp + 4]
push ecx
push eax
push esi
push 0x40bc8d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x40c04a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
add eax, 2
push edi
push eax
call fcn.0045357b
cmp dword [esi + 0x18], 0x10
pop ecx
mov edi, eax
jb 0x40c070
mov eax, dword [esi + 4]
jmp 0x40c073
lea eax, [esi + 4]
push eax
push edi
call fcn.00436fe0
mov eax, dword [esi + 0x14]
push 0x1e
mov byte [edi + eax + 1], 0
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00436f80
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edi
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ebx, eax
neg ebx
sbb bl, bl
push edi
inc bl
call fcn.00453576
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40ee1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx + 0x14]
call fcn.00407c01
mov esi, 0x472204
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x14], edi
jbe 0x40ee6b
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.00401149
mov ecx, edi
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
xor cl, byte [eax]
inc edi
mov byte [esi], cl
cmp edi, dword [ebx + 0x14]
jb 0x40ee48
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f054
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x45f1b9
call fcn.00436808
sub esp, 0x74
mov eax, dword [0x48ed30]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040ef93
mov dword [esp], 0x471238
push eax
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040519a
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004051e8
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040117c
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040117c
mov eax, dword [ebp - 0x28]
push 0x10
pop esi
cmp dword [ebp - 0x14], esi
jae 0x40f0c6
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f122
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x80]
call fcn.004015d2
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0041fc4f
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.0040117c
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x40f102
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.0041f967
cmp eax, 0xffffffff
jne 0x40f11b
xor bl, bl
jmp 0x40f16c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x28]
jae 0x40f12d
lea ebx, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], esi
jb 0x40f13a
mov edx, dword [eax + 4]
jmp 0x40f13d
lea edx, [eax + 4]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], esi
jb 0x40f14a
mov ecx, dword [eax + 4]
jmp 0x40f14d
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], esi
jb 0x40f15a
mov eax, dword [eax + 4]
jmp 0x40f15d
add eax, 4
push ebx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.00436708
leave
ret
Function at 0x40f190
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x45f1e9
call fcn.00436808
sub esp, 0x47c
mov eax, dword [0x48ed30]
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x488]
xor edi, edi
mov esi, 0x400
push eax
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], esi
call fcn.0040ef93
mov dword [esp], 0x471238
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 4], edi
call fcn.0040519a
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004051e8
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x46c]
call fcn.0040117c
push edi
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.0040117c
mov eax, dword [ebp - 0x28]
push 0x10
pop edi
cmp dword [ebp - 0x14], edi
jae 0x40f223
lea eax, [ebp - 0x28]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], edi
jb 0x40f238
add eax, 4
mov edx, dword [eax]
jmp 0x40f23d
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40f24c
add eax, 4
mov ecx, dword [eax]
jmp 0x40f251
add eax, 4
mov ecx, eax
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], edi
jb 0x40f25e
mov eax, dword [ebx + 4]
jmp 0x40f261
lea eax, [ebx + 4]
push dword [ebp - 0x450]
lea edi, [ebp - 0x448]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push ecx
push eax
call edi
lea ecx, [eax + 1]
cmp ecx, esi
jne 0x40f357
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.00401160
mov byte [ebp - 4], 5
jmp 0x40f29f
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x44c]
add eax, eax
push eax
mov dword [ebp - 0x44c], eax
call fcn.0045357b
mov esi, eax
mov byte [esi], 0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x40f2c5
lea eax, [ebp - 0x28]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x40f2db
add eax, 4
mov edx, dword [eax]
jmp 0x40f2e0
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40f2f0
add eax, 4
mov ecx, dword [eax]
jmp 0x40f2f5
add eax, 4
mov ecx, eax
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
jb 0x40f300
mov eax, dword [eax]
push dword [ebp - 0x450]
push dword [ebp - 0x44c]
push esi
push edx
push ecx
push eax
call edi
push esi
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.00401575
push esi
call fcn.00453576
cmp dword [ebp - 0x44c], 0x989680
pop ecx
jg 0x40f33d
inc ebx
cmp ebx, dword [ebp - 0x44c]
je 0x40f29c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.00404ec1
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0040117c
jmp 0x40f371
test eax, eax
mov ecx, dword [ebp + 8]
jbe 0x40f367
lea eax, [ebp - 0x448]
push eax
jmp 0x40f36c
push 0x470898
call fcn.004015b0
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00436708
leave
ret
Function at 0x411c78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x411c9f
push 0x48d368
lea ecx, [ebp - 0xc]
call fcn.00437afa
push 0x484948
lea eax, [ebp - 0xc]
push eax
call fcn.00436f3d
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x411cc1
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x411cb1
pop edi
pop esi
leave
ret 8
Function at 0x4136c4
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x45fc72
call fcn.00436808
mov eax, 0x2960
call fcn.00437500
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0xd], bl
jne 0x4136ea
call fcn.0041352d
movsx eax, al
push eax
lea eax, [ebp - 0x25c]
push str.._c:
push eax
call fcn.0043790b
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x413900
push esi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00436f80
mov esi, 0x2710
push esi
lea eax, [ebp - 0x296c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00436f80
add esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x296c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4138f6
cmp dword [ebp - 0x2954], esi
jae 0x4138f6
cmp dword [ebp - 0x295c], esi
jae 0x4138f6
mov eax, esi
sub eax, dword [ebp - 0x2954]
push 0x64
pop ecx
cmp eax, ecx
jle 0x4137a1
mov eax, ecx
sub esi, dword [ebp - 0x295c]
dec eax
cmp esi, ecx
mov dword [ebp - 0x18], eax
jle 0x4137b1
mov esi, ecx
push edi
xor edi, edi
inc edi
dec esi
cmp eax, edi
jl 0x4138f5
cmp esi, edi
jl 0x4138f5
push ecx
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.00436f80
push 0x64
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.00436f80
mov eax, dword [ebp - 0x2954]
push dword [ebp - 0x18]
lea eax, [ebp + eax - 0x296c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004133e3
add esp, 0x24
test eax, eax
je 0x4138f5
mov eax, dword [ebp - 0x295c]
lea eax, [ebp + eax - 0x296c]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.004395a0
movsx eax, byte [ebp - 0xf8]
push eax
call fcn.00438772
add esp, 0x10
test eax, eax
jne 0x413850
movsx eax, byte [ebp - 0xe5]
push eax
call fcn.00438772
test eax, eax
pop ecx
je 0x4138f5
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004015b0
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.00413632
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040144d
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.0040117c
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.0040117c
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004015b0
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 2
call fcn.00413632
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.0040144d
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040117c
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.0040117c
cmp dword [esi + 0x14], ebx
jne 0x4138f1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], ebx
je 0x4138f5
mov byte [ebp - 0xd], 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x413910
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2904
call fcn.00437500
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2904]
push eax
mov dword [ebp - 4], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x41394e
mov ecx, dword [ebp + 8]
push 0x470898
call fcn.004015b0
jmp 0x413a03
lea eax, [ebp - 0x2904]
xor ecx, ecx
push esi
movzx edx, byte [eax + 0x196]
movzx esi, byte [eax + 0x197]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x198]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x199]
shl edx, 8
add edx, esi
je 0x4139e5
cmp dword [ebp + 0xc], 0
jl 0x41398f
cmp dword [ebp + 0xc], ecx
jne 0x4139ea
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0043a0d2
add esp, 0x24
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push eax
jmp 0x4139fa
cmp dword [ebp + 0xc], ecx
je 0x4139f5
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x413957
push 0x470898
mov ecx, dword [ebp + 8]
call fcn.004015b0
pop esi
mov eax, dword [ebp + 8]
leave
ret

Function at 0x413a08
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45fc84
call fcn.00436808
sub esp, 0x120
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
jne 0x413a2e
call fcn.0041352d
mov byte [ebp + 8], al
push esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00401160
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
mov dword [ebp - 4], ebx
call fcn.00404913
push 0x4767f4
lea ecx, [ebp - 0x28]
call fcn.004048f6
mov esi, 0x104
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00436f80
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x413a7e
lea eax, [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop esi
je 0x413aa6
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push eax
call fcn.00401575
push ebx
lea ecx, [ebp - 0x28]
push 1
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret