joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5be250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2808
push 0x5c2288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5be329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5be329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005c11d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x5be329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x5be329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x5be32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005be351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5bed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5bed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5bed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5bed94
push eax
push esi
call fcn.005c120b
add esp, 8
pop esi
ret 0x10

Function at 0x5beda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5bee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5bee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5d7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005c0dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5bedda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5bee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5beec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5beeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5d7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005c0dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5beeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5bee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5bf000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5bf131
push esi
call fcn.005c2145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.005b1080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5bf131
push 0
push ebp
call fcn.005b13a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005b1260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5bf08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005b12f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5bf121
push 0x5d7918
push edi
call fcn.005c03f0
push eax
push ebx
push esi
call fcn.005bef60
push 0x5d78f8
push edi
call fcn.005c03f0
push eax
push ebx
push esi
call fcn.005bef60
push 0x5d78d8
push edi
call fcn.005c03f0
push eax
push ebx
push esi
call fcn.005bef60
push 0x5d78c0
push edi
call fcn.005c03f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005bef60
push 0x5d78a0
push edi
call fcn.005c03f0
push eax
push ebx
push esi
call fcn.005bef60
push 0x5d7888
push edi
call fcn.005c03f0
push eax
push ebx
push esi
call fcn.005bef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c01b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005c0140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005c0140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005c0140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005c0140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5c0bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c0c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5d287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5c0c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5c0c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405a30
Capabilities:
Read .ini file

Disassembly:
push ebx
push ecx
sub esp, 0x104
mov ebx, edx
push 0x425688
push 0x103
lea edx, [esp + 8]
push edx
push 0x405a2f
push eax
push 0x42578c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
setne ah
mov al, ah
test ah, ah
jne 0x405a6e
add esp, 0x104
pop ecx
pop ebx
ret
mov eax, esp
call fcn.00403500
mov dword [ebx], eax
test eax, eax
setne al
add esp, 0x104
pop ecx
pop ebx
ret

Function at 0x405c80
Capabilities:
Read .ini file

Disassembly:
push ebx
push ecx
sub esp, 0x2c
mov ebx, edx
push 0x425688
push 0x28
lea edx, [esp + 8]
push edx
push 0x4059ec
push eax
push 0x42578c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x405cb0
xor al, al
add esp, 0x2c
pop ecx
pop ebx
ret
mov edx, esp
mov eax, 0x4059ec
call fcn.00414210
test eax, eax
je 0x405ca8
mov eax, esp
mov edx, ebx
call fcn.00405d20
mov al, 1
add esp, 0x2c
pop ecx
pop ebx
ret

Function at 0x406460
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ecx
push edx
push esi
mov esi, eax
cmp dword [0x425828], 0
jne 0x4064d0
mov eax, dword [0x425824]
push 5
mov edx, dword [eax + 0xc]
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ebx, dword [0x425820]
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
add eax, eax
push 6
add ebx, eax
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
add eax, eax
add ebx, eax
mov dword [0x425828], ebx
call fcn.004022a0
mov eax, 0x35
call fcn.00411c20
mov ebx, eax
push ebx
push 0xfe
push 0
push 0xfe
push esi
call dword [sym.imp.USER32.DLL_ModifyMenuA]
test ebx, ebx
jne 0x4064f5
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, dword [0x425824]
push 0
mov ecx, dword [eax + 0xc]
push ecx
xor ebx, ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov dword [0x425828], ebx
call fcn.004022a0
mov eax, 0x34
jmp 0x4064ac
mov eax, ebx
call fcn.00411cb0
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x406870
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov edi, eax
mov ebx, edx
test edx, edx
je 0x406894
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, eax
je 0x4068bb
mov byte [ebx], 1
push 0
push 0
push 0xe
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
mov esi, eax
lea ebp, [eax + 1]
push ebp
call dword [sym.imp.wr.dll__WRMemAlloc_4]
mov ebx, eax
test eax, eax
jne 0x4068c0
mov eax, ebx
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov byte [ebx], 0
jmp 0x406894
push eax
push ebp
push 0xd
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
cmp eax, esi
jg 0x4068db
mov byte [esi + ebx], 0
mov eax, ebx
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
push ebx
call dword [sym.imp.wr.dll__WRMemFree_4]
xor ebx, ebx
mov eax, ebx
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x410330
Capabilities:
Encode data using xor

Disassembly:
push edx
sub esp, 8
mov edx, eax
call fcn.00410380
mov eax, dword [0x427624]
cmp byte [eax], 0x5e
je 0x41034a
add esp, 8
pop edx
ret
inc eax
mov dword [0x427624], eax
mov eax, esp
call fcn.00410380
mov eax, dword [esp + 4]
xor dword [edx + 4], eax
mov eax, dword [esp]
or dword [edx], eax
mov eax, dword [0x427624]
cmp byte [eax], 0x5e
je 0x41034a
add esp, 8
pop edx
ret

