joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402452
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
xor eax, eax
push 3
inc eax
call fcn.00402392
cmp byte [0x404366], 0
jne 0x402534
push ebx
push edi
mov ebx, 0x404366
push ebx
push str.VisualFoxProRuntime.9
call fcn.004022d8
test eax, eax
mov edi, dword [sym.imp.MSVCR71.dll__access]
je 0x4024a5
push 0
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x4024a5
mov byte [0x404366], 0
jmp 0x402528
cmp byte [0x404366], 0
jne 0x402532
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40251f
add eax, 0xc
cmp eax, 0x105
jg 0x40251f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4030e8
lea eax, [ebp - 0x118]
push eax
call esi
push 3
call fcn.00402037
push eax
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push 0
push eax
call edi
test eax, eax
pop ecx
pop ecx
pop esi
jne 0x40251f
push 1
lea eax, [ebp - 0x118]
push eax
mov edx, 0x106
mov ecx, ebx
call fcn.00402000
cmp byte [0x404366], 0
jne 0x402532
xor eax, eax
inc eax
push 3
call fcn.00402392
pop edi
pop ebx
leave
ret
Function at 0x402873
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x403140
call fcn.00402b5c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [0x402bbc]
call edi
cmp word [eax], 0x5a4d
jne 0x4028b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4028b3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4028cb
cmp eax, 0x20b
je 0x4028b8
mov dword [ebp - 0x1c], ebx
jmp 0x4028df
cmp dword [ecx + 0x84], 0xe
jbe 0x4028b3
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4028d9
cmp dword [ecx + 0x74], 0xe
jbe 0x4028b3
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x404474], 0xffffffff
or dword [0x404478], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x404134]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x404130]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404470], eax
call fcn.00402ab6
call fcn.00402b56
cmp dword [0x404014], ebx
jne 0x40293f
push 0x401b56
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00402b44
push 0x40400c
push 0x404008
call sub.MSVCR71.dll__initterm
push 0x401afa
call fcn.00402aa4
mov eax, dword [0x40412c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x404128]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x402993
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x404004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x402a11
cmp al, bl
je 0x4029bd
cmp dword [ebp - 0x20], ebx
jne 0x402a11
mov al, byte [esi]
cmp al, bl
je 0x4029cd
cmp al, 0x20
ja 0x4029cd
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4029bd
mov dword [ebp - 0x58], ebx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
jne 0x402a09
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x402a66
cmp al, 0x22
jne 0x402a20
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x402a33
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4029ab
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402b97
ret
Function at 0x1004cc6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x1004d6c
cmp esi, 0xffffffff
je 0x1004d6c
push edi
push ebx
mov byte [ebp - 4], bl
xor eax, eax
push ebx
lea edi, [ebp - 3]
stosw word es:[edi], ax
push ebx
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push 3
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
je 0x1004d6c
cmp dword [ebp - 0xc], 3
jb 0x1004d6c
push 0x1001b5c
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1004d31
mov dword [ebp - 8], ebx
jmp 0x1004d6c
push 0x1001b58
lea eax, [ebp - 4]
push eax
call sub.cmutil.dll_CmCompareStringA
test eax, eax
je 0x1004d6c
xor edx, edx
xor eax, eax
mov cl, byte [ebp + eax - 4]
cmp cl, 0x30
jl 0x1004d65
cmp cl, 0x39
jg 0x1004d65
imul edx, edx, 0xa
movsx ecx, cl
inc eax
cmp eax, 3
lea edx, [edx + ecx - 0x30]
jl 0x1004d47
cmp edx, ebx
je 0x1004d6c
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x10084d1
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1008555
cmp dword [ebp + 0x14], ebx
je 0x1008555
push esi
push edi
mov esi, 0x104
push esi
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x100854f
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x100851b
cmp dword [ebp + 8], ebx
je 0x100852c
cmp dword [ebp + 0xc], ebx
je 0x100852c
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x1008543
cmp dword [ebp + 8], ebx
je 0x1008543
cmp dword [ebp + 0xc], ebx
je 0x1008543
add esi, esi
cmp esi, 0x100000
ja 0x100854f
push esi
push edi
call sub.cmutil.dll_CmRealloc
cmp eax, ebx
je 0x1008547
jmp 0x10084f0
cmp eax, ebx
jne 0x100854f
push edi
call sub.cmutil.dll_CmFree
xor edi, edi
mov eax, edi
pop edi
pop esi
jmp 0x1008557
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x1008bf8
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x1008d37
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1008d37
cmp byte [eax], 0
je 0x1008d37
cmp byte [ecx], 0
je 0x1008d37
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 8
pop ebx
push eax
call esi
mov edi, 0x10033f0
push edi
mov dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
lea esi, [ecx + eax + 1]
push esi
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 4], eax
test eax, eax
je 0x1008d0b
push edi
push dword [ebp + 8]
push 0x10033e8
push 0x800
push 0
push 0
push esi
push eax
call fcn.010053e1
xor ebx, ebx
add esp, 0x20
cmp eax, ebx
jge 0x1008c82
movzx ebx, ax
jmp 0x1008d0b
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call esi
test eax, eax
je 0x1008cef
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x1008ce4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
push ebx
push 0x1003388
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1008ce4
call edi
push eax
push 0x1003330
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1008d0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x10032d0
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push dword [ebp - 4]
call sub.cmutil.dll_CmFree
test ebx, ebx
jne 0x1008d1e
push 0x1003290
jmp 0x1008d23
push 0x1003258
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
jmp 0x1008d39
xor eax, eax
leave
ret 8
Function at 0x1008f2a
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
and dword [esi + 4], 0
push 0x10035dc
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push edi
xor ebx, ebx
inc ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
test eax, eax
jne 0x1008f69
xor eax, eax
jmp 0x1009061
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1008f7e
mov dword [esi + 4], ebx
jmp 0x100905f
push edi
push 0x10035ac
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x1008fb9
push edi
push 0x1003578
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
jmp 0x1008f62
push 0x100354c
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1009048
cmp eax, 0x80
je 0x100900d
cmp eax, 0x102
je 0x1009005
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x100350c
push dword [0x101135c]
call fcn.0100a43e
add esp, 0x10
jmp 0x1008fac
push edi
push 0x10034dc
jmp 0x1008f9e
push edi
push 0x1003498
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x1009048
push edi
push 0x1003460
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1008fac
push edi
mov dword [esi + 4], ebx
push 0x1003434
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x100909b
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 8], ebx
jne 0x10090b4
xor eax, eax
jmp 0x1009179
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10090f0
push dword [ebp + 8]
push 0x10036a8
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
jmp 0x1009177
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x7fff
jb 0x100910d
push dword [ebp + 8]
push 0x1003670
jmp 0x100915f
push esi
call sub.cmutil.dll_CmMalloc
mov edi, eax
cmp edi, ebx
je 0x1009159
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1009137
push dword [ebp + 8]
push 0x1003640
jmp 0x100915f
mov eax, edi
cmp byte [edi], bl
je 0x100916d
mov cl, byte [eax]
cmp cl, 9
je 0x1009155
cmp cl, 0xa
je 0x1009155
cmp cl, 0xd
je 0x1009155
inc eax
cmp byte [eax], bl
jne 0x100913d
jmp 0x100916d
mov byte [eax], bl
jmp 0x100916d
push esi
push 0x1003614
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x1009294
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1011040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10093ae
push esi
push edi
lea eax, [ebp - 0x214]
push eax
mov edi, 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009303
call esi
push eax
push 0x100376c
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
push 0x1002130
push edi
lea eax, [ebp - 0x214]
push eax
call fcn.01004e0f
lea eax, [ebp - 0x10c]
push eax
xor edi, edi
push edi
push 0x10023bc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x100932d
call esi
push eax
push 0x100373c
jmp 0x100935a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x218], eax
cmp eax, edi
jne 0x100936a
call esi
push eax
push 0x1003708
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
jmp 0x10093ac
push 0x100
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.01004e49
cmp eax, edi
jge 0x10093ac
push eax
push 0x10036d8
push dword [0x101135c]
call fcn.0100a43e
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x218], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
pop ebx
call fcn.010096ed
leave
ret 8
Function at 0x10096d2
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100fa10
call fcn.01009ba4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1012828
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1009489
cmp eax, esi
jne 0x100947c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100948c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1009463
xor esi, esi
inc esi
mov eax, dword [0x1012824]
cmp eax, esi
jne 0x100949f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10094ce
mov eax, dword [0x1012824]
test eax, eax
jne 0x10094c8
mov dword [0x1012824], esi
push 0x1001290
push 0x1001284
call fcn.010093c8
pop ecx
pop ecx
test eax, eax
je 0x10094ce
jmp 0x10095f6
mov dword [0x1011380], esi
mov eax, dword [0x1012824]
cmp eax, esi
jne 0x10094f2
push 0x1001280
push 0x1001278
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1012824], 2
test ebx, ebx
jne 0x10094fe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1012830], 0
je 0x1009522
push 0x1012830
call fcn.01009b19
pop ecx
test eax, eax
je 0x1009522
push 0
push 2
push 0
call dword [0x1012830]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100957e
test al, al
je 0x100953c
cmp dword [ebp - 0x1c], 0
jne 0x100957e
mov al, byte [esi]
test al, al
je 0x100954c
cmp al, 0x20
ja 0x100954c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100953c
test byte [ebp - 0x3c], 1
je 0x1009558
movzx eax, word [ebp - 0x38]
jmp 0x100955b
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x101137c], eax
cmp dword [0x1011370], 0
jne 0x10095d2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100958d
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10095a0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1009529
cmp dword [0x1011380], 0
jne 0x10095e1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101137c]
jmp 0x1009602
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01009be9
ret
call fcn.01009cf1
jmp 0x1009429
Function at 0x100ba2d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x100ba6e
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x100ba47
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100ba8c
dec esi
je 0x100ba83
dec esi
jne 0x100ba91
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x6bac1ec2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x253a2f0d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4157f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 1], 0x19
mov eax, 0x215d
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x215d
je 0x415842
cmp dword [ebp - 0x10], 0x6472
je 0x41581e
jmp 0x415854
movsx edx, word [ebp - 8]
add edx, 0x56df
mov word [ebp - 8], dx
lea eax, [ebp - 0x14]
push eax
push 0x58
push 0x5d
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x14], eax
jmp 0x415854
movsx edx, byte [ebp - 1]
sub edx, 0x2b
mov byte [ebp - 1], dl
mov ax, word [ebp - 8]
mov word [ebp - 0xc], ax
mov eax, 0xf0
mov esp, ebp
pop ebp
ret
Function at 0x416efb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416f3a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416f3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416f3a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416f3a
cmp dword [ecx + 0x74], 0xe
jbe 0x416f3a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b8d9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42a200]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41b924
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041baf6
test al, al
jne 0x41b91e
sub edx, 2
cmp edx, edi
jne 0x41b904
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41b946
lea eax, [edi + 2]
cmp edx, eax
je 0x41b946
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041b825
add esp, 0x10
jmp 0x41ba40
push esi
lea ecx, [ebp - 0x255]
call fcn.0041baf6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b989
push dword [ebp - 0x25c]
jmp 0x41b936
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41b9c6
cmp word [ebp - 0x226], 0
je 0x41b9e7
cmp word [ebp - 0x226], ax
jne 0x41b9c6
cmp word [ebp - 0x224], 0
je 0x41b9e7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041b825
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41ba33
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41b9a0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41ba1b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41ba40
push 0x41b655
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041e6a0
add esp, 0x10
jmp 0x41ba10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417225
leave
ret

