joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e3b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x414ed8
push ebx
push esi
call fcn.00414e04
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00414d98
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x414e85
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414ed7
push edi
push eax
call fcn.004124c4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x414ea5
call fcn.004110ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414ed6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414d98
add esp, 0x20
test eax, eax
jne 0x414ec4
push edi
call fcn.004110ad
jmp 0x414ecc
push ebx
call fcn.004110ad
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41b735
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041b6b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41b8a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41b8a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41b859
jg 0x41b791
test eax, eax
je 0x41b84f
push 1
push 0x1000
call fcn.00411050
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41b7b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41b846
push 0x8000
push ebx
call fcn.0040f71c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41b7dd
jg 0x41b7d8
cmp ecx, 0x1000
jb 0x41b7dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00418120
add esp, 0x10
cmp eax, 0xffffffff
je 0x41b822
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41b7d8
jl 0x41b809
test ecx, ecx
jne 0x41b7ca
push dword [ebp - 0xc]
push ebx
call fcn.0040f71c
push esi
call fcn.004110ad
add esp, 0xc
xor ebx, ebx
jmp 0x41b8b2
cmp byte [edi + 0x24], 0
je 0x41b839
cmp dword [edi + 0x20], 5
jne 0x41b839
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41b844
mov ebx, dword [edi + 0x18]
jmp 0x41b846
xor ebx, ebx
push esi
call fcn.004110ad
pop ecx
jmp 0x41b8b2
test ecx, ecx
jg 0x41b81b
jl 0x41b859
test eax, eax
jae 0x41b81b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c434
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41b879
cmp byte [edi + 0x1c], 0
je 0x41b81b
jmp 0x41b8aa
push ebx
call fcn.0041567b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41b81b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41b8b2
cmp byte [edi + 0x1c], 0
je 0x41b8af
mov ebx, dword [edi + 0x18]
jmp 0x41b8b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041c434
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b8cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42c0b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b90c
cmp byte [ebx], 0xa
jne 0x41b90c
or byte [edi + eax + 0x28], 4
jmp 0x41b911
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41ba10
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41b9f3
inc eax
cmp dl, 0xd
je 0x41b93d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41b963
cmp eax, ecx
jae 0x41b971
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41b925
jmp 0x41ba10
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b9ee
cmp dword [ebp - 0x10], 0
je 0x41b9ee
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42c0b0]
test byte [eax + edi + 0x28], 0x48
je 0x41b9c8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b9b3
mov byte [esi], dl
jmp 0x41b9c4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c0b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ba10
cmp byte [ebp - 1], 0xa
jne 0x41b9d7
cmp esi, ebx
jne 0x41b9d7
mov byte [esi], 0xa
jmp 0x41ba0f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c434
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ba10
mov byte [esi], 0xd
jmp 0x41ba0f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42c0b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ba0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ba10
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ba19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42c0b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ba5f
cmp word [ebx], dx
jne 0x41ba5f
or byte [eax + edi + 0x28], 4
jmp 0x41ba64
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41bbc7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41bba7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41baa5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41badb
cmp eax, edx
jae 0x41bae9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41ba80
jmp 0x41bbc7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bba2
cmp dword [ebp - 0x18], 0
je 0x41bba2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42c0b0]
test byte [eax + edi + 0x28], 0x48
je 0x41bb78
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41bb3c
mov word [esi], cx
jmp 0x41bb73
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42c0b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42c0b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42c0b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41bbc7
pop eax
cmp word [ebp - 4], ax
jne 0x41bb88
cmp esi, ebx
jne 0x41bb88
mov word [esi], ax
jmp 0x41bbc4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c434
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41bbc7
push 0xd
pop eax
jmp 0x41bb83
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42c0b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41bbc1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41bbc7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e37d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e37d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x2d11352c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5f386f69
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4010d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00409973

