joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46f08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40aaea
cmp byte [esi + 0x3d], 0
je 0x40aaea
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40aad8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40aaa0
sub eax, 1
je 0x40aaa4
sub eax, 2
jne 0x40aad8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ae7
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40aac1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043ab52
add esp, 0x10
cmp edi, eax
jne 0x40aad8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ae7
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ae7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00431ae7
mov esp, ebp
pop ebp
ret

Function at 0x40c8f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x46f08c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00431afa
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041d630
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea esi, [eax + 0x24]
mov byte [ebx + 0x48], 0
add eax, 0x28
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x18]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov ebx, dword [ebp - 0x18]
mov dword [edx], 0
mov edx, dword [0x472034]
mov dword [ecx], 0
mov ecx, dword [0x472030]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e09c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46f08c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x41e0c1
xor eax, eax
jmp 0x41e11d
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x41e0ee
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x41e0ee
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x41e1a4
cmp dword [edi + 0x4c], 0
je 0x41e117
mov ecx, edi
call fcn.0041df8d
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x41e12d
push dword [edi + 0x4c]
push ebx
call fcn.0041d9ae
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x41e11c
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00431ae7
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x459200]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x41e177
sub eax, 1
je 0x41e177
dec eax
sub eax, 1
jne 0x41e117
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x41e109
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x41e194
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0043ab52
add esp, 0x10
cmp esi, eax
jne 0x41e117
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x41e117
mov ax, bx
jmp 0x41e11c

Function at 0x446184
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00445e35

Function at 0x44618f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00445fbf

Function at 0x44d04e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ccca
Function at 0x10011c20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10011c5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10011c56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10011c60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10011c46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10011d30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10011d46
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10011d61
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401000
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push esi
push edi
call fcn.004010f0
mov edi, eax
cmp edi, 0xffffffff
jne 0x401024
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 0x10
push edi
call fcn.00401150
mov esi, eax
add esp, 4
test esi, esi
jne 0x401043
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 0x10
push esi
push edi
call fcn.00401190
add esp, 8
test al, al
jne 0x401061
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 0x10
push esi
push edi
call fcn.004011d0
add esp, 8
test al, al
jne 0x40107f
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 0x10
lea eax, [esp + 8]
push eax
push esi
push edi
call fcn.004016f0
add esp, 0xc
test al, al
jne 0x4010a2
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 0x10
lea ecx, [esp + 8]
push ecx
call fcn.004018a0
add esp, 4
test al, al
jne 0x4010c3
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 0x10
mov al, byte [0x40a9b8]
test al, al
je 0x4010d7
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret 0x10

Function at 0x401150
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push 0
push 0x22
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x14]
push 4
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
pop esi
neg eax
sbb eax, eax
and eax, ecx
pop ecx
ret

Function at 0x401190
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0
add eax, 0xfffffff7
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
push 9
push 0x40a9b0
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
pop esi
neg eax
ret
Function at 0x4015a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push ebx
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401610
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401600
xor bl, bl
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
xor al, al
pop ebx
pop ecx
ret
Function at 0x4016f0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
push 0
add eax, 0x1000
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401747
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40175c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [esp + 0x12c]
lea ecx, [esp + 0x1c]
push ebx
push 0
push 0x408100
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x2e
push ebx
call fcn.00401b60
mov edx, eax
add esp, 8
test edx, edx
jne 0x4017a3
push eax
push ebx
call fcn.00401920
add esp, 8
mov edx, eax
mov edi, str._TMP.EXE
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
push 0xc0000000
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4017f1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401819
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
mov ebx, dword [esp + 0x10]
xor edi, edi
test ebx, ebx
jbe 0x401875
sub ebx, edi
cmp ebx, 0x10000
jbe 0x401832
mov ebx, 0x10000
push ebx
push edi
push 0
push 2
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x40180c
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40180c
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esp + 0x10]
add edi, 0x10000
cmp edi, ebx
jb 0x401823
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x110
ret

Function at 0x4018a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x5c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4018f2
xor al, al
add esp, 0x54
ret
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
add esp, 0x54
ret
Function at 0x403281
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4081c8
cmp edx, dword [eax]
je 0x4032a3
add eax, 8
inc ecx
cmp eax, 0x408258
jl 0x403294
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4081c8]
jne 0x4033d1
mov eax, dword [0x40a9c8]
cmp eax, 1
je 0x4033ab
test eax, eax
jne 0x4032d4
cmp dword [0x408114], 1
je 0x4033ab
cmp edx, 0xfc
je 0x4033d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40330b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403da0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40334e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407474
push edi
call fcn.00401a60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403da0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403db0
lea eax, [ebp - 0xa0]
push 0x407454
push eax
call fcn.00403db0
push dword [esi + 0x4081cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403db0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004053dd
add esp, 0x2c
pop edi
jmp 0x4033d1
lea eax, [ebp + 8]
lea esi, [esi + 0x4081cc]
push 0
push eax
push dword [esi]
call fcn.00403740
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x82
call fcn.0040b33d
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x40109d
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x427028
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x427028]
xor cx, word [edx*2 + 0x427028]
inc edx
mov word [edi + edx*2 + 0x427026], cx
cmp edx, dword [ebp + 0xc]
jl 0x40107d
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8