Function at 0x41d573
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42549c
push 0x425494
push str.FlsAlloc
push 0x1f
call fcn.0041d4ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d5a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x423278]
call esi
jmp 0x41d5ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41d5f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4254ac
push 0x4254a4
push str.FlsGetValue
push 0x21
call fcn.0041d4ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d628
push dword [ebp + 8]
mov ecx, esi
call dword [0x423278]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41d630
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4254b4
push 0x4254ac
push str.FlsSetValue
push 0x22
call fcn.0041d4ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d66a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x423278]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4223c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4223ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4223ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001109
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001080
call fcn.010012c0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001144
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001144
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100115c
cmp eax, 0x20b
je 0x1001149
mov dword [ebp - 0x1c], edi
jmp 0x1001170
cmp dword [ecx + 0x84], 0xe
jbe 0x1001144
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100116a
cmp dword [ecx + 0x74], 0xe
jbe 0x1001144
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002018], 0xffffffff
or dword [0x100201c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002020], eax
call fcn.010012b6
cmp dword [section..data], edi
jne 0x10011cb
push fcn.010012b6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100129f
push 0x1001054
push 0x1001050
call sub.msvcrt.dll__initterm
mov eax, dword [0x100200c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002008]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100104c
push 0x1001048
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010012b6
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001242
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001277
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010012fb
ret