Function at 0x411ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
sub esp, 0x10
mov ebx, eax
mov ebp, edx
cmp edx, 0xffffffff
jne 0x411eb8
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test eax, eax
jne 0x411ece
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00411df0
test al, al
jne 0x411ee2
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov eax, ebx
call fcn.00411e00
mov edx, eax
sub edx, ebx
call fcn.00411e40
mov dword [esp + 8], edx
add edx, eax
mov dword [esp + 4], edx
lea eax, [edx + 3]
and al, 0xfc
mov dword [esp + 4], eax
sub ebp, eax
mov eax, dword [esp + 8]
add eax, dword [0x4259b0]
mov dword [esp + 0xc], eax
add eax, 3
and al, 0xfc
mov dword [esp + 0xc], eax
add eax, ebp
push eax
push 0x42
mov dword [esp + 8], ebp
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test eax, eax
je 0x411ec5
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edx, eax
test eax, eax
jne 0x411f52
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor eax, eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov ecx, dword [esp + 8]
mov esi, ebx
mov edi, eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edi, dword [esp + 8]
mov ecx, dword [0x4259b0]
mov esi, dword [0x4259ac]
add edi, edx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp]
add esi, ebx
add edi, edx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, ebp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x4128aa
Capabilities:
Terminate process

Disassembly:
jmp 0x417df0
push ebx
push ecx
push edx
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
call fcn.0041bde0
mov eax, dword [0x425fc0]
add eax, 3
and al, 0xfc
xor edx, edx
sub esp, eax
mov ecx, esp
mov ebx, dword [0x425fc0]
mov eax, ecx
call fcn.00412940
mov eax, dword [0x425fc0]
mov dword [ecx + 0x104], eax
mov eax, ecx
mov edx, ecx
call fcn.0041be90
lea eax, [ebp - 8]
call fcn.0041a490
mov ecx, dword [0x425f8c]
add ecx, 3
and cl, 0xfc
call fcn.0041bec0
cmp ecx, eax
jb 0x417e82
xor eax, eax
mov ecx, dword [0x425f8c]
add eax, ecx
mov dword [0x425f90], eax
call fcn.0041bee0
push 0xa
mov eax, dword [0x425f6c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call fcn.00401290
jmp 0x41bee2
push ecx
call fcn.0041bf85
mov eax, dword [0x425f8c]
add eax, 3
and al, 0xfc
sub esp, eax
mov eax, esp
jmp 0x417e53
mov ecx, eax
call dword [0x425fc4]
cmp dword [0x427ad0], 0
je 0x41bf1f
cmp dword [0x425dfc], 0
je 0x41bf0c
mov edx, 0xff
mov eax, 0x10
call dword [0x425dfc]
call dword [0x425fc4]
call dword [0x425fc8]
mov eax, ecx
jmp fcn.0041a4f0
mov edx, 0xff
mov eax, 0x10
call fcn.0041be30
jmp 0x41bf0c

Function at 0x413fa0
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x104
mov edi, eax
mov ebx, edx
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, eax
test eax, eax
je 0x413ff2
inc eax
test edi, edi
jne 0x413ff9
cmp ebx, eax
jbe 0x413fcd
mov eax, ebx
call fcn.004189d0
mov edi, eax
test eax, eax
jne 0x41400c
call dword [0x425c84]
mov dword [eax + 4], 5
xor eax, eax
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00418b20
jmp 0x413fe5
cmp eax, ebx
jbe 0x41400c
call dword [0x425c84]
mov dword [eax + 4], 0xe
jmp 0x413fe5
mov esi, esp
inc ecx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x414410
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
push 0x4143e0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
test eax, eax
je 0x4144bb
push 0x4143fa
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 0
push 0
push 0x801a
push 0
call eax
test eax, eax
jl 0x4144ae
mov edi, ebx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4143ed
mov edx, ecx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
cmp eax, esi
jae 0x4144ae
mov esi, 0x4143ed
mov edi, ebx
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x414499
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x414481
pop edi
xor edx, edx
mov eax, ebx
call fcn.004175b0
test eax, eax
je 0x4144ae
mov eax, ebx
call fcn.00419a00
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x41a1f0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x427ad0], eax
mov dword [0x425c80], edx
call fcn.0041d880
xor eax, eax
mov dword [0x4280f8], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x425fa5], al
shr eax, 0x10
mov word [0x425fa7], ax
xor eax, eax
mov ax, word [0x425fa7]
and edx, 0xffff
mov dword [0x425fa9], eax
xor eax, eax
sar edx, 8
mov al, byte [0x425fa5]
and edx, 0xff
mov dword [0x425fad], eax
xor eax, eax
mov al, dl
mov byte [0x425fa6], dl
mov dword [0x425fb1], eax
mov eax, dword [0x425fad]
mov edx, dword [0x425fb1]
shl eax, 8
or eax, edx
mov dword [0x425fb5], eax
cmp byte [0x425fa5], 4
jae 0x41a317
mov eax, 0x41a188
push eax
xor edx, edx
push 0x41a1b5
mov dword [0x425fa1], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x41a2aa
call edx
mov dword [0x425fa1], eax
push 0x104
push 0x427ad4
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x427bd8
xor eax, eax
mov dword [0x425f70], 0x427ad4
call fcn.0041dc90
mov dword [0x425f7c], 0x427bd8
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.0041dd30
mov edx, eax
mov bl, byte [eax]
mov dword [0x427ac8], eax
cmp bl, 0x22
je 0x41a321
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x417891], 2
je 0x41a339
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x417891], 2
je 0x41a340
inc eax
jmp 0x41a307
mov eax, 0x41a19e
jmp 0x41a282
inc eax
cmp bl, byte [eax]
je 0x41a331
cmp byte [eax], 0
je 0x41a331
inc eax
cmp byte [eax], 0x22
jne 0x41a326
cmp byte [eax], 0
je 0x41a307
inc eax
jmp 0x41a307
test dl, dl
je 0x41a307
inc eax
jmp 0x41a2fa
mov dword [0x425f6c], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x41a3b6
call fcn.0041dd70
mov edx, eax
mov bx, word [eax]
mov dword [0x427acc], eax
cmp bx, 0x22
je 0x41a389
xor eax, eax
mov ax, word [edx]
call fcn.0041dd97
test eax, eax
je 0x41a3ab
xor eax, eax
mov ax, word [edx]
call fcn.0041dd97
test eax, eax
je 0x41a3bb
add edx, 2
jmp 0x41a376
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x41a3a0
cmp word [edx], 0
je 0x41a3a0
add edx, 2
cmp word [edx], 0x22
jne 0x41a391
cmp word [edx], 0
je 0x41a376
add edx, 2
jmp 0x41a376
cmp word [edx], 0
je 0x41a376
add edx, 2
jmp 0x41a368
mov edx, 0x41a1c2
mov dword [0x425f78], edx
test edi, edi
jne 0x41a3ce
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x427de0
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x427ee4
mov eax, esi
mov dword [0x425f74], 0x427de0
call fcn.0041dc90
mov dword [0x425f80], 0x427ee4
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x41a7f0
Capabilities:
Get file attributes

