joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef690
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x438]
mov ecx, dword [eax + 0x2124]
xor ebx, ebx
cmp ecx, ebx
je 0x4ef6bb
mov dword [esi + 0x490], ebx
mov dword [esi + 0x48c], ebx
pop esi
pop ebx
add esp, 8
ret
cmp dword [esi + 0x418], 2
jne 0x4ef78d
mov ecx, dword [esi + 0x444]
mov eax, dword [esi + 0x43c]
mov edx, dword [esi + 0x484]
push edi
lea edi, [eax + ecx]
cmp edi, edx
jb 0x4ef78c
sub eax, edx
add eax, ecx
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x4ef6fc
fadd dword [0x520224]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
fstp dword [esp + 0xc]
call edi
sub eax, dword [esi + 0x488]
jne 0x4ef71d
pop edi
mov dword [esi + 0x48c], ebx
pop esi
pop ebx
add esp, 8
ret
call edi
sub eax, dword [esi + 0x488]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x4ef737
fadd dword [0x520224]
fdivr dword [esp + 0xc]
mov ebx, dword [esi + 0x444]
mov ecx, dword [esi + 0x448]
sub ecx, ebx
test ecx, ecx
mov dword [esp + 0x10], ecx
fst dword [esi + 0x48c]
fst dword [esi + 0x490]
fild dword [esp + 0x10]
jge 0x4ef767
fadd dword [0x520224]
fdiv st(1)
call fcn.004f2ff8
fstp st(0)
mov edx, dword [esi + 0x43c]
add edx, ebx
mov dword [esi + 0x498], eax
mov dword [esi + 0x484], edx
call edi
mov dword [esi + 0x488], eax
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4efe70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ffb6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push esi
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x521664
push 0x520280
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::TrimRight]
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Replace]
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edi, eax
push 0x521650
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x2c], 2
call fcn.00407ee0
push edi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x38], 3
call fcn.00407ee0
add esp, 0x18
push eax
mov ecx, esi
mov byte [esp + 0x24], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4eff60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ffbb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push 0x5201d4
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ebx, eax
push str.Host:
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x34], 2
call fcn.00407ee0
push edi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x40], 3
call fcn.00407ee0
add esp, 0x18
push eax
mov ecx, esi
mov byte [esp + 0x2c], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.Accept:___r_n
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4f0070
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ffbf6
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov eax, ebx
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f0096
sub eax, edx
mov dword [esp + 0x30], eax
jne 0x4f00b0
lea ecx, [esi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, eax
push 0x5201d4
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edi, eax
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ebx, eax
push str.Referer:
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ebx
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x34], 2
call fcn.00407ee0
push edi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x40], 3
call fcn.00407ee0
add esp, 0x18
push eax
mov ecx, esi
mov byte [esp + 0x2c], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.User_Agent:_Mozilla_4.0__compatible__MSIE_6.00__Windows_98__r_n
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4f16c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ffedc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [0x502480]
xor edi, edi
lea ecx, [esi + 4]
mov dword [esp + 0x20], edi
call dword [0x502480]
lea ecx, [esi + 8]
call dword [0x502480]
lea ecx, [esi + 0xc]
call dword [0x502480]
lea ecx, [esi + 0x10]
call dword [0x502480]
lea ecx, [esi + 0x14]
call dword [0x502480]
lea ebp, [esi + 0x18]
mov ecx, ebp
call dword [0x502480]
lea ecx, [esi + 0x1c]
call dword [0x502480]
lea ecx, [esi + 0x50]
call dword [0x502480]
lea ebx, [esi + 0x54]
mov ecx, ebx
mov byte [esp + 0x20], 8
call fcn.004dbaf0
mov dword [ebx + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov dword [ebx + 8], edi
mov bl, 9
push 0x515c28
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push eax
mov ecx, ebp
mov byte [esp + 0x24], 0xa
call dword [0x502474]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x515c28
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push eax
mov ecx, esi
mov byte [esp + 0x24], 0xb
call dword [0x502474]
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x40
mov dword [esi + 0x48], edi
mov dword [esi + 0x3c], edi
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x20], 0xc
je 0x4f17ff
mov ecx, eax
call fcn.004ded50
jmp 0x4f1801
xor eax, eax
push 0x40
mov byte [esp + 0x24], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x68], edi
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x20], 0xd
je 0x4f1831
mov ecx, eax
call fcn.004ded50
jmp 0x4f1833
xor eax, eax
mov dword [esi + 0x64], eax
xor eax, eax
lea edi, [esi + 0x6c]
mov ecx, 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
stosw word es:[edi], ax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f3282
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x5218c8
call fcn.004f3540
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4f32c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f32c2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4f32da
cmp eax, 0x20b
je 0x4f32c7
mov dword [ebp - 0x1c], ebx
jmp 0x4f32ee
cmp dword [ecx + 0x84], 0xe
jbe 0x4f32c2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4f32e8
cmp dword [ecx + 0x74], 0xe
jbe 0x4f32c2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x54464c], 0xffffffff
or dword [0x544650], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x5445ac]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x5445a8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x544648], eax
call fcn.004f3636
call fcn.004f36d6
cmp dword [0x540cf0], ebx
jne 0x4f334e
push fcn.004f36d6
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004f36c4
push 0x53a12c
push 0x53a128
call sub.MSVCR71.dll__initterm
push 0x4f367a
call fcn.004f31b5
mov eax, dword [0x5445a4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x5445a0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4f33a2
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x53a124
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4f3420
cmp al, bl
je 0x4f33cc
cmp dword [ebp - 0x20], ebx
jne 0x4f3420
mov al, byte [esi]
cmp al, bl
je 0x4f33dc
cmp al, 0x20
ja 0x4f33dc
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4f33cc
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4f33f8
movzx eax, word [ebp - 0x54]
jmp 0x4f33fb
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004f3cde
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4f3418
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4f3475
cmp al, 0x22
jne 0x4f342f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4f3442
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4f33ba
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004f357b
ret
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43b64f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
dec edx
sub ecx, ecx
add edx, 0xd2ccbd30
call fcn.0043b686
add ecx, 0x830ec078
inc ecx
push edx
pop ecx
xor dword [edi], esi
mov edx, edx
inc edi
push 0x4411d0d3
pop edx
cmp edi, ebx
jne fcn.0043b64f
sub edx, ecx
mov edx, ecx
sub ecx, edx
ret
Function at 0x401380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x4013d8
cmp byte [ebx + esi - 1], 0xa
je 0x4013ac
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x4019f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x401bb4
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x4050a4]
cmp dword [edx + 0x24], edi
je 0x401ad7
test byte [0x402048], 8
jne 0x401b60
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x402058], 8
jne 0x401b23
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401a79
cmp esi, 3
jbe 0x401ae2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401a8a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40411c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x401a79
mov dword [esp], 0x402058
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401a50
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401a50
mov dword [esp], 0x402048
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401a3b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401a43
mov eax, 0xffffffff
jmp 0x401ad7