Function at 0x4020d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x66
call fcn.0040b33d
xor edx, edx
pop ecx
cmp dword [ebp + 0xc], edx
jle 0x402116
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x426c68
mov edi, eax
sub esi, ecx
sub edi, ecx
mov cx, word [esi + edx*2 + 0x426c68]
xor cx, word [edx*2 + 0x426c68]
inc edx
mov word [edi + edx*2 + 0x426c66], cx
cmp edx, dword [ebp + 0xc]
jl 0x4020f6
pop edi
pop esi
xor ecx, ecx
mov word [eax + edx*2], cx
pop ebp
ret 8
Function at 0x4021e9
Capabilities:
Create process on windows

Disassembly:
push 0x868
mov eax, 0x41dd1a
call fcn.0040f2de
mov ebx, ecx
mov edi, edx
mov esi, dword [ebp + 8]
mov byte [ebp - 0x831], 1
and dword [ebp - 4], 0
mov dword [ebp - 0x874], 0x3c
mov dword [ebp - 0x870], 0x8040
push 4
push 0x4265c0
call fcn.004020d4
mov dword [ebp - 0x868], eax
push 8
pop edx
cmp dword [edi + 0x14], edx
jb 0x40223c
mov eax, dword [edi]
jmp 0x40223e
mov eax, edi
mov dword [ebp - 0x864], eax
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jb 0x40224f
mov eax, dword [esi]
jmp 0x402251
mov eax, esi
mov dword [ebp - 0x860], eax
cmp dword [ebx + 0x14], edx
jb 0x402260
mov eax, dword [ebx]
jmp 0x402262
mov eax, ebx
mov dword [ebp - 0x85c], eax
and dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0x1d
cmp ecx, edx
jb 0x40227f
mov esi, dword [esi]
cmp dword [edi + 0x14], edx
jb 0x402288
mov eax, dword [edi]
jmp 0x40228a
mov eax, edi
push esi
push eax
push 0xe
push 0x4265c8
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
call edi
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402393
cmp dword [ebp - 0x83c], ebx
je 0x40234f
push dword [ebp - 0x83c]
push 0x15
push 0x4265e4
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xffffffffffffffff
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4023db
push 0x422978
push 0x19
push 0x426610
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea esi, [ebp - 0x830]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
jmp 0x4023db
cmp byte [0x42836c], bl
je 0x4023db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x11
push 0x426644
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
call edi
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x831]
call fcn.0040f32b
ret 4
Function at 0x4025a2
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x12
push 0x426ad4
call fcn.004020d4
push eax
lea esi, [ebp - 0x420]
call fcn.004012ca
xor ebx, ebx
cmp byte [0x42836c], bl
je 0x4025ee
push 8
push 0x426af8
call fcn.004020d4
push eax
mov eax, esi
push eax
call fcn.0040131e
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x4025fa
lea eax, [ebp + 0x24]
push eax
push 0x13
push 0x426b08
call fcn.004020d4
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
lea esi, [ebp - 0x43c]
call fcn.004012ca
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x402636
lea eax, [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x444], eax
cmp eax, ebx
je 0x4026eb
cmp dword [ebp - 0x40c], 8
mov eax, dword [ebp - 0x420]
jae 0x402664
lea eax, [ebp - 0x420]
push edi
push ebx
push 0x50
push eax
push dword [ebp - 0x444]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0x4026e2
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x40269a
lea eax, [ebp - 0x43c]
push ebx
push ebx
push ebx
push ebx
push eax
push 3
push 0x426b30
call fcn.004020d4
push eax
push dword [ebp - 0x440]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
je 0x4026da
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4026d7
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call edi
push dword [ebp - 0x440]
call edi
push dword [ebp - 0x444]
call edi
pop edi
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x43c]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp - 0x420]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401455
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401455
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf43
leave
ret 0x38

Function at 0x40272c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push edi
push 0xa
push eax
push dword [ebp + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
jle 0x402784
push eax
call fcn.0040b33d
push dword [esi]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ecx], eax
push eax
call fcn.0040eb30
add esp, 0x10
inc bl
pop edi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x404708
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4255d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0xffff
mov eax, ebx
push edi
mov edi, ecx
cmp ax, si
jne 0x404733
xor eax, eax
jmp 0x40489b
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 0
je 0x404760
mov eax, dword [edi + 0x34]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x404760
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x40489b
cmp dword [edi + 0x54], 0
jne 0x40476d
mov eax, ebx
jmp 0x40489b
mov eax, edi
call fcn.00405c95
cmp dword [edi + 0x44], 0
jne 0x404793
push dword [edi + 0x54]
push esi
call fcn.0040c79a
pop ecx
cmp ax, bx
pop ecx
movzx eax, si
jne 0x40489b
jmp 0x404766
movzx eax, si
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
call fcn.00405556
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404840
lea eax, [ebp - 0x20]
mov edx, eax
add eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x28]
push ebx
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jl 0x40488b
cmp eax, 1
jg 0x404848
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4047ef
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub esi, eax
je 0x404815
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x404802
lea eax, [ebp - 0x20]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040dea3
add esp, 0x10
cmp esi, eax
jne 0x40488b
lea eax, [ebp - 0x24]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x2c], eax
jne 0x40487a
cmp esi, ebx
ja 0x4047a1
cmp dword [ebp - 0x10], 0x20
push ebx
jae 0x40488c
push 8
pop ebx
lea esi, [ebp - 0x20]
call fcn.0040559a
jmp 0x4047a1
mov edx, dword [ebp - 0x20]
jmp 0x4047b3
cmp eax, 3
jne 0x40488b
push dword [edi + 0x54]
push dword [ebp - 0x24]
call fcn.0040c79a
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x40486a
mov esi, ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.0040568a
jmp 0x404758
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.0040568a
mov ax, word [ebp + 8]
jmp 0x40489b
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.0040568a
mov eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bf43
leave
ret 4