Disassembly:
push ecx
push edx
push esi
sub esp, 0x140
mov ecx, eax
cmp word [0x425fa7], 0x8000
jae 0x41a80f
cmp byte [0x425fa5], 4
jae 0x41a85e
mov dl, 0x2a
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x41a82b
cmp al, 0
je 0x41a829
inc esi
mov al, byte [esi]
cmp al, dl
je 0x41a82b
inc esi
cmp al, 0
jne 0x41a813
sub esi, esi
test esi, esi
jne 0x41a84f
mov dl, 0x3f
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x41a84b
cmp al, 0
je 0x41a849
inc esi
mov al, byte [esi]
cmp al, dl
je 0x41a84b
inc esi
cmp al, 0
jne 0x41a833
sub esi, esi
test esi, esi
je 0x41a867
mov eax, 0xffffffff
add esp, 0x140
pop esi
pop edx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x41a854
mov edx, esp
mov eax, ecx
call fcn.0041ed10
cmp eax, 0xffffffff
je 0x41a854
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
add esp, 0x140
pop esi
pop edx
pop ecx
ret

Function at 0x41b7c0
Capabilities:
Read file on windows

Disassembly:
push ecx
sub esp, 4
test eax, eax
jl 0x41b7f1
cmp eax, dword [0x426008]
jae 0x41b7f1
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push edx
call fcn.0041d7b0
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41b808
mov eax, dword [esp]
add esp, 4
pop ecx
ret
call dword [0x425c84]
mov dword [eax + 4], 4
mov eax, 0xffffffff
add esp, 4
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
call fcn.00418ad0
cmp edx, 0x6d
jne 0x41b820
cmp dword [esp], 0
je 0x41b7e9
mov eax, 0xffffffff
add esp, 4
pop ecx
ret

Function at 0x41cfb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret

Function at 0x41ec30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x41ecc4
cmp eax, dword [0x426008]
jae 0x41ecc4
call fcn.0041d7b0
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.0041eba0
test al, 0x80
je 0x41ec88
mov eax, esi
call dword [0x425dc0]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x41ecd8
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x41ece2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x41ecb5
mov eax, esi
call dword [0x425dc4]
mov eax, edx
call fcn.00418ad0
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x425c84]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x41ecbc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x41ecad
cmp edi, dword [esp]
je 0x41ecf4
call dword [0x425c84]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x41ed01
mov eax, esi
call dword [0x425dc4]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret