joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e300
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a067d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c400c]
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 0x41e365
sub esi, edx
sar esi, 1
push esi
push edi
call fcn.00405ec0
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00412610
add esp, 0x20
cmp dword [ebp - 0x18], 0
je 0x41e3b4
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 0x41e3b4
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0041d000
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 0x41e3f6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e3ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e414
push edx
push ecx
call fcn.0043d19d
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.0043cc06
mov esp, ebp
pop ebp
ret
call fcn.00446380
int3

Function at 0x421140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0b98
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4c400c]
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 0x421218
cmp word [esi], 0
je 0x421218
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421218
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00419360
push 0x78
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0043e790
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.00433680
push ecx
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa0]
call fcn.004337a0
lea ecx, [ebp - 0xa0]
call fcn.00419e10
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x421211
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421207
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421235
push edx
push ecx
call fcn.0043d19d
add esp, 8
mov eax, 1
jmp 0x42121a
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.0043cc06
mov esp, ebp
pop ebp
ret
call fcn.00446380
int3
Function at 0x425020
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1097
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4c400c]
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.0043ce07
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 0x425188
push 0x228
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0043e790
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 0x425181
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 0x42516f
xor ecx, ecx
test ebx, ebx
je 0x425142
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.00425260
cmp dword [ebp + 8], 0
jne 0x425181
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x425110
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.0043cc06
mov esp, ebp
pop ebp
ret
Function at 0x427760
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4c400c]
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 0x42777f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4278e0
cmp dword [esi + 0x14], 8
jb 0x427796
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 0x4278e0
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.004976b5
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.004976b5
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.0043d68a
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 0x427870
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004060e0
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 0x4278e0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4278d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4278f1
push edx
push ecx
call fcn.0043d19d
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc06
mov esp, ebp
pop ebp
ret
call fcn.00446380
int3
Function at 0x4290b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a14cd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c400c]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x28]
lea edi, [eax*2 + 2]
push edi
push esi
call fcn.004060e0
mov eax, dword [ebp - 0x2c]
mov edx, 0x4b5644
test ebx, ebx
mov ecx, edx
push edi
cmovne ecx, ebx
test eax, eax
cmovne edx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push edx
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x14]
neg eax
sbb esi, esi
cmp edx, 0x10
jb 0x429182
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x429178
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4291a1
push edx
push ecx
call fcn.0043d19d
add esp, 8
lea eax, [esi + 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.0043cc06
mov esp, ebp
pop ebp
ret
call fcn.00446380
int3

Function at 0x429400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49eaad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c400c]
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.00412230
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x429463
push 0x40
push str.CJHLogIni::Output____CJHString::FormatStr___failed:invalid_log_r_n
lea ecx, [ebp - 0x28]
call fcn.00405ec0
jmp 0x429465
mov esi, eax
test bl, 1
je 0x42947c
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 0x429495
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00429790
add esp, 4
test bl, 4
je 0x4294ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.004295f0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4294e4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4294da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429502
push edx
push ecx
call fcn.0043d19d
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.0043cc06
mov esp, ebp
pop ebp
ret
call fcn.00446380
int3
Function at 0x42a0d0
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x4c400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34c], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp edx, 0x40
jne 0x42a103
mov edi, edx
jmp 0x42a14d
jbe 0x42a11b
lea eax, [ebp - 0x24]
mov edi, 0x20
push eax
call fcn.0042a540
add esp, 4
lea ebx, [ebp - 0x24]
jmp 0x42a11d
mov edi, edx
mov esi, 0x40
lea eax, [ebp - 0xa8]
sub esi, edi
add eax, edi
push esi
push 0x36
push eax
call fcn.0043e790
add esp, 0xc
lea eax, [ebp - 0x68]
add eax, edi
push esi
push 0x5c
push eax
call fcn.0043e790
add esp, 0xc
test edi, edi
jle 0x42a174
lea eax, [ebp - 0xa8]
sub ebx, eax
xor eax, eax
lea esi, [ebp - 0xa8]
add esi, eax
inc eax
mov dl, byte [ebx + esi]
mov cl, dl
xor dl, 0x5c
xor cl, 0x36
mov byte [esi + 0x40], dl
mov byte [esi], cl
cmp eax, edi
jl 0x42a157
push 0x40
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x2c0], 0x6a09e667
lea ecx, [ebp - 0x348]
mov dword [ebp - 0x2bc], 0xbb67ae85
mov dword [ebp - 0x2b8], 0x3c6ef372
mov dword [ebp - 0x2b4], 0xa54ff53a
mov dword [ebp - 0x2b0], 0x510e527f
mov dword [ebp - 0x2ac], 0x9b05688c
mov dword [ebp - 0x2a8], 0x1f83d9ab
mov dword [ebp - 0x2a4], 0x5be0cd19
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x348], 0
call fcn.0042a5d0
add esp, 4
mov dword [ebp - 0x218], 0x6a09e667
lea edx, [ebp - 0x68]
mov dword [ebp - 0x214], 0xbb67ae85
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x210], 0x3c6ef372
mov dword [ebp - 0x20c], 0xa54ff53a
push 0x40
mov dword [ebp - 0x208], 0x510e527f
mov dword [ebp - 0x204], 0x9b05688c
mov dword [ebp - 0x200], 0x1f83d9ab
mov dword [ebp - 0x1fc], 0x5be0cd19
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x2a0], 0
call fcn.0042a5d0
mov edx, dword [ebp - 0x34c]
lea esi, [ebp - 0x348]
mov ecx, 0x2a
lea edi, [ebp - 0x1f8]
rep movsd dword es:[edi], dword [esi]
add esp, 4
lea esi, [ebp - 0x2a0]
mov ecx, 0x2a
lea edi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x348]
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x348]
call fcn.0042a670
push 0x20
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x2a0]
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x2a0]
call fcn.0042a670
mov eax, dword [ebp - 0x350]
movups xmm0, xmmword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
movups xmmword [eax], xmm0
pop esi
movups xmm0, xmmword [ebp - 0x14]
xor ecx, ebp
pop ebx
movups xmmword [eax + 0x10], xmm0
call fcn.0043cc06
mov esp, ebp
pop ebp
ret
Function at 0x42a540
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4c400c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [ebp - 0x2c], 0x6a09e667
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x28], 0xbb67ae85
mov dword [ebp - 0x24], 0x3c6ef372
mov dword [ebp - 0x20], 0xa54ff53a
mov dword [ebp - 0x1c], 0x510e527f
mov dword [ebp - 0x18], 0x9b05688c
mov dword [ebp - 0x14], 0x1f83d9ab
mov dword [ebp - 0x10], 0x5be0cd19
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0xb4]
mov edx, esi
call fcn.0042a670
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0043cc06
mov esp, ebp
pop ebp
ret
Function at 0x42caa0
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c400c]
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 0x42cbdc
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 0x42cbad
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 0x42cb23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpQueryOption___failed:_d
push ebx
call fcn.0042ca70
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 0x42cb57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpSetOption___failed:_d
push ebx
call fcn.0042ca70
add esp, 0x10
test esi, esi
je 0x42cb98
mov eax, dword [esi]
test eax, eax
je 0x42cb98
push 0xa0000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x42cb8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::AddHeader
push str._s:WinHttpAddRequestHeaders___failed:_d
push ebx
call fcn.0042ca70
add esp, 0x10
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x42cb61
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc06
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.0042ca70
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc06
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.0043cc06
mov esp, ebp
pop ebp
ret 0x20
Function at 0x42cc00
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c400c]
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 0x42cd72
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x42ccd1
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 0x42cccb
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x42cc80
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x42cc78
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x42cc8c
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00423d20
cmp dword [esi + 0x14], 8
jb 0x42cc94
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 0x42ccd6
call ebx
mov esi, dword [ebp - 0x10]
push eax
push str.CJHHttp::GetHeader
push str._s:WinHttpQueryHeaders___failed:_d
push esi
call fcn.0042ca70
add esp, 0x10
jmp 0x42ccd9
cmp dword [ebp - 0x14], 0
jmp 0x42ccae
mov esi, dword [ebp - 0x10]
jmp 0x42cce2
mov esi, dword [ebp - 0x10]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0xc]
test edi, edi
je 0x42cd72
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 0x42cd56
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x42cd29
mov dword [edi + 0x10], eax
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x42cd21
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x42cd35
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00423d20
cmp dword [edi + 0x14], 8
jb 0x42cd3d
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 0x42cd5a
cmp dword [ebp - 0x14], 0
jne 0x42cd72
call ebx
push eax
push str.CJHHttp::GetHeader
push str._s:WinHttpQueryHeaders___failed:_d
push esi
call fcn.0042ca70
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42cd90
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42ce9c
mov eax, dword [esi + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42ce6c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42ce2e
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], 0
jb 0x42cdec
mov esi, dword [esi]
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov esi, eax
test esi, esi
jne 0x42ce2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpWriteData___failed:_d
push ebx
call fcn.0042ca70
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 8
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov esi, eax
test esi, esi
jne 0x42ce57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpReceiveResponse___failed:_d
push ebx
call fcn.0042ca70
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpSendRequest___failed:_d
push ebx
call fcn.0042ca70
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 8
Function at 0x42cec0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x42cf14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push str.CJHHttp::ReadResponseData
push str._s:WinHttpQueryDataAvailable___failed:_d
push ebx
call fcn.0042ca70
add esp, 0x10
jmp 0x42cf99
mov eax, dword [ebp - 8]
test eax, eax
jne 0x42cf33
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 8
push 0
push eax
mov ecx, edi
mov dword [ebp - 0xc], 0
call fcn.004133b0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x42cf4e
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x42cf69
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x42cf1b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push str.CJHHttp::ReadResponseData
push str._s:WinHttpReadData___failed:_d
push ebx
call fcn.0042ca70
add esp, 0x10
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x42cf96
mov edi, dword [edi]
mov byte [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc06
mov esp, ebp
pop ebp
ret 8
Function at 0x432400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1ee0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0043ce07
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00483e68
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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 0x453ee5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00453b62