joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d710
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a795d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push eax
push eax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov esi, edi
mov dword [ecx], eax
lea edx, [esi + 2]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d775
sub esi, edx
sar esi, 1
push esi
push edi
call fcn.0040afa0
xor edx, edx
lea ecx, [ebp - 0x30]
call fcn.00417220
add esp, 0x20
cmp dword [ebp - 0x20], 0
je 0x41d7c4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d7c4
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
call fcn.00420d60
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d7ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d81a
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x41d814
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x18]
jmp 0x41d81d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x41d853
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d849
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d871
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.00447297
int3
Function at 0x41d980
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
xorps xmm0, xmm0
mov dword [ebp - 0xf4], edi
push esi
mov dword [ebp - 0xf4], edi
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [ebp - 0x68], 0x6a09e667
push eax
mov edx, esi
mov dword [ebp - 0x64], 0xbb67ae85
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x60], 0x3c6ef372
mov dword [ebp - 0x5c], 0xa54ff53a
mov dword [ebp - 0x58], 0x510e527f
mov dword [ebp - 0x54], 0x9b05688c
mov dword [ebp - 0x50], 0x1f83d9ab
mov dword [ebp - 0x4c], 0x5be0cd19
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xf0], 0
call fcn.00431100
add esp, 4
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0xf0]
call fcn.004311a0
xorps xmm0, xmm0
mov byte [ebp - 8], 0
movups xmmword [ebp - 0x28], xmm0
xor eax, eax
movups xmmword [ebp - 0x18], xmm0
mov dl, byte [ebp + eax - 0x48]
mov cl, dl
and dl, 0xf
shr cl, 4
add dl, 0x61
add cl, 0x61
mov byte [ebp + eax*2 - 0x27], dl
mov byte [ebp + eax*2 - 0x28], cl
inc eax
cmp eax, 0x10
jl 0x41da35
lea ecx, [ebp - 0x28]
mov dword [edi], 0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41da72
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.0040a9e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00443db6
mov esp, ebp
pop ebp
ret
Function at 0x4200a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 1
push 0x44
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00443fb7
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x18], eax
test esi, esi
mov dword [ebp - 4], 2
mov edx, 0x4bd6c4
mov dword [ebp - 0x20], 1
cmovne edx, esi
mov dword [ebp - 0x1c], 1
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420150
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.0040afa0
push 0
push 0x4bd6c4
lea ecx, [ebp - 0x38]
call fcn.0040afa0
lea eax, [ebp - 0x50]
push eax
push 0x41fe80
test ebx, ebx
jne 0x42018d
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x420194
push ebx
call dword [sym.imp.USER32.dll_EnumChildWindows]
test edi, edi
je 0x42026a
lea eax, [ebp - 0x50]
cmp edi, eax
je 0x4201b6
cmp dword [ebp - 0x3c], 8
mov ecx, edi
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.0040afa0
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x38]
cmp ecx, eax
je 0x4201d1
cmp dword [ebp - 0x24], 8
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.0040afa0
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x34], eax
add edi, 0x38
lea eax, [ebp - 0x18]
cmp edi, eax
je 0x42026a
mov esi, dword [edi]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.00427f20
push dword [ebp - 0x54]
mov dword [esi + 4], esi
mov ecx, edi
mov dword [esi], esi
mov dword [esi + 8], esi
mov eax, dword [ebp - 0x18]
push dword [edi]
mov dword [edi + 4], 0
push dword [eax + 4]
call fcn.00428190
mov ecx, dword [edi]
mov dword [ecx + 4], eax
mov esi, dword [edi]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x420263
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x420243
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x420237
mov dword [esi], edx
mov edx, dword [edi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x42025e
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x420253
mov dword [edx + 8], ecx
jmp 0x42026a
mov dword [esi], esi
mov eax, dword [edi]
mov dword [eax + 8], eax
lea ecx, [ebp - 0x50]
call fcn.004202a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
Function at 0x4204e0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push 0
push 0
push ebx
push str.open
push 0
mov esi, 0x32
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x42052b
mov eax, esi
dec esi
test eax, eax
jle 0x420534
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x420504
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x422060
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7d6d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push eax
push eax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
mov esi, edi
mov dword [ecx], eax
lea edx, [esi + 2]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4220c5
sub esi, edx
sar esi, 1
push esi
push edi
call fcn.0040afa0
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00417220
add esp, 0x20
cmp dword [ebp - 0x18], 0
je 0x422114
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422114
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00420d60
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x422156
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42214c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422174
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.00447297
int3

Function at 0x425be0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a85b8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x425cb8
cmp word [esi], 0
je 0x425cb8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425cb8
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0041cf90
push 0x78
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00445940
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.00437e20
push ecx
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa0]
call fcn.00437f40
lea ecx, [ebp - 0xa0]
call fcn.004043f0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x425cb1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425ca7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425cd5
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, 1
jmp 0x425cba
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.00447297
int3
Function at 0x428b30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8957
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], edx
mov esi, ecx
mov dword [ebp - 0x254], esi
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x248], 0
movq qword [esi], xmm0
push 0x18
mov dword [ebp - 0x250], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00443fb7
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x248], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x428c98
push 0x228
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.00445940
add esp, 0xc
mov dword [ebp - 0x244], 0x22c
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x428c91
mov ebx, dword [ebp + 0xc]
nop word [eax + eax]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x428c7f
xor ecx, ecx
test ebx, ebx
je 0x428c52
push dword [ebp - 0x23c]
push ecx
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x254], ecx
push eax
mov ecx, esi
call fcn.00429020
cmp dword [ebp + 8], 0
jne 0x428c91
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x428c20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
Function at 0x428f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x44
push esi
push edi
push eax
mov edi, edx
movlpd qword [ebp - 0x4c], xmm0
mov esi, ecx
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x24], 1
mov eax, 1
mov word [ebp - 0x20], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x428fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x428ff3
push eax
call esi
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x429005
test ebx, ebx
je 0x429002
mov dword [ebx], eax
jmp 0x429005
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443db6
mov esp, ebp
pop ebp
ret
Function at 0x42ec20
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x42ec3f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42eda0
cmp dword [esi + 0x14], 8
jb 0x42ec56
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x42eda0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push str._checksum_:____roots_:__bookmark_bar_:__children_:_____date_added_:__13299917967783231___date_modified_:__13299918000343696___guid_:__0bc5d13f_2cba_5d74_951f_3f233fe6c908___id_:__1___name_:__
push 0
push 0x3a8
call edi
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049e895
add esp, 4
mov ebx, eax
push esi
push ebx
push 0xffffffffffffffff
push str._checksum_:____roots_:__bookmark_bar_:__children_:_____date_added_:__13299917967783231___date_modified_:__13299918000343696___guid_:__0bc5d13f_2cba_5d74_951f_3f233fe6c908___id_:__1___name_:__
push 0
push 0x3a8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.0049e895
add esp, 4
mov dword [ebp - 0x24], eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call esi
push ebx
call fcn.0044483a
mov edx, dword [ebp - 0x24]
add esp, 4
mov ecx, edx
mov byte [edx + edi], 0
mov dword [ebp - 0x20], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ed30
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.0040a9e0
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 8]
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push 0
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x42eda0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42ed96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42edb1
push edx
push ecx
call fcn.0044434d
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.00447297
int3
Function at 0x42fe50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a62cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
push eax
call fcn.00416e40
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42feb3
push 0x40
push str.CJHLogIni::Output____CJHString::FormatStr___failed:invalid_log_r_n
lea ecx, [ebp - 0x28]
call fcn.0040afa0
jmp 0x42feb5
mov esi, eax
test bl, 1
je 0x42fecc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, 2
je 0x42fee5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00430240
add esp, 4
test bl, 4
je 0x42fefe
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.004300a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42ff34
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ff2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42ff52
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret
call fcn.00447297
int3
Function at 0x4335b0
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x4336ec
push edi
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x4336bd
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x433633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpQueryOption___failed:_d
push ebx
call fcn.00433580
add esp, 0x10
or dword [ebp - 8], 0x3300
lea eax, [ebp - 8]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x433667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpSetOption___failed:_d
push ebx
call fcn.00433580
add esp, 0x10
test esi, esi
je 0x4336a8
mov eax, dword [esi]
test eax, eax
je 0x4336a8
push 0xa0000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x43369e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::AddHeader
push str._s:WinHttpAddRequestHeaders___failed:_d
push ebx
call fcn.00433580
add esp, 0x10
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x433671
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpOpenRequest___failed:_d
push ebx
call fcn.00433580
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443db6
mov esp, ebp
pop ebp
ret 0x20
Function at 0x433710
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x433882
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4337e1
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0
push 0
push 0x80000016
push eax
call ecx
mov dword [ebp - 0x14], eax
call ebx
cmp eax, 0x7a
jne 0x4337db
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x433790
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x433788
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x43379c
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00427a50
cmp dword [esi + 0x14], 8
jb 0x4337a4
mov esi, dword [esi]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
push 0
push 0x80000016
push dword [ebp - 0xc]
call eax
test eax, eax
jne 0x4337e6
call ebx
mov esi, dword [ebp - 0x10]
push eax
push str.CJHHttp::GetHeader
push str._s:WinHttpQueryHeaders___failed:_d
push esi
call fcn.00433580
add esp, 0x10
jmp 0x4337e9
cmp dword [ebp - 0x14], 0
jmp 0x4337be
mov esi, dword [ebp - 0x10]
jmp 0x4337f2
mov esi, dword [ebp - 0x10]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0xc]
test edi, edi
je 0x433882
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push 0
push 0
push 0x16
push eax
call ecx
mov dword [ebp - 0x14], eax
call ebx
cmp eax, 0x7a
jne 0x433866
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x433839
mov dword [edi + 0x10], eax
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x433831
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x433845
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00427a50
cmp dword [edi + 0x14], 8
jb 0x43384d
mov edi, dword [edi]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
push 0
push 0x16
push dword [ebp - 0xc]
call eax
test eax, eax
jmp 0x43386a
cmp dword [ebp - 0x14], 0
jne 0x433882
call ebx
push eax
push str.CJHHttp::GetHeader
push str._s:WinHttpQueryHeaders___failed:_d
push esi
call fcn.00433580
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443db6
mov esp, ebp
pop ebp
ret 0xc