Function at 0x401c20
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

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

Function at 0x3283700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0328378f
jae 0x328370e
xor ecx, ecx
call fcn.0328378f
jae 0x328373d
xor eax, eax
call fcn.0328378f
jae 0x328374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0328378f
adc al, al
jae 0x328372f
jne 0x3283779
stosb byte es:[edi], al
jmp 0x3283711
call fcn.0328379b
sub ecx, ebx
jne 0x3283756
call fcn.03283799
jmp 0x3283775
lodsb al, byte [esi]
shr eax, 1
je 0x3283783
adc ecx, ecx
jmp 0x3283772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03283799
cmp eax, 0x7d00
jae 0x3283772
cmp ah, 5
jae 0x3283773
cmp eax, 0x7f
ja 0x3283774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3283711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x403618
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403639
jl 0x403630
test edi, edi
jne 0x403639
xor eax, eax
xor edx, edx
jmp 0x4036fa
cmp dword [ebx + 0x38], 0
je 0x40364e
push eax
push edi
push dword [ebp + 8]
call fcn.00403700
jmp 0x4036fa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403695
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403695
cmp eax, edi
jb 0x40366f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405240
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40369b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4036ef
mov ecx, ebx
call fcn.00402cfa
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4036da
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00409b23
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4036ef
jmp 0x4036ad
test edx, edx
je 0x4036ef
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00409b23
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x404e80
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404ebf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404ebf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404ebf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404ebf
cmp dword [ecx + 0x74], 0xe
jbe 0x404ebf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40f206
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4203b8
push 0x4203b0
push str.FlsAlloc
push 0x1e
call fcn.0040f073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f23a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
jmp 0x40f240
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f284
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4203c8
push 0x4203c0
push str.FlsGetValue
push 0x20
call fcn.0040f073
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f2bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]