Function at 0x401fe0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
call fcn.004093e4
push 0
push SysReAllocString
push 0xc40080
mov ecx, esi
call fcn.004104b1
push 0
push 0x80000
push 0x40001
mov ecx, esi
call fcn.004104dd
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push 1
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push str.UpdateLogin
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402048
mov edx, dword [esi]
mov eax, dword [edx + 0x158]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x20]
push ecx
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push str.GXDCompress.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40208e
push str.uncompress
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58538c], eax
test eax, eax
je 0x40208e
mov dword [0x585380], 0xffffffff
call fcn.004020d0
call fcn.004020d0
push 0
lea ecx, [esi + 0x8c]
call fcn.004105d4
push 0
push 0
push 0
push 0
push esi
push 0x4027d0
call fcn.00417c37
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.00402320
mov eax, 1
pop esi
ret
Function at 0x402d90
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x5853d8]
push esi
push 0
push eax
mov esi, ecx
mov dword [0x5853bc], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x402dbb
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x585390]
test eax, eax
je 0x402dcb
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0040c7f8
test eax, eax
je 0x402def
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
pop esi
jmp fcn.004090b7

Function at 0x4033a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push str.G02_GINFO014.BIN
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403406
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033ff
cmp dword [esp + 4], 8
jne 0x4033ff
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [edi], edx
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.00508877
add esp, 0x6c
ret

Function at 0x403c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ca9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ce4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403ce0
lea ebx, [ebx]
cmp esi, eax
jae 0x403ce4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403cd0
cmp esi, eax
jb 0x403cea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push str.G02_GINFO014.BIN
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404bf1
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.00508877
add esp, 0x6c
ret 8
Function at 0x406170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ff5b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push edi
mov eax, dword [0x57c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x418]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push str.PRESENTVERSION.DAT
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406232
push 0x1001
push str.PRESENTVERSION.DAT
lea ecx, [esp + 0x1c]
mov dword [0x585374], 1
call fcn.00420b59
push 6
push str.00001
lea ecx, [esp + 0x1c]
mov dword [esp + 0x428], 0
call fcn.00420283
lea ecx, [esp + 0x14]
call fcn.004204e7
mov ecx, edi
call fcn.00406170
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], esi
call fcn.0042064f
jmp 0x4062bd
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
push 5
lea ecx, [esp + 0x30]
push ecx
push esi
call edi
test eax, eax
jne 0x406259
mov dword [0x585374], 1
jmp 0x4062b6
cmp dword [esp + 0x10], 5
jne 0x40624d
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2d], 0
call fcn.0050934d
mov dword [0x585378], eax
lea eax, [esp + 0x28]
push eax
call fcn.0050934d
add esp, 8
cmp eax, 1
mov dword [0x585374], eax
jge 0x406295
mov dword [0x585374], 1
push 0
lea ecx, [esp + 0x14]
push ecx
push 6
lea edx, [esp + 0x30]
push edx
push esi
call edi
test eax, eax
je 0x4062b6
cmp dword [esp + 0x10], 6
jne 0x4062b6
mov byte [esp + 0x2a], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00508877
mov esp, ebp
pop ebp
ret
Function at 0x4079b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4079e9
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call dword [0x58538c]
add esp, 0x10
test eax, eax
je 0x4079f0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
pop ecx
ret 0xc
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a37
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x407a46
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
jne 0x407a2a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407a30
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x4098dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00411954
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409915
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040952d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40fbd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40fc1b
call fcn.00411954
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40fc1b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40fc37
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040f74e
mov esi, eax
test edi, edi
je 0x40fc35
test ebx, ebx
je 0x40fc35
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410b7b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5295c1
call fcn.0050a150
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410ba0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410be6
lea ecx, [ebp - 0x10]
call fcn.00404360
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041035a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404320
mov eax, esi
call fcn.0050a228
ret 8

Function at 0x41d30d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41d355
call fcn.00411954
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d355
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41d398
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41d381
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41d381
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41d395
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41ef63
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41ef8e
call fcn.00411954
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x41efb1
push eax
push dword [esi + 4]
call fcn.0041eee9
push esi
push eax
mov ecx, 0x58139c
call fcn.0041eb9d
mov eax, esi
pop esi
pop ebp
ret 0x18