joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411460
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0043d5f0
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3c
mov edi, edx
mov esi, ecx
push 0
push edi
call fcn.0043e860
add esp, 0xc
mov dword [edi], 0x3c
lea eax, [ebp - 0x2004]
mov dword [edi + 0x14], 0x1000
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x4004]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x1000
mov eax, dword [esi]
push edi
push 0
push dword [eax - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0043c397
mov esp, ebp
pop ebp
ret

Function at 0x411bc0
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x170], 0
push 0x110
lea eax, [ebp - 0x158]
mov dword [ebp - 0x160], esi
push esi
push eax
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x15c], 0x114
call fcn.0043e860
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411cfc
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x411cfc
cmp dword [ebp - 0x158], 6
jb 0x411c9d
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x16c]
push eax
push 0x12
push dword [ebp - 0x160]
call edi
test eax, eax
je 0x411cfc
cmp dword [ebp - 0x16c], 3
jne 0x411c9d
lea eax, [ebp - 0x168]
push eax
push 4
lea eax, [ebp - 0x164]
push eax
push 0x13
push dword [ebp - 0x160]
call edi
test eax, eax
je 0x411cfc
cmp dword [ebp - 0x164], esi
jne 0x411cbe
lea eax, [ebp - 0x164]
push eax
push 1
push dword [ebp - 0x160]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x411cfc
lea eax, [ebp - 0x168]
mov dword [ebp - 0x168], 0x44
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x411cfc
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x411d04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x411d21
push eax
call edi
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x411d38
push eax
call edi
mov dword [ebp - 0x164], 0
test esi, esi
jne 0x411d55
cmp dword [ebp - 0x170], esi
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.0043c397
mov esp, ebp
pop ebp
ret
push 0x48f400
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], esi
push eax
call fcn.0043ef34
int3
Function at 0x417b70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462478
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 0x1c], 0
jne 0x417c80
mov eax, dword [ebp + 0xc]
cmp eax, 0x100
jne 0x417c56
mov esi, dword [ebp + 0x10]
cmp esi, 8
je 0x417c35
cmp esi, 0x25
je 0x417c35
cmp esi, 0x27
je 0x417c35
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x417bdc
cmp esi, 0x46
je 0x417c35
cmp esi, 0x50
je 0x417c35
cmp esi, 0x74
je 0x417c35
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x1c]
push eax
push 0x465510
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], esi
call fcn.00419460
test eax, eax
js 0x417c21
mov eax, dword [ebp + 0x1c]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x417c35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x417c80
sub esp, 0x10
call fcn.00418520
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41b310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462979
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0x14]
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0xa8], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 0xffffffff
jne 0x41b386
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x41b4b3
push ebx
push ecx
mov byte [ebp - 4], 1
mov ebx, esp
mov dword [ebp - 0xa0], ebx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00407630
add eax, 0x10
push ecx
push dword [ebp + 8]
mov dword [ebx], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0041b030
mov byte [ebp - 4], 2
lea eax, [ebp - 0x94]
push 0xfde9
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.004128d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
push dword [ebp - 0x98]
call fcn.004061d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x98]
cmp eax, ecx
je 0x41b40c
push eax
call fcn.00445a6d
add esp, 4
push 0x47a104
lea ecx, [ebp - 0x9c]
call fcn.00406970
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0xa0]
push 0
push ecx
mov dword [ebp - 0xa0], 0
push dword [eax - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x9c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b465
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0xa4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b497
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b497
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41b4bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c397
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41c810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462a56
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x49106c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41c8bc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41c8bc
call fcn.004014a0
mov edi, eax
jmp 0x41c9db
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41c8df
call fcn.004014a0
jmp 0x41c9ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41c8fd
call fcn.004014a0
jmp 0x41c9ce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41c91e
mov edi, 0x8007000e
jmp 0x41c9d0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
jne 0x41c955
cmp eax, 0xffffffff
ja 0x41c955
cmp eax, 0x400
jbe 0x41c947
push eax
lea ecx, [ebp - 0x418]
call fcn.00423820
jmp 0x41c977
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x41c977
push 0x80070216
call fcn.004012a0
mov eax, 0x41c965
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x41c98e
mov edi, 0x8007000e
jmp 0x41c9d0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41c9ae
call fcn.004014a0
jmp 0x41c9ce
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0041d590
mov edi, eax
test esi, esi
je 0x41c9db
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41c9f4
lea ecx, [ebp - 0x418]
call fcn.00423810
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c397
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f3f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d16
mov eax, dword fs:[0]
push eax
sub esp, 0xa20
mov eax, dword [0x49106c]
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, dword [ebp + 8]
lea eax, [ebp - 0x618]
push 0x104
push eax
push dword [0x493154]
mov dword [ebp - 0xa1c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xa28], 0
mov dword [ebp - 0xa24], 0
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x618]
lea ecx, [ebp - 0xa28]
push eax
call fcn.0041e5e0
test eax, eax
jns 0x41f4c8
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x41f488
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x47d6d0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00407020
test al, al
jne 0x41f4b4
push 0
push 0x47d6d0
mov ecx, edi
call fcn.004076f0
mov eax, dword [ebp - 0xa28]
test eax, eax
je 0x41f5e4
push eax
jmp 0x41f5de
mov ebx, dword [ebp - 0xa28]
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0xa20], esi
cmp esi, 0xffffffff
jne 0x41f502
call fcn.004014a0
test eax, eax
jns 0x41f4fc
push 0x47d6d4
jmp 0x41f5d2
mov esi, dword [ebp - 0xa20]
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0043e860
mov eax, dword [ebp - 0xa1c]
add esp, 0xc
sub esi, 0x400
mov dword [ebp - 0xa20], esi
sbb eax, 0
push 0
mov dword [ebp - 0xa1c], eax
lea eax, [ebp - 0xa1c]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41f559
call fcn.004014a0
test eax, eax
jns 0x41f559
push 0x47d6d8
jmp 0x41f5d2
push 0
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xa2c], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f593
call fcn.004014a0
test eax, eax
jns 0x41f593
push 0x47d6dc
jmp 0x41f5d2
xor esi, esi
mov al, byte [ebp + esi - 0x410]
inc esi
cmp al, 0x43
jne 0x41f5c5
mov al, byte [ebp + esi - 0x410]
inc esi
cmp al, 0x44
jne 0x41f5c5
mov al, byte [ebp + esi - 0x410]
inc esi
cmp al, 0x3a
jne 0x41f5c5
mov al, byte [ebp + esi - 0x410]
inc esi
cmp al, 0x40
je 0x41f604
cmp esi, 0x400
jl 0x41f595
push 0x47d6e0
mov ecx, edi
call fcn.00406700
test ebx, ebx
je 0x41f5e4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.0043c397
mov esp, ebp
pop ebp
ret 4
push 0x400
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.0043e860
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp - 0x410]
add eax, esi
push eax
lea eax, [ebp - 0xa18]
push eax
call fcn.0043e9c0
add esp, 0x18
lea eax, [ebp - 0xa18]
mov ecx, edi
push eax
call fcn.00423640
jmp 0x41f5d9
Function at 0x42d790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463558
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x49106c]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42d8d6
cmp byte [ebx + 0x3d], 0
je 0x42d8d6
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x42d7e4
xor al, al
jmp 0x42d8d8
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042c380
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x42d83f
sub eax, 1
je 0x42d843
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x42d899
xor bl, bl
jmp 0x42d89b
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x42d87b
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.00447f4b
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x42d83b
cmp byte [ebx + 0x3d], 0
je 0x42d899
test esi, esi
jne 0x42d800
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0042d610
jmp 0x42d7f7
mov bl, 1
cmp edx, 0x10
jb 0x42d8cd
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x42d8c4
test al, 0x1f
jne 0x42d8d1
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x42d8d1
sub eax, ecx
cmp eax, 4
jb 0x42d8d1
cmp eax, 0x23
ja 0x42d8d1
mov eax, ecx
push eax
call fcn.0043c392
add esp, 4
mov al, bl
jmp 0x42d8d8
call fcn.004457b8
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.0043c397
mov esp, ebp
pop ebp
ret
Function at 0x42dde0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4621a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043c7ea
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0043ae5e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437b5c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
xor ebx, ebx
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x437b6f
sub esi, ecx
sar esi, 1
push 2
lea eax, [esi + 1]
push eax
call fcn.0044203c
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x437b99
push 0xffffffffffffff98
pop eax
jmp 0x437c22
push dword [ebp - 4]
lea eax, [esi + 1]
push eax
push edi
call fcn.00445b55
add esp, 0xc
push 0x2f
pop eax
cmp word [edi + esi*2 - 2], ax
jne 0x437bba
xor eax, eax
mov word [edi + esi*2 - 2], ax
push edi
call fcn.0044d335
pop ecx
test eax, eax
je 0x437c16
lea esi, [edi + 2]
cmp word [esi], bx
je 0x437be5
push 0x2f
pop ecx
movzx eax, word [esi]
cmp eax, 0x5c
je 0x437be5
cmp ax, cx
je 0x437be5
add esi, 2
cmp word [esi], bx
jne 0x437bd0
movzx eax, word [esi]
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov word [esi], ax
call fcn.0044d335
pop ecx
cmp eax, 0xffffffff
jne 0x437c06
call fcn.00445881
cmp dword [eax], 2
je 0x437c19
mov eax, dword [ebp - 4]
test ax, ax
je 0x437c16
mov word [esi], ax
add esi, 2
jmp 0x437bc8
xor ebx, ebx
inc ebx
push edi
call fcn.00445a6d
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ceb3
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x48eb60
call fcn.0043d280
push 1
call fcn.0043c97a
pop ecx
test al, al
jne 0x43cd6a
push 7
call fcn.0043d068
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0043c945
mov byte [ebp - 0x24], al
mov eax, dword [0x493784]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x43cd63
test eax, eax
jne 0x43cdd4
mov dword [0x493784], ecx
push 0x4654e4
push 0x4654c0
call fcn.0044fcc0
pop ecx
pop ecx
test eax, eax
je 0x43cdb7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43cead
push 0x4654bc
push 0x465488
call fcn.0044fc64
pop ecx
pop ecx
mov dword [0x493784], 2
jmp 0x43cdd9
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0043cae7
pop ecx
call fcn.0043d588
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x43ce09
push esi
call fcn.0043ca5d
pop ecx
test al, al
je 0x43ce09
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0043cebd
call esi
call fcn.0043d58e
mov esi, eax
cmp dword [esi], edi
je 0x43ce27
push esi
call fcn.0043ca5d
pop ecx
test al, al
je 0x43ce27
push dword [esi]
call fcn.0044f051
pop ecx
call fcn.0043d184
movzx eax, ax
push eax
call fcn.0044fc11
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0044ef60
test al, al
jne 0x43ce52
push esi
call fcn.0044f089
test bl, bl
jne 0x43ce5b
call fcn.0044f02c
push edi
push 1
call fcn.0043cb04
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43cead
call fcn.0043d2c6
ret
call fcn.0043d4d9
jmp 0x43cd4b

