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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afcfd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x58]
call fcn.0041f960
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0042d1d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x58]
call fcn.0041ad60
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x42d3bd
lea ecx, [ebp - 0x28]
call fcn.0042d1d0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x42d350
dec ecx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
dec ecx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx*2], dx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x58]
call fcn.0041ad60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42d3b9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d3af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d478
push edx
push ecx
call fcn.0044b3bd
add esp, 8
test edi, edi
je 0x42d3db
test esi, esi
je 0x42d3db
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x42d3db
cmp dword [ebp - 0x2c], 8
mov ecx, esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00404350
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42d411
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d407
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d47d
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x42d45b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d451
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d47d
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov eax, edi
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.0044ae26
mov esp, ebp
pop ebp
ret
call fcn.0047aa50
call fcn.0047aa50
int3
Function at 0x42f460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afe8d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d500c]
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 dword [ebp - 0x2c], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 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 ebx, [eax*2 + 2]
push ebx
push esi
call fcn.00404570
test edi, edi
jne 0x42f4d9
xor esi, esi
jmp 0x42f505
mov eax, dword [ebp - 0x2c]
mov ecx, 0x4c4d38
test eax, eax
push ebx
cmovne ecx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push dword [ebp - 0x30]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb esi, esi
inc esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42f535
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f52b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f553
push edx
push ecx
call fcn.0044b3bd
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.0044ae26
mov esp, ebp
pop ebp
ret
call fcn.0047aa50
int3

Function at 0x432e30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x432eca
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x432eb1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x432ea8
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
Function at 0x432ee0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afee7
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4d500c]
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.0044b027
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 0x433048
push 0x228
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.00472940
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 0x433041
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 0x43302f
xor ecx, ecx
test ebx, ebx
je 0x433002
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.00433120
cmp dword [ebp + 8], 0
jne 0x433041
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x432fd0
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.0044ae26
mov esp, ebp
pop ebp
ret

Function at 0x433240
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004a63c0
mov eax, dword [0x4d500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x433300
cmp word [esi], 0
je 0x433300
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00472940
add esp, 0xc
lea eax, [ebp - 0x2004]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2024], 0
mov dword [ebp - 0x201c], eax
xorps xmm0, xmm0
mov eax, 0x14
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
movlpd qword [ebp - 0x2012], xmm0
mov dword [ebp - 0x200a], 0
mov dword [ebp - 0x2020], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x433300
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
Function at 0x433ca0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac3fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d500c]
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.0041a520
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x433d03
push 0x40
push str.CJHLogIni::Output____CJHString::FormatStr___failed:invalid_log_r_n
lea ecx, [ebp - 0x28]
call fcn.00404350
jmp 0x433d05
mov esi, eax
test bl, 1
je 0x433d1c
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 0x433d35
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00434080
add esp, 4
test bl, 4
je 0x433d4e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.00433ee0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x433d84
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433d7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433da2
push edx
push ecx
call fcn.0044b3bd
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.0044ae26
mov esp, ebp
pop ebp
ret
call fcn.0047aa50
int3
Function at 0x4362c0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4d500c]
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 0x4362df
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x436440
cmp dword [esi + 0x14], 8
jb 0x4362f6
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 0x436440
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.0044b8aa
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.0044b8aa
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.0044b8b3
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 0x4363d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00404570
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 0x436440
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x436436
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436451
push edx
push ecx
call fcn.0044b3bd
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
call fcn.0047aa50
int3
Function at 0x4382d0
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x4d500c]
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 0x438303
mov edi, edx
jmp 0x43834d
jbe 0x43831b
lea eax, [ebp - 0x24]
mov edi, 0x20
push eax
call fcn.00438740
add esp, 4
lea ebx, [ebp - 0x24]
jmp 0x43831d
mov edi, edx
mov esi, 0x40
lea eax, [ebp - 0xa8]
sub esi, edi
add eax, edi
push esi
push 0x36
push eax
call fcn.00472940
add esp, 0xc
lea eax, [ebp - 0x68]
add eax, edi
push esi
push 0x5c
push eax
call fcn.00472940
add esp, 0xc
test edi, edi
jle 0x438374
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 0x438357
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.004387d0
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.004387d0
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.004387d0
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x348]
call fcn.00438870
push 0x20
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x2a0]
call fcn.004387d0
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x2a0]
call fcn.00438870
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.0044ae26
mov esp, ebp
pop ebp
ret
Function at 0x438740
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4d500c]
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.004387d0
add esp, 4
lea ecx, [ebp - 0xb4]
mov edx, esi
call fcn.00438870
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.0044ae26
mov esp, ebp
pop ebp
ret
Function at 0x43acc0
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d500c]
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 0x43adfc
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 0x43adcd
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 0x43ad43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpQueryOption___failed:_d
push ebx
call fcn.0043ac90
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 0x43ad77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpSetOption___failed:_d
push ebx
call fcn.0043ac90
add esp, 0x10
test esi, esi
je 0x43adb8
mov eax, dword [esi]
test eax, eax
je 0x43adb8
push 0xa0000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x43adae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::AddHeader
push str._s:WinHttpAddRequestHeaders___failed:_d
push ebx
call fcn.0043ac90
add esp, 0x10
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x43ad81
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
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.0043ac90
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
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.0044ae26
mov esp, ebp
pop ebp
ret 0x20
Function at 0x43ae20
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d500c]
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 0x43af92
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x43aef1
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 0x43aeeb
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x43aea0
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x43ae98
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x43aeac
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0042de90
cmp dword [esi + 0x14], 8
jb 0x43aeb4
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 0x43aef6
call ebx
mov esi, dword [ebp - 0x10]
push eax
push str.CJHHttp::GetHeader
push str._s:WinHttpQueryHeaders___failed:_d
push esi
call fcn.0043ac90
add esp, 0x10
jmp 0x43aef9
cmp dword [ebp - 0x14], 0
jmp 0x43aece
mov esi, dword [ebp - 0x10]
jmp 0x43af02
mov esi, dword [ebp - 0x10]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 0xc]
test edi, edi
je 0x43af92
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 0x43af76
mov ecx, dword [edi + 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
ja 0x43af49
mov dword [edi + 0x10], eax
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x43af41
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x43af55
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.0042de90
cmp dword [edi + 0x14], 8
jb 0x43af5d
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 0x43af7a
cmp dword [ebp - 0x14], 0
jne 0x43af92
call ebx
push eax
push str.CJHHttp::GetHeader
push str._s:WinHttpQueryHeaders___failed:_d
push esi
call fcn.0043ac90
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ae26
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43afb0
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d500c]
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 0x43b0bc
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 0x43b08c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43b04e
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], 0
jb 0x43b00c
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 0x43b04e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpWriteData___failed:_d
push ebx
call fcn.0043ac90
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
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 0x43b077
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpReceiveResponse___failed:_d
push ebx
call fcn.0043ac90
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
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.0043ac90
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ae26
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.0044ae26
mov esp, ebp
pop ebp
ret 8