Function at 0x440740
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x468f38
push 0x468f30
push str.FlsAlloc
push 0
call fcn.004406c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440772
push dword [ebp + 8]
mov ecx, esi
call fcn.0043cebd
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4407b4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x468f48
push 0x468f40
push str.FlsGetValue
push 2
call fcn.004406c0
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4407e5
mov ecx, esi
call fcn.0043cebd
call esi
jmp 0x4407eb
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4407ee
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x468f50
push 0x468f48
push str.FlsSetValue
push 3
call fcn.004406c0
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x440822
mov ecx, esi
call fcn.0043cebd
call esi
jmp 0x440828
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x454fca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00454e49

Function at 0x459a37
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004596f7
Function at 0x401050
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414f38
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x420bf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x424728], eax
test eax, eax
je 0x401102
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401102
lea ecx, [ebp - 0x58]
call fcn.00402150
mov esi, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00402010
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004016e0
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00401ed0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401ed0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x420c20
call fcn.00401f40
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00401ed0
mov al, 1
jmp 0x40112a
push 0x420c04
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x424728]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c35
mov esp, ebp
pop ebp
ret

Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov edi, edx
mov dword [ebp - 0xc], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
movzx ecx, si
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40130e
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c35
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012fb
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp edi, dword [ebp - 8]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00402c35
mov esp, ebp
pop ebp
ret